Skip to content

Commit

Permalink
mac formatted serial for hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
dbsqp authored Apr 12, 2021
1 parent c85d53b commit a966800
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 @@ -93,7 +93,7 @@ def construct_object(data, remove_keys, host):

for k, v in data.items():
if k == "ups.serial":
tags["hardware"]=v
tags["hardware"]=':'.join(v[i:i+2] for i in range(0,12,2))
elif k == "device.model":
tags["model"]=v
else:
Expand Down

0 comments on commit a966800

Please sign in to comment.