aboutsummaryrefslogtreecommitdiffstats
path: root/Common
diff options
context:
space:
mode:
Diffstat (limited to 'Common')
-rw-r--r--Common/sensors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/sensors.py b/Common/sensors.py
index 2f75a41..36594d2 100644
--- a/Common/sensors.py
+++ b/Common/sensors.py
@@ -46,13 +46,13 @@ def get_netatmo_readings(station='Ng58', modules=['Living Room', 'Bedroom']):
clientSecret = clientSecret, \
username = username, \
password = password)
- devList = lnetatmo.DeviceList(authorization)
+ devList = lnetatmo.WeatherStationData(authorization, station=station)
# Get Data
epochs = {}
readings = {}
for module in modules:
- readings_raw = devList.lastData(station=station)[module]
+ readings_raw = devList.lastData()[module]
readings_sane = {}
for key, value in zip(readings_raw.keys(), readings_raw.values()):
if key in [ 'Noise', 'Temperature', 'Humidity', \