Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 3202ceec authored by Florian Beer's avatar Florian Beer Committed by GitHub
Browse files

Merge pull request #6 from mnin/patch-1

Fix data fetching for multiple stations
parents 3b8049fa c3aa7a7d
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ for station in weatherData.stations: ...@@ -33,7 +33,7 @@ for station in weatherData.stations:
timezone = station['place']['timezone'] timezone = station['place']['timezone']
longitude = station['place']['location'][0] longitude = station['place']['location'][0]
latitude = station['place']['location'][1] latitude = station['place']['location'][1]
for module, moduleData in weatherData.lastData(exclude=3600).items(): for module, moduleData in weatherData.lastData(station=station_name, exclude=3600).items():
for measurement in ['altitude', 'country', 'longitude', 'latitude', 'timezone']: for measurement in ['altitude', 'country', 'longitude', 'latitude', 'timezone']:
value = eval(measurement) value = eval(measurement)
if type(value) == int: if type(value) == int:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment