In this video, learn how to further enhance your weather app GUI using the OpenWeatherMap API. This allows you to retrieve weather data from cities located all over the world. You'll retrieve this data directly from the web.
- [Narrator] In this video we will be using…the OpenWeatherMap API in order to collect…weather data information from cities throughout…the entire world.…In order to use the free OpenWeatherMap API,…you do require an API PIN.…You get a key by going to the openweathermap.org…website, and we have to sign up for it but it is free.…So we click on the sign up button, and then…you fill in the required information.…
Once we have our own OpenWeatherMap API key,…we can create a new Python module and simply…place this key into this Python module.…Next we import the module that contains our API key…and then we use this key and put it into the query string.…So we when we run the query using the OpenWeatherMap for…Los Angeles, for example, what we get back is a JSON string.…
So here, this is the URL, API openweathermap.org,…et cetera, et cetera.…The account's the city, our API key,…and what we get back…is all of this information.…This is in JSON format and in Python we can…very easily parse it and turn this into a dictionary.…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Running Python programs within Eclipse
- Setting breakpoints
- Using the PyDev debugger
- Using design patterns
- Creating a GUI application with Tkinter
- Writing a Windows scheduling service