Dress For Weather is a Python application that helps you decide what to wear based on the current weather conditions. By utilizing the ClimaCell Weather API, it fetches real-time weather forecasts and processes this data through decision trees to recommend the most suitable outfit for the day.
- Real-time weather forecast fetching using ClimaCell Weather API.
- Automated outfit suggestions based on temperature, precipitation, and weather conditions.
- Customizable settings for personalized recommendations.
- Simple and intuitive setup and usage.
- Python 3.x
- requests library
- Clone the repository or download the source code.
- The Requests library in Python provides abstractions that simplify calling APIs by a lot. The good news is the developer dashboard generates ready to use Python code, so our process is extremely streamlined.
- Obtain a free API key from ClimaCell by signing up at their dashboard.
- Determine your location's latitude and longitude for accurate weather forecasts. Websites like https://www.gps-coordinates.net can help you find these coordinates.
- Open
weather.py
in your preferred text editor. - Replace
LAT
,LON
andAPIKEY
with your latitude, longitude and API key on the last line! - Run the script
python3 weather.py
- Get your outfit suggestion for the next 6 hours.
The application calls the ClimaCell Weather API to retrieve the forecast for your location. It then processes this data through decision trees to determine factors like the day's minimum and maximum temperature, weather code and more. Based on this analysis, it suggests an appropriate outfit.
Contributions to Dress Code Assistant are welcome! Feel free to fork the repository, make your changes, and submit a pull request.