Import-Module ./ZetaLocationSets.psm1 -Force
Populate a set and save to disk
New-ZetaLocationSet -Name 'CyprusHubs' -Locations @(
@{ Id = 'HUB-NIC'; Label = 'Morgpie - Nicosia, Cyprus'; TimeZone = 'Asia/Nicosia'; Lat = 35.1856; Lon = 33.3823 },
@{ Id = 'HUB-LIM'; Label = 'Morgpie Test - Limassol, Cyprus'; TimeZone = 'Asia/Nicosia'; Lat = 34.6851; Lon = 33.0330 }
)
Save-ZetaLocationSets -Path './data/zeta-locations.json'
Reload into a fresh session or replace in-memory sets
Import-ZetaLocationSets -Path './data/zeta-locations.json' -ReplaceExisting
Get-ZetaLocationSet -Name 'CyprusHubs'
Top comments (0)