Skip to content

Commit

Permalink
added module name to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikaho committed Mar 26, 2021
1 parent 7f83ec8 commit 2c453a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netatmo2influxdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def send_data(ds):
print (senddata["time"])
senddata["tags"]={}
senddata["tags"]["host"]=ds['_id']
senddata["tags"]["module"]=ds['module_name']
if key in keylist:
dd[key]=float(dd[key])
senddata["fields"]={}
Expand Down

0 comments on commit 2c453a2

Please sign in to comment.