4
0
Fork 0
mirror of https://github.com/Robertofon/bienenchaos.git synced 2024-06-06 22:06:23 +02:00

Merge branch 'master' of github.com:Robertofon/bienenchaos

This commit is contained in:
Robert Köpferl 2020-06-20 22:36:12 +02:00
commit e622bce9c7

View file

@ -229,10 +229,11 @@ def write_csv(res):
def to_grafana(res): def to_grafana(res):
try: try:
os.system("curl -i -XPOST '172.23.92.63:8086/write?db=mydb&u=admin&p=PASSWORD' --data-binary 'weight,location=bees01 value="str(res))+"'") os.system("curl -i -XPOST '"+grafanaurl+"' --data-binary 'weight,location=bees01 value="str(res))+"'")
except: except:
print("no access to grafana?") print("no access to grafana?")
pass pass
time.sleep(5)
x_value=0 x_value=0
do_measurement() do_measurement()