ajout authentification teleinfo

This commit is contained in:
Gitouche 2023-01-02 15:51:10 +01:00
parent 9002994036
commit ceaa8f516b

View file

@ -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: