mirror of
https://github.com/assenzostefano/RetniNet.git
synced 2025-06-05 21:49:14 +02:00
Removeprint test for meteo
This commit is contained in:
1
index.py
1
index.py
@@ -98,7 +98,6 @@ def meteo_step(message):
|
|||||||
city = message.text
|
city = message.text
|
||||||
token_weather = os.environ.get('WEATHER_TOKEN')
|
token_weather = os.environ.get('WEATHER_TOKEN')
|
||||||
response = requests.get("https://api.openweathermap.org/data/2.5/weather?q="+city+",it&APPID="+token_weather).json()
|
response = requests.get("https://api.openweathermap.org/data/2.5/weather?q="+city+",it&APPID="+token_weather).json()
|
||||||
print(response)
|
|
||||||
weather = response['weather'][0]['main']
|
weather = response['weather'][0]['main']
|
||||||
temp = response['main']['temp']
|
temp = response['main']['temp']
|
||||||
temp = temp - 273.15
|
temp = temp - 273.15
|
||||||
|
Reference in New Issue
Block a user