SpotifyControl
SpotifyControl copied to clipboard
Spotify Connect
Hey,
this is pretty much what I was looking for. I am running Spotify on a Mac Mini connected to my main stereo and also got a Raspberry Pi 3 as home control server (with the software FHEM). My goal is to have a button in my home control that takes over my Spotify song from my iPhone to my stereo, so what is has to do (and is partially already accomplished) is:
- wake the mac (check!)
- start spotify via ssh (check!)
- set the system volume to a predefined level (check!)
- turn on the stereo via infrared and LIRC (check!)
- set the volume of Spotify to a predefined level via ssh (check, thanks to your tool!)
- tell Spotify on the Mac to play the music "here" (still missing)
By now Spotify starts and via "Spotify Connect" notices that I am listening to music on iPhone and I can overtake to the Mac from either the iPhone or the Mac itself but it's manual either way and I need a way to do exactly this via ssh.
Sorry, my script uses the AppleScript hooks that Spotify offers in Spotify.app/Contents/Resources/Spotify.sdef
, and these don't include a command to change the playback device. Doing that via this script is not possible unless a command hook like that is added. You could always try asking the Spotify devs for that, but don't expect results.
I haven't personally researched any other ways to possibly control Spotify, so I can't help you with that either.
I'll keep this open like the other issues, in case something changes in the future…