You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently rain and other values are set to integer 0 on startup and later changed to a calculated float value. This breaks InfluxDB since it infers an integer type from the first datapoint and subsequent floats fail with "field type conflict":
Traceback (most recent call last):
File "send-to-influx.py", line 101, in <module>
client.write_points(payload)
File "/home/pi/.local/lib/python3.7/site-packages/influxdb/client.py", line 608, in write_points
consistency=consistency)
File "/home/pi/.local/lib/python3.7/site-packages/influxdb/client.py", line 685, in _write_points
protocol=protocol
File "/home/pi/.local/lib/python3.7/site-packages/influxdb/client.py", line 419, in write
headers=headers
File "/home/pi/.local/lib/python3.7/site-packages/influxdb/client.py", line 378, in request
raise InfluxDBClientError(err_msg, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"partial write: field type conflict: input field \"rain\" on measurement \"weather\" is type float, already exists as type integer dropped=1"}
The text was updated successfully, but these errors were encountered:
Currently rain and other values are set to integer 0 on startup and later changed to a calculated float value. This breaks InfluxDB since it infers an integer type from the first datapoint and subsequent floats fail with "field type conflict":
The text was updated successfully, but these errors were encountered: