aboutsummaryrefslogtreecommitdiff
path: root/write-influx/write_influx.py
diff options
context:
space:
mode:
Diffstat (limited to 'write-influx/write_influx.py')
-rw-r--r--write-influx/write_influx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/write-influx/write_influx.py b/write-influx/write_influx.py
index ccfb15d..b558b84 100644
--- a/write-influx/write_influx.py
+++ b/write-influx/write_influx.py
@@ -68,8 +68,8 @@ def on_message(client, userdata, msg):
influx_client = InfluxDBClient(host="db",
port=8086,
- username="root",
- password="root",
+ username="admin",
+ password=os.environ["INFLUXDB_ADMIN_PASSWORD"],
database="homie")
influx_client.create_database("homie")