Private GIT

Skip to content
Snippets Groups Projects
Commit ec879c70 authored by breadlysm's avatar breadlysm
Browse files

Fixed type error on variable

parent d4e9e058
Branches
No related tags found
No related merge requests found
...@@ -11,13 +11,13 @@ You may want to do this so that you can track your internet connections consiste ...@@ -11,13 +11,13 @@ You may want to do this so that you can track your internet connections consiste
The InfluxDB connection settings are controlled by environment variables. The InfluxDB connection settings are controlled by environment variables.
The variables available are: The variables available are:
INFLUX_DB_ADDRESS = 192.168.1.xxx - INFLUX_DB_ADDRESS = 192.168.1.xxx
INFLUX_DB_PORT = 8086 - INFLUX_DB_PORT = 8086
INFLUX_DB_USER = user - INFLUX_DB_USER = user
INFLUX_DB_PASSWORD = pass - INFLUX_DB_PASSWORD = pass
INFLUX_DB_DATABASE = speedtest - INFLUX_DB_DATABASE = speedtest
SPEEDTEST_INTERVAL = 1800 - SPEEDTEST_INTERVAL = 1800
SPEEDTEST_FAIL_INTERVAL = 300 - SPEEDTEST_FAIL_INTERVAL = 300
Be aware that this script will automatically accept the license and GDPR statement so that it can run non-interactively. Make sure you agree with them before running. Be aware that this script will automatically accept the license and GDPR statement so that it can run non-interactively. Make sure you agree with them before running.
......
...@@ -7,14 +7,14 @@ from influxdb import InfluxDBClient ...@@ -7,14 +7,14 @@ from influxdb import InfluxDBClient
# InfluxDB Settings # InfluxDB Settings
DB_ADDRESS = os.environ.get('INFLUX_DB_ADDRESS') DB_ADDRESS = os.environ.get('INFLUX_DB_ADDRESS')
DB_PORT = os.environ.get('INFLUX_DB_PORT') DB_PORT = int(os.environ.get('INFLUX_DB_PORT'))
DB_USER = os.environ.get('INFLUX_DB_USER') DB_USER = os.environ.get('INFLUX_DB_USER')
DB_PASSWORD = os.environ.get('INFLUX_DB_PASSWORD') DB_PASSWORD = os.environ.get('INFLUX_DB_PASSWORD')
DB_DATABASE = os.environ.get('INFLUX_DB_DATABASE') DB_DATABASE = os.environ.get('INFLUX_DB_DATABASE')
# Speedtest Settings # Speedtest Settings
TEST_INTERVAL = os.environ.get('SPEEDTEST_INTERVAL') # Time between tests (in seconds). TEST_INTERVAL = int(os.environ.get('SPEEDTEST_INTERVAL')) # Time between tests (in seconds).
TEST_FAIL_INTERVAL = os.environ.get('SPEEDTEST_FAIL_INTERVAL') # Time before retrying a failed Speedtest (in seconds). TEST_FAIL_INTERVAL = int(os.environ.get('SPEEDTEST_FAIL_INTERVAL')) # Time before retrying a failed Speedtest (in seconds).
influxdb_client = InfluxDBClient( influxdb_client = InfluxDBClient(
DB_ADDRESS, DB_PORT, DB_USER, DB_PASSWORD, None) DB_ADDRESS, DB_PORT, DB_USER, DB_PASSWORD, None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment