mirror of
https://github.com/That-Guy-Jack/RPI-DHT11.git
synced 2025-04-25 20:12:28 +00:00
Update sensor-iot.py
This commit is contained in:
parent
5b19c822d7
commit
476516be5f
@ -6,11 +6,11 @@ from influxdb import InfluxDBClient
|
||||
|
||||
def get_reading(config):
|
||||
# InfluxDB connection info
|
||||
host = "192.168.5.16"
|
||||
port = "8086"
|
||||
user = "jack"
|
||||
password = "Jack32145"
|
||||
dbname = "roomtemp"
|
||||
host = "DBSERVER"
|
||||
port = "PORT"
|
||||
user = "USER"
|
||||
password = "DBpassword"
|
||||
dbname = "influxDBname"
|
||||
|
||||
# Create the InfluxDB client object
|
||||
client = InfluxDBClient(host, port, user, password, dbname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user