From ceaa8f516bc1fbb434593f36bcfd6fbc859f05fe Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Mon, 2 Jan 2023 15:51:10 +0100 Subject: [PATCH] ajout authentification teleinfo --- teleinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleinfo.py b/teleinfo.py index a05f415..8c67cd1 100755 --- a/teleinfo.py +++ b/teleinfo.py @@ -54,7 +54,7 @@ logging.basicConfig(filename='/tmp/teleinfo-releve.log', level=logging.INFO, for logging.info("Teleinfo starting..") # connexion a la base de données InfluxDB -client = InfluxDBClient('192.168.0.10', 8086) +client = InfluxDBClient(host='192.168.0.10', port=8086, username='teleinfo', password='CLnXahFiUHjVF8xIjsLS') DB_NAME = "teleinfo" connected = False while not connected: