From c939ec70dc8b06456303dc13002480dd95357a4e Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Mon, 22 Jul 2024 16:29:15 -0400 Subject: [PATCH] Update ups-exporter.js --- ups-exporter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ups-exporter.js b/ups-exporter.js index 2b64e6a..8a3313c 100755 --- a/ups-exporter.js +++ b/ups-exporter.js @@ -26,6 +26,7 @@ async function scrape() { battery_time: map["Remaining Runtime"], rated_voltage: Number(/\d+/g.exec(map["Rating Voltage"])[0]), rated_wattage: Number(/\d+/g.exec(map["Rating Power"])[0]), + input_state: map["State"] == 'Normal' ? 1 : 0, input_voltage: Number(/\d+/g.exec(map["Utility Voltage"])[0]), output_voltage: Number(/\d+/g.exec(map["Output Voltage"])[0]), load_wattage: Number(/\d+/g.exec(map["Load"])[0]),