From 15b275b22e0db7244a8f48030f0960c581caf24a Mon Sep 17 00:00:00 2001 From: Maxim Strinzha Date: Tue, 21 Mar 2023 22:58:35 +0300 Subject: [PATCH] Setup default ULR for influxdb --- cbpi/extension/ConfigUpdate/__init__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cbpi/extension/ConfigUpdate/__init__.py b/cbpi/extension/ConfigUpdate/__init__.py index c5700aa..53fb369 100644 --- a/cbpi/extension/ConfigUpdate/__init__.py +++ b/cbpi/extension/ConfigUpdate/__init__.py @@ -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")