diff --git a/homepage/config/services.yaml b/homepage/config/services.yaml index a8b4ae1..2bda621 100644 --- a/homepage/config/services.yaml +++ b/homepage/config/services.yaml @@ -17,12 +17,43 @@ allowScrolling: no - UPS: + href: http://192.168.1.33:9995/log?lines=40 + description: DS9 UPS icon: ups.png - href: http://192.168.1.33:8680 - siteMonitor: http://192.168.1.33:8680 widget: - type: peanut - url: http://192.168.1.33:8680 + type: customapi + url: http://192.168.1.33:9995/json?target=192.168.1.41:3493 + refreshInterval: 60000 # In milliseconds, set to ~60s + method: GET + mappings: + - field: + ups: + input.voltage + label: Input + format: text + suffix: V + - field: + ups: battery.runtime + label: Runtime + format: float + scale: 1/60 + suffix: Min + - field: + ups: + ups.load + label: Power + format: text + suffix: "%" + - field: + ups: + ups.status + label: Status + format: text + remap: + - value: "OL" + to: On-Line + - value: "OB" + to: Discharge ######################## - Servers: