19 lines
801 B
Python
19 lines
801 B
Python
from yahoo_weather.weather import YahooWeather
|
|
from yahoo_weather.config.units import Unit
|
|
|
|
data = YahooWeather(APP_ID="zvpvcSm8",
|
|
api_key="dj0yJmk9MkZpa0NuaVBFUVI2JmQ9WVdrOWVuWndkbU5UYlRnbWNHbzlNQT09JnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PTE1",
|
|
api_secret="27067344a9651608e034bd156ce125bf6c45790e")
|
|
|
|
#data.get_yahoo_weather_by_city("flammersfeld-649875", Unit.celsius)
|
|
data.get_yahoo_weather_by_location(50.63856454090637, 7.5160431030656145, Unit.celsius)
|
|
#50.63856454090637, 7.5160431030656145
|
|
#data.get_yahoo_weather_by_location(60,70,Unit.celsius)
|
|
#data.get_yahoo_weather_by_city("tehran", Unit.celsius)
|
|
# print(data.condition.text)
|
|
print(data.condition.text)
|
|
print(data.condition.temperature)
|
|
|
|
# print(data.condition.text)
|
|
# print(data.condition.temperature)
|