From f7c1267b35c35a38549c70f8de3a47371173738f Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sun, 14 Mar 2021 22:17:27 -0700 Subject: [PATCH] add system stats temps --- core/unifi/usg.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/unifi/usg.go b/core/unifi/usg.go index 9b265a5a..ca126634 100644 --- a/core/unifi/usg.go +++ b/core/unifi/usg.go @@ -190,6 +190,9 @@ type SystemStats struct { CPU FlexInt `json:"cpu"` Mem FlexInt `json:"mem"` Uptime FlexInt `json:"uptime"` + // This exists on at least USG4, may others, maybe not. + // {"Board (CPU)":"51 C","Board (PHY)":"51 C","CPU":"72 C","PHY":"77 C"} + Temps map[string]string `json:"temps,omitempty"` } // SysStats is load info for a UDM, USG, USW.