Build a Weather App with Python and Pyowm (OpenWeatherMap API) | #74

Опубликовано: 19 Май 2020
на канале: Brandon Jacobson (Jacobson Enterprises)
7,106
68

**UPDATE** 27 Dec 20:

The updated code is like this:
owm = pyowm.OWM('YOUR API KEY')
mgr = owm.weather_manager()
observation = mgr.weather_at_place('City, State')
w = observation.weather
temp = w.temperature('fahrenheit')
status = w.detailed_status
print("It is currently " + str(int(temp['temp'])) + " degrees and " + status)

In this video, we'll take some inspiration from the first Iron Man movie and Build a Weather App with Python and Pyowm using the OpenWeatherMap API. I used my own custom function to make it talk to you.

You have to register for an API first here: https://openweathermap.org/api It takes a couple of hours for your API to be activated.

This video explains just the basics of what you can do. Read more here on the documentation site: https://pyowm.readthedocs.io/en/lates...

#Python #Pyowm #OpenWeatherMapAPI


Смотрите видео Build a Weather App with Python and Pyowm (OpenWeatherMap API) | #74 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Brandon Jacobson (Jacobson Enterprises) 19 Май 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 7,106 раз и оно понравилось 68 посетителям.