mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-25 00:18:17 +01:00
InfluxDB: support non-ASCII symbols in sensor names. Fix for InfluxDB Cloud
This commit is contained in:
parent
03d1521c5e
commit
c59931dfc1
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class LogController:
|
|||
try:
|
||||
header = {'User-Agent': name, 'Authorization': "Token {}".format(self.influxdbpwd)}
|
||||
http = urllib3.PoolManager()
|
||||
req = http.request('POST',self.influxdburl, body=out, headers = header)
|
||||
req = http.request('POST',self.influxdburl, body=out.encode(), headers = header)
|
||||
except Exception as e:
|
||||
logging.error("InfluxDB cloud write Error: {}".format(e))
|
||||
|
||||
|
|
Loading…
Reference in a new issue