X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/90b27bb7bd4231c93556537faa5ee6b9a6329291..07f6fd2c6041d6203380a60771ce1cffdc2f68a7:/web/seepark_web.py diff --git a/web/seepark_web.py b/web/seepark_web.py index c19e9b9..e8b9da1 100644 --- a/web/seepark_web.py +++ b/web/seepark_web.py @@ -132,7 +132,7 @@ def sensordata(sensor_id=None, sensor_type=None): def currentairtemperature(apikey, cityid): """Retruns the tuple temperature, datetime (as float, datetime) in case of success, otherwise None, None.""" try: - weatherdata = openweathermap_json(apikey, cityid) + url, weatherdata = openweathermap_json(apikey, cityid) return weatherdata['main']['temp'], datetime.datetime.fromtimestamp(weatherdata['dt']) except OpenWeatherMapError: return None, None