If you're like me, you enjoy listening to music when you're cooking or cleaning.
But this isn't as easy as it sounds. There are many steps that must be taken in order to make this happen:
- Find your phone
- Connect your phone to your home sound system
- Unlock your phone
- Open your music app
- Find the album you want and play it
Ugh. Think of the opportunity cost. I needed a better way.
"Home" is a Flask app running on a Raspberry Pi attached to the wall. The Pi is connected to a touch screen. The app is always running, so it's always ready to play music at the touch of a button.
The app uses OMXPlayer to play the music files. The process ID is stored in Redis, so it can be killed later if a different song is selected.
Touch the album you want, or the question box for a random choice.
Use this screen to see what song is playing. Touch a different song to change the track, or the stop button to stop playing.
The app is also wired up to the New York City subway API, so I can see when trains are arriving at the stations close to my home.