Inspiration
I wanted to make something related to the weather because my friend had done something similar in the past, and I wanted to learn more about how weather APIs work.
What it does
The program takes an input with a city name and country code, and then presents a list of search results based on the input. After the result is selected, the program presents a summary of weather conditions, which includes temperature and UV index.
How I built it
I used Python for the language and the OpenWeatherMap API to retrieve weather data. I also used the PyOWM library to make it easier to retrieve the data.
Challenges I ran into
I had trouble with getting the search results to work properly, because I had to parse a JSON file with a long list of cities, which would take a long time. Sometimes, I would also become lost in my code, since I don't always remember to leave comments.
Accomplishments that I'm proud of
I'm glad that I figured out how to work the OpenWeatherMap API and integrate it with a program, and I'm also proud of how I was able to parse a JSON file, even if it was a slow and inefficient method.
What I learned
I learned that I need a better way to parse through large datasets like the list of cities, and I also need to do a better job with commenting.
What's next for python-weather
In the future, I want to turn this app into something I'd use on a day-to-day basis, which means adding a GUI and improving the performance. I also plan to add more weather conditions, such as the CO2 level and the amount of clouds.
Built With
- openweathermap
- pyowm
- python

Log in or sign up for Devpost to join the conversation.