Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit c3aa7a7d authored by Martin Wilhelmi's avatar Martin Wilhelmi Committed by GitHub
Browse files

Fix data fetching for multiple stations

parent 3b8049fa
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ for station in weatherData.stations:
timezone = station['place']['timezone']
longitude = station['place']['location'][0]
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']:
value = eval(measurement)
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