From 78279423aee348977163064898ed2c9658ecf840 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Fri, 30 Oct 2020 13:36:56 -0500 Subject: correct network name --- write-influx/write_influx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/write-influx/write_influx.py b/write-influx/write_influx.py index 3313203..78e4da5 100644 --- a/write-influx/write_influx.py +++ b/write-influx/write_influx.py @@ -75,7 +75,7 @@ def write_point(measurement, tags, fields): json["tags"] = tags json["fields"] = fields try: - influx_client.write_points([json], retention_policy="two-years") + influx_client.write_points([json]) except Exception as e: print(e) print(json) @@ -86,7 +86,7 @@ client = mqtt.Client() client.on_connect = on_connect client.on_message = on_message -client.connect("mqtt", 1883, 60) +client.connect("broker", 1883, 60) # Blocking call that processes network traffic, dispatches callbacks and # handles reconnecting. -- cgit v1.2.3