diff --git a/apis/httpprober/main.go b/apis/httpprober/main.go index e49029b..733e1ea 100644 --- a/apis/httpprober/main.go +++ b/apis/httpprober/main.go @@ -16,7 +16,7 @@ const websitesFile = "websites.json" type Website struct { URL string `json:"url"` Icon string `json:"icon"` - Status int `json:"status"` + Status int `json:"-"` } func RunProbe() []Website { diff --git a/apis/networking/main.go b/apis/networking/main.go index a3c4631..f0585b8 100644 --- a/apis/networking/main.go +++ b/apis/networking/main.go @@ -15,10 +15,10 @@ const deviceFile = "devices.json" type Device struct { Name string `json:"name"` - IP string `json:"ip"` - Interface string `json:"interface"` + IP string `json:"-"` + Interface string `json:"-"` Icon string `json:"icon"` - Online bool `json:"online"` + Online bool `json:"-"` } func GetDevices() map[string]Device { diff --git a/devices_template.json b/devices_template.json index d96dd95..11a8b5c 100644 --- a/devices_template.json +++ b/devices_template.json @@ -1,9 +1,6 @@ { "00:00:00:00:00:00": { "name": "Sample Device", - "ip": "192.168.1.10", - "interface": "", - "icon": "󰄜", - "online": false + "icon": "󰄜" } }