Inspiration
We recognized that over 970 million people across the world currently suffer from a mental health illness. Stress due to school, anxiety, isolation, feeling mentally under-stimulated due to a lack of human interaction/quarantine forms a global mental health pandemic. As students, we understand the importance of mental health awareness, and as active Spotify users, we know how impactful music is for de-stressing.
What it does
Medela asks for authorization from the user to access Spotify API data in order to sort the user’s liked songs by danceability, energy and valence (positivity) scores. It follows a musical therapy route of pushing uptempo, happy songs to the user, before mellowing out. The app places liked songs with a tempo between 75-85 bpm in the middle of the playlist to encourage the user to focus on their heartbeat and breathing. The playlist ensures that the valence score never dips below 0.2, keeping the user positive throughout the experience, and leads the user out of the musical meditative state it creates with low danceability songs under 60 bpm.
How we built it
Python, HTML, CSS, Flask, Figma, Spotify
Challenges we ran into
- Coding user interaction with OAuth 2.0 to gain access to Spotify API user data.
- Integrating a google spreadsheet contact system into a website.
Accomplishments that we're proud of
- Integrating the Spotify API with python code and automating the process of altering Spotify libraries.
- Using Figma to outline user experience features such as graphical control.
- Implementing the frontend design using HTML and CSS styling.
- Collaborating efficiently and effectively delegating tasks amongst our team.
What we learned
- New Python and CSS documentation (ex: flask, request, spotipy)
- How to use client ids for web apps that incorporate API
- How to retrieve access codes on behalf of a user from an API
- How to work collaboratively, motivate generously, and network maturely
- How to use google sheets as a database for newsletter signups and how to tie it to the Medela website using the google sheets API.
What's next for Medela
- Opening the app up for everyone to use.
- Providing users with educational resources on music therapy on the Medela website.
- Coding an audio visualizer with python to accompany the playlist created.
- Creating an authentication system for the website.
Log in or sign up for Devpost to join the conversation.