refactor: new weather metrics
This commit is contained in:
parent
833a6500b1
commit
bcafac3766
|
@ -10,7 +10,7 @@ def weather_handler(date: str):
|
|||
+ str(coordinates[0])
|
||||
+ "&longitude="
|
||||
+ str(coordinates[1])
|
||||
+ "¤t=temperature_2m,wind_speed_10m&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m"
|
||||
+ "¤t=temperature_2m,relative_humidity_2m,rain,snowfall,weather_code,wind_speed_10m,wind_direction_10m&hourly=temperature_2m,relative_humidity_2m,rain,snowfall,weather_code,wind_speed_10m,wind_direction_10m&timezone=Europe/Moscow&forecast_days=3"
|
||||
)
|
||||
raw_data = urllib.request.urlopen(url).read()
|
||||
return raw_data
|
Loading…
Reference in New Issue
Block a user