Spaces:
Runtime error
Runtime error
Ziyou Li
commited on
Commit
·
be8fd3b
1
Parent(s):
3bf6bd4
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def get_row():
|
|
30 |
json_response_smhi = json.loads(response_smhi.text)
|
31 |
|
32 |
# weather data manual https://opendata.smhi.se/apidocs/metanalys/parameters.html#parameter-wsymb
|
33 |
-
referenceTime = dp.parse(json_response_smhi["referenceTime"]).timestamp()
|
34 |
|
35 |
t = json_response_smhi["timeSeries"][0]["parameters"][0]["values"][0] # Temperature
|
36 |
ws = json_response_smhi["timeSeries"][0]["parameters"][4]["values"][0] # Wind Speed
|
|
|
30 |
json_response_smhi = json.loads(response_smhi.text)
|
31 |
|
32 |
# weather data manual https://opendata.smhi.se/apidocs/metanalys/parameters.html#parameter-wsymb
|
33 |
+
# referenceTime = dp.parse(json_response_smhi["referenceTime"]).timestamp()
|
34 |
|
35 |
t = json_response_smhi["timeSeries"][0]["parameters"][0]["values"][0] # Temperature
|
36 |
ws = json_response_smhi["timeSeries"][0]["parameters"][4]["values"][0] # Wind Speed
|