diff --git a/main.py b/main.py index c16006b..b4a8c59 100644 --- a/main.py +++ b/main.py @@ -11,12 +11,12 @@ from influxdb_client.client.write_api import SYNCHRONOUS from time import sleep # nutserver settings -HOSTLIST = os.environ.get("INFLUXDB_URL", "10.0.5.5") +HOSTLIST = os.environ.get("HOSTLIST", "10.0.5.5") HOSTLIST = HOSTLIST.split(",") # Constants (replace with your values) -INFLUXDB_URL = os.environ.get("INFLUX_URL", 'http://10.0.5.61:8086') +INFLUXDB_URL = os.environ.get("INFLUXDB_URL", 'http://10.0.5.61:8086') INFLUXDB_TOKEN = os.environ.get("INFLUXDB_TOKEN", 'E2GVPIovlYDbAy3ZztRVyuMyILGGnLEI9NsTcyvVgt9LUW9Mhv5Hrzle5gLY7W4xxBVqFk3DYsfss4a3hcDlZQ==') INFLUXDB_ORG = os.environ.get("INFLUXDB_ORG", 'carbonnet') INFLUXDB_BUCKET = os.environ.get("INFLUXDB_BUCKET", 'testing') diff --git a/requirements.txt b/requirements.txt index 11db04a..060238d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ influxdb_client -nut2 \ No newline at end of file +nut2 +requests \ No newline at end of file