wetterinfo angefügt
This commit is contained in:
1 parent
ed7fd71368
commit
a5b9e96ebd
5 files changed
+119
-5
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
Reference in new issue
Block a user