I’m running Mopidy on a raspberry Pi and I’m making a kiosk-type display that will host a web page in full screen mode. It’s a touchscreen device, so users can couch menu items to interact with it.
I’m able to run Mopidy on my Pi just fine and I’m able to incorporate the HTTP web clients to display my music library, but I’m trying to think of a way to allow the user to initiate mopidy from within the interface. The reason for this is simple: Spotify doesn’t let multiple sessions run simultaneously. So, if I use Spotify elsewhere in my life while Mopidy is running, it will require a restart of mopidy in order to run correctly.
Ideally, I’d like to send a request form my local HTML page that can start Mopdiy so the session will always be fresh and force-close any other Spotify session running out there. Any suggestions?