diff --git a/README.md b/README.md index e69de29..4b37f7c 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +# Как не стоит кодить на Python \ No newline at end of file diff --git a/main.sh b/main.sh index 11878b4..f0a3284 100755 --- a/main.sh +++ b/main.sh @@ -1 +1,3 @@ +#!/bin/bash + curl localhost:8000 > data.out \ No newline at end of file diff --git a/src/weather.py b/src/weather.py index 6746b13..0769767 100644 --- a/src/weather.py +++ b/src/weather.py @@ -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 \ No newline at end of file