dronir / SpotifyControl

Control Spotify from the command line on macOS
447 stars 58 forks source link

Spotify Connect #29

Open PatiB87 opened 7 years ago

PatiB87 commented 7 years ago

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:

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.

dronir commented 7 years ago

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.

dronir commented 7 years ago

I'll keep this open like the other issues, in case something changes in the future…