mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 14:38:15 +01:00
Setup default ULR for influxdb
This commit is contained in:
parent
c59931dfc1
commit
15b275b22e
1 changed files with 1 additions and 9 deletions
|
@ -224,18 +224,10 @@ class ConfigUpdate(CBPiExtension):
|
|||
if influxdbaddr is None:
|
||||
logger.info("INIT Influxdbaddr")
|
||||
try:
|
||||
await self.cbpi.config.add("INFLUXDBADDR", "localhost", ConfigType.STRING, "IP Address of your influxdb server (If INFLUXDBCLOUD set to Yes use URL Address of your influxdb cloud server)")
|
||||
await self.cbpi.config.add("INFLUXDBADDR", "http://localhost:8086", ConfigType.STRING, "URL Address of your influxdb server (If INFLUXDBCLOUD set to Yes use URL Address of your influxdb cloud server)")
|
||||
except:
|
||||
logger.warning('Unable to update config')
|
||||
|
||||
## Check if influxdbport is in config
|
||||
#if influxdbport is None:
|
||||
# logger.info("INIT Influxdbport")
|
||||
# try:
|
||||
# await self.cbpi.config.add("INFLUXDBPORT", "8086", ConfigType.STRING, "Port of your influxdb server")
|
||||
# except:
|
||||
# logger.warning('Unable to update config')
|
||||
|
||||
## Check if influxdbname is in config
|
||||
if influxdbname is None:
|
||||
logger.info("INIT Influxdbname")
|
||||
|
|
Loading…
Reference in a new issue