From 75c24e389b77556ba3a8f08a1b4fecf8b20671a8 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 20 Mar 2023 16:26:16 +0100 Subject: [PATCH] Add VPN-Router Prefix to Routers instead of RiFu --- unms.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unms.go b/unms.go index 1067de1..29fdf99 100644 --- a/unms.go +++ b/unms.go @@ -162,8 +162,9 @@ func processUNMSAPIRouter() []node { "nodeid": strings.ReplaceAll(dev.Identification.MAC, ":", ""), } fields := map[string]interface{}{ - "cpu": statistics.CPU[t].Y, - "ram": statistics.RAM[t].Y, + "cpu": statistics.CPU[t].Y, + "load": statistics.CPU[t].Y, + "ram": statistics.RAM[t].Y, //hier fehlen noch die interfaces } slice := strconv.Itoa(statistics.CPU[t].X) @@ -265,7 +266,7 @@ func processUNMSAPIRouter() []node { MAC: dev.Identification.MAC, Adresses: UnmsGetAddresses(details.IPAddress), Domain: currentDevice.Domain, - Hostname: "[RiFu] " + details.Identification.Name, + Hostname: "[VPN-Router] " + details.Identification.Name, Owner: "Freifunk Rhein-Sieg", Firmware: firmware{ Base: "Ubiquiti - Stock",