aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2021-01-06 20:45:35 +0100
committerVolker Hoffmann <volker@cheleb.net>2021-01-06 20:45:35 +0100
commit64bdbb7f4ced091951f3e0dd032bf28a8be53420 (patch)
treecee2857aff2079bd02dcb17e2dae50720435cf4f
parent23089e558d5dcfc55c1f520ded54132398c28104 (diff)
fix: netatmo now has homes (not stations)
-rw-r--r--Common/sensors.py4
-rw-r--r--ticker.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Common/sensors.py b/Common/sensors.py
index 36594d2..b967f45 100644
--- a/Common/sensors.py
+++ b/Common/sensors.py
@@ -5,7 +5,7 @@ Get Environmental Sensor Data.
import External.lnetatmo as lnetatmo
-def get_netatmo_readings(station='Ng58', modules=['Living Room', 'Bedroom']):
+def get_netatmo_readings(home='Ng58', modules=['Living Room', 'Bedroom']):
"""
Get Netatmo Readings.
@@ -46,7 +46,7 @@ def get_netatmo_readings(station='Ng58', modules=['Living Room', 'Bedroom']):
clientSecret = clientSecret, \
username = username, \
password = password)
- devList = lnetatmo.WeatherStationData(authorization, station=station)
+ devList = lnetatmo.WeatherStationData(authorization, home=home)
# Get Data
epochs = {}
diff --git a/ticker.py b/ticker.py
index 6941e96..036f152 100644
--- a/ticker.py
+++ b/ticker.py
@@ -31,7 +31,7 @@ if not args.netatmo and not args.vpn and not args.fs:
# #############################################################################
if args.netatmo:
readings, epochs = \
- sensors.get_netatmo_readings(station='Lv114',\
+ sensors.get_netatmo_readings(home='Lv114',\
modules=['Living Room', \
'Balcony/SW'])