Inspiration:
Weather information is used in a variety of fields, starting from alarm clocks, remainder app, to websites. Thus came the need for an easily available script which can be used to check the weather at any given time. It can be also used in any different projects thus reducing the time required and adding a convenient functionality for any project.
What it does:
The current weather script provides the user the current weather conditions of any location of the world. It returns:
- Current Date
- Current Time
- Current Temperature
- Temperature it feels like
- Maximum Temperature
- Minimum Temperature
- Current Weather Description
- Current Humidity
- Current Wind Speed
How we built it:
The whole script is written in Python 3.10.1. The "Current Weather Data" from OpenWeatherMap API is used to collect all the weather condition data in the form of .json file. Code Editor used is Visual Studio Code. The API key has been stored in Windows Environment Variables to secure the information.
Challenges we ran into:
The main challenge faced was reading the API key. Also the storage of the API key was a new challenge.
Accomplishments that we're proud of:
Using an API to collect Weather Information. Securing the code by hiding the API key. Creating a script which will be helpful in other projects as well.
What we learned:
- Using an API to collect information.
- Storing sensitive information like API key and passwords in Windows Environment Variables, thus increasing security.
- Extracting data in form of .json file
What's next for Current Weather
The script will be further developed into an Weather App. It will also be used in other projects to bring extra functionality to the project. Overall it is very useful since weather data is an essential information used in various fields.
Log in or sign up for Devpost to join the conversation.