Posts

Showing posts from June, 2022

Raspberry Pi Spotify Display - Auto Screen Control!

Image
Project continues here:  https://blog.romangarms.com/2023/03/raspberry-pi-spotify-status-sequel.html What's new? A minor update, but now the Nowify Spotify display can turn on and off the Raspberry Pi's screen! The Java webserver ( GitHub link here ) can now get requests directly from my tweaked version of Nowify ( GitHub link here ).  How does it work? The webserver (hosted on the Raspberry Pi itself) looks for pings on either "localhost:9000/TurnOnScreen" or "localhost:9000/TurnOffScreen" to then send a vcgencmd command to turn the display on or off. My version of Nowify sends an HTTP get request to the "TurnOnScreen" URL when music begins playing, and sends a different HTTP request to the "TurnOffScreen" URL when music stops. Very basic, but it works quite nicely. Next Steps I'd like to prevent the TurnOffScreen request from being instant. I still have a "no music is currently playing" page, I don't want it to entirel

Raspberry Pi Spotify Display - Nowify, Homebridge, and More!

Image
Project continues here: https://blog.romangarms.com/2022/06/raspberry-pi-spotify-display-auto.html Setup A while ago, I set up a Raspberry Pi 3B and cheap touchscreen display to show the song I'm currently listening to on Spotify. I did this by installing Raspbian, and then running Jon Ashcroft's Nowify  on the display, albeit with some slight modifications. I customized a couple of things. One, the "no music is currently playing" screen is now black, and less attention-grabby. Secondly, the font size got bumped up a little (a requirement for this tiny 7" screen, but still not enough!).  I also added one other helpful feature, though this one isn't a part of the Nowify site. I added integration with Apple Homekit through  Homebridge , which allows me to remotely turn on and off the display from my phone. Hitting buttons on my phone sends a signal to my computer hosting the Homebridge server, which sends a command over SSH to the Raspberry Pi to enable or disa