Raspberry Pi Spotify Display - Auto Screen Control!
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiea8eDMjOE6a45gHbcpU0XwObjkB2zO3bYeCBX2gs3btxS9igsBOWg7DAalvxy0skEYhPgtiKZQaemMFT31bygBQxOBP8hDA4supqBB7E9zulIRYFYo-BxxGV1zXsrdCvltThz0sqn0IksqJirqi7ZgC9yIQbDSx5HerYkCpvYImjghQUqBnkdrFeuIg/w294-h147/New.png)
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...