From a872469c5e77a3a59c2c0d55f7c98162c5727663 Mon Sep 17 00:00:00 2001 From: dbsqp Date: Fri, 9 Apr 2021 08:33:05 +0200 Subject: [PATCH] Update nut-influxdbv2-exporter.py --- nut-influxdbv2-exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nut-influxdbv2-exporter.py b/nut-influxdbv2-exporter.py index f8008fa..308091c 100644 --- a/nut-influxdbv2-exporter.py +++ b/nut-influxdbv2-exporter.py @@ -106,7 +106,7 @@ def construct_object(data, remove_keys): fields[k] = convert_to_type(v) watts = float(nut_watts) if nut_watts else float(fields['ups.realpower.nominal']) - fields['ups.power'] = watts * 0.01 * fields['ups.load'] + fields['ups.watts'] = watts * 0.01 * fields['ups.load'] result ={ 'measurement': 'ups',