aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/neohub.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/neohub.py')
-rw-r--r--scripts/neohub.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/scripts/neohub.py b/scripts/neohub.py
index 7ef8b77..f2c0ed8 100644
--- a/scripts/neohub.py
+++ b/scripts/neohub.py
@@ -47,17 +47,8 @@ async def call_neohub():
VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s)"""
common.dbi(sql, values, verbose=True)
+ common.statein('neohub', device.temperature, 'temperature', '°C', verbose=True)
- sql = """INSERT INTO mqtt_temps
- (sensor_id,
- temperature,
- time)
- SELECT sensors.id, %s, %s
- FROM sensors
- WHERE sensors.name = 'neohub'"""
- values = (device.temperature, datetime.utcnow())
-
- common.dbi(sql, values, verbose=True)
# Loop it forever
while True: