Removeprint test for meteo
This commit is contained in:
parent
01b86b0e1b
commit
fff8cc8fa6
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
|
||||||
|
|
Loading…
Reference in New Issue