From dea344e6ba29b5e635c42c0e0924649e79dba705 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Thu, 23 Oct 2025 13:24:55 +0000 Subject: [PATCH] feat(status): display power metrics in service status output --- ts/systemd.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/systemd.ts b/ts/systemd.ts index 8323605..0d8d9a1 100644 --- a/ts/systemd.ts +++ b/ts/systemd.ts @@ -355,6 +355,9 @@ WantedBy=multi-user.target logger.log(` Battery: ${batteryColor(status.batteryCapacity + '%')} ${batterySymbol} Runtime: ${getRuntimeColor(status.batteryRuntime)(status.batteryRuntime + ' min')}`); + // Display power metrics + logger.log(` Load: ${theme.highlight(status.outputLoad + '%')} Power: ${theme.highlight(status.outputPower + 'W')} Voltage: ${theme.highlight(status.outputVoltage + 'V')} Current: ${theme.highlight(status.outputCurrent + 'A')}`); + // Display host info logger.log(` ${theme.dim(`Host: ${ups.snmp.host}:${ups.snmp.port}`)}`);