Skip to content

Commit

Permalink
Update nut-influxdbv2-exporter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dbsqp authored Apr 9, 2021
1 parent 7aba250 commit a872469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nut-influxdbv2-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a872469

Please sign in to comment.