Update sensor-iot.py

This commit is contained in:
Jack 2021-08-07 18:50:52 +01:00
parent 5b19c822d7
commit 476516be5f

View File

@ -6,11 +6,11 @@ from influxdb import InfluxDBClient
def get_reading(config): def get_reading(config):
# InfluxDB connection info # InfluxDB connection info
host = "192.168.5.16" host = "DBSERVER"
port = "8086" port = "PORT"
user = "jack" user = "USER"
password = "Jack32145" password = "DBpassword"
dbname = "roomtemp" dbname = "influxDBname"
# Create the InfluxDB client object # Create the InfluxDB client object
client = InfluxDBClient(host, port, user, password, dbname) client = InfluxDBClient(host, port, user, password, dbname)