Add Addresses to Gateways
This commit is contained in:
parent
c4a7bfec1f
commit
0ba254b9a2
@ -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",
|
||||||
|
1
types.go
1
types.go
@ -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"`
|
||||||
|
Loading…
Reference in New Issue
Block a user