diff options
author | pks <pks@pks.rocks> | 2021-05-11 10:13:20 +0200 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-05-11 10:13:20 +0200 |
commit | d94c998eb694fad8f81f07dee6e70b80dc5dbea7 (patch) | |
tree | fb18d8cfa7d688e15b6aaea643d9ea901241660e /weather-logger-receiver | |
parent | 19f9b2352fc499b0fc5302ef9e076f6fe9c204a8 (diff) |
fix
Diffstat (limited to 'weather-logger-receiver')
-rwxr-xr-x | weather-logger-receiver | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weather-logger-receiver b/weather-logger-receiver index 0b0219a..f0db5a4 100755 --- a/weather-logger-receiver +++ b/weather-logger-receiver @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: future_fstrings -*- import logging import os @@ -39,7 +38,7 @@ def setup_serial(device_path): def add_data_to_db(data, handle, db_connection): db_cursor = db_connection.cursor() columns = ["timestamp", "handle", "temperature"] - values = [int(time.time()), handle, data.values['Temperature'] + values = [int(time.time()), handle, data.values['Temperature']] if "Humidity" in data.values: columns.append("humidity") values.append(data.values['Humidity']) |