8 AM, the alarm clock wakes you up, you have to get out of bed but it's so cozy under the sheets. To make my mornings more pleasant I decided to create a way to have Spotify playing through my speakers automatically when my alarm goes off!
A temporary solution I considered was using SSH to execute commands on the pc and the Spotify app on my phone to start the songs. However this was not user friendly.
So for the actual solution I used a macro on my phone to automatically send a WOL packet to my pc after the alarm goes off.
The second part is a script that starts automatically with the pc. It sends several request to the Spotify API to select the pc as playback device and to start playing my Liked Songs.
For fun I also extended the bot with some extra commands which you can view down below