
Weatherbox
Web app that generates Spotify playlists based on the weather in a user's selected location.
SKILLS
Web Development, API Integration, UI/UX Design
DURATION
Jun 2025 (1 week)
Inspiration
First thing I do everyday is check the weather and select a playlist to jumpstart my day. Why not combine both into one action?
Ideation

Tools

Python

HTML

CSS
API Resources
OpenWeather
Given the longitude and latitude, it provides real-time weather forecast, my project took the temperature and the type of weather.
Spotify
With user authorization, it provides access to music and user data, allowing my project to create a playlist of songs in a user's account.

Weather Formula
Temperature
Taking the temperature from OpenWeather, I gave each range of temperatures a categorization (<32 is "freezing", <50 is "cold", etc.)
Combinations
Taking all possible types of weather conditions from OpenWeather, I matched each with a temperature designation for a variety of possible weather scenarios ("Freezing_Clear", "Freezing_Cloudy", "Cold_Rainy", etc.)
Song Dictionary
Preset Songs
I created a dictionary of 50 songs for each potential weather combination.

Playlist Creation
Selected Songs
A playlist is generated that randomly selects the songs from the dictionary of songs, the number of songs is decided by the user.

Playlist Created
The user can download and listen to their newly created playlist for the day based off the forecast.

Learnings
This project chellenged me to apply my Python & HTML/CSS skills to a functional product usinig 2 different API resources. I learned how to organize/store info from the APIs, handle redirects, and securely connect the application to the user's account.