Implementation of "Spotify Connect" in LE would be very nice!
Spotify Connect
-
gschmidt -
April 12, 2016 at 7:25 PM -
Thread is Unresolved
-
-
- Official Post
There is an addon here - let us know if it works
-
Quote
- playback still relies on the old libspotify SDK so no support for Android x86 and very new ARM chipsets (like nvidia shield)
-
I have looked into it, however it seems that you have to do a workaround to install this on a RPi, because you need a web browser to authenticate the spotify user.
And I am also not sure if this Add-on will let the Pi work as a Spotify Connect device.I have a second Pi with Volumio installed, on top of that I installed GitHub - Fornoth/spotify-connect-web
This let the Pi work as a Spotify Connect device, which works like a charm. But I need 2 Pi's: One for audio (Volumio with spotify connect) and one for Video (LE/kodi).
Would be nice if an Add-on makes this work in LE -
- Official Post
I have now looked up what spotify-connect actually does and have to answer - I am not sure!
I don't use kodi for music, so would be happy for a volumio based pi, not sure why you would want it on the kodi machine as well.
-
- Official Post
Hmm, this looks fun and Spotify connect seems to be dockerized.. time for me to find out what that is and how it works.
ps: i have no clue what I'm doing
sent from my phone, typo's expected
-
Hmm, this looks fun and Spotify connect seems to be dockerized.. time for me to find out what that is and how it works.ps: i have no clue what I'm doing
sent from my phone, typo's expected
Docker not required.
This package contains all that is needed for Rpi2 and Rp3, and works fine:Releases · Fornoth/spotify-connect-web · GitHub
Just uncompress this archive, add your spotify_appkey.key and start:
./spotify-connect-web -u USERAME -p PASSWORDYou need alsa for it to work, so
dtparam=audio=on
in /flash/config for jack and hdmiFor hifiberry and likes, you just need to activate the according overlay
Config.txt - OpenELECEt voila, your Pi (2 or 3) is a spotify connect device
-
Only thing is that the user need some ssh and Linux knowledge. It would be nice to wrap this in a LE program or music add-on where the user in the config page can set the premium account login details, upload the spotify application.key and set the options like "Device Name" and streaming quality.
By the way nickr to your reply: i thought that kodi was meant as a multi media center which means pics, video and music...when it comes to music, spotify is a market leader and this way both iOS (airplay) and Android users can stream/play music to LE without sitting in front of a (TV) screen.
-
- Official Post
Yeah I agree with the usability for such an add-on. but I am not a developer. but if I can get it working perhaps I can guide a device who does not have Spotify to how it should work. Will see if I get some time to play with this soon.. Spotify ui on tablet/phone to browse while relaxing is an appealing thought
sent from my phone, typo's expected
-
- Official Post
I certainly take your point, but I don't want to have to turn the TV on to listen to music, so my music system is separate to my video system. Spotify-connect does raise some interesting possibilities though. I will certainly be playing with it, especially now I know my HT amplifier is spotify-connect capable.
-
And it would be even more interesting if it also has a multi-room audio setup with audio synchronization...
According to this thread it should be possible with snapcast:ALSA Resample Input - Use more Player with Snapcast · Issue #45 · badaix/snapcast · GitHub
This Guy has 3 pi's running synchronized spotify connect, but also can act seperately as a spotify connect device...nice for parties or to extend your livingroom music outdoors in the summer...
-
- Official Post
Squeeze players can do synchronised spotify, but I think not spotify-connect.
Sent from my U65GT using Tapatalk
-
I think snapcast doesn't control the spotify connect devices. The snapcast server grabs the spotify connect audio or any other audio stream, and sent it to the clients. But installing spotify connect on all clients also gives the user the choice to control them seperately too. And it seems that snapcast has much better synchronized performance over wifi.
I am gonna test next week. I was waiting for Volumio 2, which has snapcast integrated, but the beta version has still some other issues for my pi's, therefor i Have to manually install it.
-
Docker not required.
This package contains all that is needed for Rpi2 and Rp3, and works fine:Releases · Fornoth/spotify-connect-web · GitHub
Just uncompress this archive, add your spotify_appkey.key and start:
./spotify-connect-web -u USERAME -p PASSWORDYou need alsa for it to work, so
dtparam=audio=on
in /flash/config for jack and hdmiFor hifiberry and likes, you just need to activate the according overlay
Config.txt - OpenELECEt voila, your Pi (2 or 3) is a spotify connect device
Hi,
it tried it this way, but couldn´t get it working.
Python
Display MoreLibreELEC:~/spotify-connect-web # ./spotify-connect-web --help Loading Spotify library... Traceback (most recent call last): File "<string>", line 3, in <module> File "runpy.py", line 180, in run_module File "runpy.py", line 72, in _run_code File "/storage/spotify-connect-web/main.py", line 14, in <module> from connect import Connect File "/storage/spotify-connect-web/connect.py", line 9, in <module> from console_callbacks import audio_arg_parser, mixer, error_callback, connection_callbacks, debug_callbacks, playback_callbacks, playback_setup File "/storage/spotify-connect-web/console_callbacks.py", line 17, in <module> audio_arg_parser.add_argument('--mixer', '-m', help='alsa mixer name for volume control', default=alsa.mixers()[0]) alsaaudio.ALSAAudioError: Invalid argument [default] loader returned -1
im using
LibreELEC (community) Version: devel-20160603232424-#0603-gb4f3545
LibreELEC git: b4f3545fd7a85c7fcac25567f146e06eafa3342cMilhouse build from 03-06-2016
Hope someone could help
-
It is complaining about alsa mixer.
Check your config.txt, then try aplay -l and amixer commands
And it can be a specific issue in milhouse build. You should first try with the stable libreelec build
-
i tried the stable build, but didnt fix my error
here is the output of aplay and amixer
Code
Display MoreLibreELEC:~/.update # aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 LibreELEC:~/.update # amixer Simple mixer control 'PCM',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback 400 [100%] [4.00dB] [on]
I also added "dtparam=audio=on" in config.txt
-
Try to set the mixer on the command line:
./spotify-connect-web -u USERAME -p PASSWORD -m PCM
Or
./spotify-connect-web -u USERAME -p PASSWORD -m 0 -
Try to set the mixer on the command line:./spotify-connect-web -u USERAME -p PASSWORD -m PCM
Or
./spotify-connect-web -u USERAME -p PASSWORD -m 0sadly it didnt worked
i tried to change the device in amixer, but i got
-