Add Addresses to Gateways
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Stefan Hoffmann 2023-05-12 08:17:31 +02:00
parent c4a7bfec1f
commit 0ba254b9a2
Signed by: stefan
GPG Key ID: 8EFC7042BF8D5CDD
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ func processGateways() []node {
Gateway: "", Gateway: "",
NodeID: strings.ReplaceAll(d.Devices[i].MAC, ":", ""), NodeID: strings.ReplaceAll(d.Devices[i].MAC, ":", ""),
MAC: d.Devices[i].MAC, MAC: d.Devices[i].MAC,
Adresses: d.Devices[i].Adresses,
Domain: d.Devices[i].Domain, Domain: d.Devices[i].Domain,
Hostname: "[Gateway] " + d.Devices[i].Name, Hostname: "[Gateway] " + d.Devices[i].Name,
Owner: "Freifunk Troisdorf", Owner: "Freifunk Troisdorf",

View File

@ -49,6 +49,7 @@ type device struct {
Longitude float64 `json:"longitude"` Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"` Latitude float64 `json:"latitude"`
} `json:"location"` } `json:"location"`
Adresses []string `json:"adresses"`
} }
type devices struct { type devices struct {
Devices []device `json:"devices"` Devices []device `json:"devices"`