Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify Connect #29

Open
PatiB87 opened this issue Apr 7, 2017 · 2 comments
Open

Spotify Connect #29

PatiB87 opened this issue Apr 7, 2017 · 2 comments

Comments

@PatiB87
Copy link

PatiB87 commented Apr 7, 2017

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.

@dronir
Copy link
Owner

dronir commented Apr 8, 2017

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
Copy link
Owner

dronir commented Apr 8, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants