diff options
| author | Blaise Thompson <blaise@untzag.com> | 2020-10-30 13:36:56 -0500 | 
|---|---|---|
| committer | Blaise Thompson <blaise@untzag.com> | 2020-10-30 13:36:56 -0500 | 
| commit | 78279423aee348977163064898ed2c9658ecf840 (patch) | |
| tree | 42e5c45af4c379c5aad20cbe20cdae83cda6e97c /write-influx | |
| parent | b2a98221fc43872a00fabe2f61508976c68eee51 (diff) | |
correct network name
Diffstat (limited to 'write-influx')
| -rw-r--r-- | write-influx/write_influx.py | 4 | 
1 files 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.  | 
