diff --git a/staticDevices.go b/staticDevices.go index c123013..8ad7b1e 100644 --- a/staticDevices.go +++ b/staticDevices.go @@ -28,6 +28,7 @@ func processGateways() []node { Gateway: "", NodeID: strings.ReplaceAll(d.Devices[i].MAC, ":", ""), MAC: d.Devices[i].MAC, + Adresses: d.Devices[i].Adresses, Domain: d.Devices[i].Domain, Hostname: "[Gateway] " + d.Devices[i].Name, Owner: "Freifunk Troisdorf", diff --git a/types.go b/types.go index 1fdd81b..0d47dc7 100644 --- a/types.go +++ b/types.go @@ -49,6 +49,7 @@ type device struct { Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` } `json:"location"` + Adresses []string `json:"adresses"` } type devices struct { Devices []device `json:"devices"`