Spotify Connect Web

  • did you try modprobe snd-bcm2835?

    This works for me, however I have to run it everytime I reboot PI

    Is there a startup area I can put this in?

    Cheers

  • okay meanwhile I think spotify doesn't create libspotify appkeys anymore :-/
    or did anybody get one within the last days?

    is it possible to change the way of the authorization in the addon maybe with the Web API? :huh:

  • thanks!

    Is the spotify_appkey.key unique oder the same for every user? I just found one to download and it is working.
    I see the webinterface on port 4000.

    Now my problem is: The webinterface shows the playing music but mostly I don't hear anything. But sometimes it is working (I can't really reproduce it). I tried all the possibilities in the configuration wizard but that didn't solve the problem
    I am using a raspberry Pi with Libreelec and Hfiberry DAC. What do I have to select in the configuration wizard? The options are:
    - default:CARD=sndrpihifiberry
    - sysdefault:CARD=sndrpihifiberry

    Does it matter which one I select? And Mixer Analogue or Digital?

    Sorry for the stupid questions :s

  • effe.rnr
    I'm waiting for my key for 10 days now...

    Is your downloaded key really working? Can you send me the URL, or the keyfile?

    regards

    Michael

    I wait a very long time to get one... i suggest u to contact their support @SpotifyCares on Twitter, this is the way i got mine.


  • Please use legitimate keys and see with Spotify support how to obtain one.

    For the audio software "Volumio 2" somebody created a Spotify Connect Plugin (also based on the Fornoth Spotify-Connect-Web) that installs its own spotify_app_key! I have tested Volumio 2 and the plugin on a RPi 2b and it works, so maybe this is also an option for your add-on/Service?

    Check the readme.md on this site

    volumio-plugins/plugins/music_service/volspotconnect at master · balbuze/volumio-plugins · GitHub

    Edited once, last by gschmidt (November 17, 2016 at 7:18 PM).

  • I just got my app key with this message(FYI):


    under this there were some code like:

    --[ HEX/BASE16 APPKEY ]---

    *code*

    --[ BASE64 APPKEY ]---

    *code*

    --[ BINARY APPKEY ]---

    *code*

    --[ C APPKEY ]---

    *code*

    ----
    there is also an attachement with the spotify_appkey.key

    The Problem is:
    It isn't working anymore. I don't get any connection to the webservice. With the key I downloaded from the internet, is is working.
    Do I have to create the binary file by myself? I copied the code under --[ BINARY APPKEY ]--- in a editor and saved it as spotify_appkey.key but this neither works.

    EDIT1: in other words: How do I create the binary file out of the code?
    EDIT2: the binary code starts with echo. When I put it in terminal it says: Invalid character in input stream
    Do you have any idea @awiouy

    thank you!

    Edited once, last by effe.rnr (November 17, 2016 at 7:51 PM).

  • You have to download the mail attachement spotify_appkey.key and copy this file in smb://libreelec.local/userdata/addon_data/service.spotify-connect-web

    Edited once, last by ch1ch1 (November 17, 2016 at 7:57 PM).


  • Maybe have a look at

    journalctl -u service.spotify-connect-web

    You'll probably get a good info on what's happening

    it says:

    Quote


    -- Logs begin at Thu 2016-11-17 21:01:29 CET, end at Thu 2016-11-17 21:12:11 CET. -- Nov 17 21:01:29 LibreELEC sh[10097]: Loading Spotify library... Nov 17 21:01:29 LibreELEC sh[10097]: min_volume_range: 0.0 Nov 17 21:01:29 LibreELEC sh[10097]: Using libspotify_embedded version: release-esdk-1.20.0-v1.20.0-g594175d4 Nov 17 21:01:29 LibreELEC sh[10097]: SpInit: 2 Nov 17 21:01:29 LibreELEC sh[10097]: SpInit failed, exiting Nov 17 21:01:29 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Main process exited, code=exited, status=1/FAILURE[[0m Nov 17 21:01:29 LibreELEC sh[10097]: Got SIGTERM, quitting. Nov 17 21:01:29 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Unit entered failed state.[[0m Nov 17 21:01:29 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Failed with result 'exit-code'.[[0m Nov 17 21:01:29 LibreELEC systemd[1]: service.spotify-connect-web.service: Service hold-off time over, scheduling restart. Nov 17 21:01:29 LibreELEC systemd[1]: Stopped spotify-connect-web. Nov 17 21:01:29 LibreELEC systemd[1]: Started spotify-connect-web. Nov 17 21:01:29 LibreELEC sh[10121]: Simple mixer control 'Digital',0 Nov 17 21:01:29 LibreELEC sh[10121]: Capabilities: pvolume pswitch Nov 17 21:01:29 LibreELEC sh[10121]: Playback channels: Front Left - Front Right Nov 17 21:01:29 LibreELEC sh[10121]: Limits: Playback 0 - 207 Nov 17 21:01:29 LibreELEC sh[10121]: Mono: Nov 17 21:01:29 LibreELEC sh[10121]: Front Left: Playback 166 [80%] [-20.50dB] [on] Nov 17 21:01:29 LibreELEC sh[10121]: Front Right: Playback 166 [80%] [-20.50dB] [on] Nov 17 21:01:30 LibreELEC sh[10121]: Established under name 'TestConnect' Nov 17 21:01:32 LibreELEC sh[10121]: Loading Spotify library... Nov 17 21:01:32 LibreELEC sh[10121]: min_volume_range: 0.0 Nov 17 21:01:32 LibreELEC sh[10121]: Using libspotify_embedded version: release-esdk-1.20.0-v1.20.0-g594175d4 Nov 17 21:01:32 LibreELEC sh[10121]: SpInit: 2 Nov 17 21:01:32 LibreELEC sh[10121]: SpInit failed, exiting Nov 17 21:01:32 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Main process exited, code=exited, status=1/FAILURE[[0m Nov 17 21:01:32 LibreELEC sh[10121]: Got SIGTERM, quitting. Nov 17 21:01:32 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Unit entered failed state.[[0m Nov 17 21:01:32 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Failed with result 'exit-code'.[[0m Nov 17 21:01:33 LibreELEC systemd[1]: service.spotify-connect-web.service: Service hold-off time over, scheduling restart. Nov 17 21:01:33 LibreELEC systemd[1]: Stopped spotify-connect-web. Nov 17 21:01:33 LibreELEC systemd[1]: Started spotify-connect-web. Nov 17 21:01:33 LibreELEC sh[10144]: Simple mixer control 'Digital',0 Nov 17 21:01:33 LibreELEC sh[10144]: Capabilities: pvolume pswitch Nov 17 21:01:33 LibreELEC sh[10144]: Playback channels: Front Left - Front Right Nov 17 21:01:33 LibreELEC sh[10144]: Limits: Playback 0 - 207 Nov 17 21:01:33 LibreELEC sh[10144]: Mono: Nov 17 21:01:33 LibreELEC sh[10144]: Front Left: Playback 166 [80%] [-20.50dB] [on] Nov 17 21:01:33 LibreELEC sh[10144]: Front Right: Playback 166 [80%] [-20.50dB] [on] Nov 17 21:01:34 LibreELEC sh[10144]: Established under name 'TestConnect' Nov 17 21:01:36 LibreELEC sh[10144]: Loading Spotify library... Nov 17 21:01:36 LibreELEC sh[10144]: min_volume_range: 0.0 Nov 17 21:01:36 LibreELEC sh[10144]: Using libspotify_embedded version: release-esdk-1.20.0-v1.20.0-g594175d4 Nov 17 21:01:36 LibreELEC sh[10144]: SpInit: 2 Nov 17 21:01:36 LibreELEC sh[10144]: SpInit failed, exiting Nov 17 21:01:36 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Main process exited, code=exited, status=1/FAILURE[[0m Nov 17 21:01:36 LibreELEC sh[10144]: Got SIGTERM, quitting. Nov 17 21:01:36 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Unit entered failed state.[[0m Nov 17 21:01:36 LibreELEC systemd[1]: [[0;1;39mservice.spotify-connect-web.service: Failed with result 'exit-code'.[[0m standard input

    Edited once, last by effe.rnr (November 17, 2016 at 8:14 PM).


  • Hm... Difficult to assess... Try running manually:
    systemctl stop service.spotify-connect-web
    spotify-connect-web.start

    Also, are you using a key file provided by Spotify?

    I tried it with the key I got from spotify today but it does not work. I need the key as a binary file right? Maybe the key I received as the .key-file isn't a binary file and thats the problem? I don't know..

    in the mail from spotify there is a part:

    Quote


    --[ BINARY APPKEY ]---

    echo "blablablabla" | base64 -D >appkey$
    bin

    Maybe I have to create the binary key file by myself with this command but I don't know how to do that

    At the moment i am using another key and it is working.

    EDIT: Okay I just succeeded creating a binary file out of the code spotify sent to me in the email. I will test tomorrow if it works

    Edited once, last by effe.rnr (November 18, 2016 at 12:31 AM).

  • I wait a very long time to get one... i suggest u to contact their support @SpotifyCares on Twitter, this is the way i got mine.


    Contact via twitter was successful. I just received this message (and the key) from Spotify Developer Support <[email protected]>:

    Quote


    Hi,

    You've requested a Spotify App Key for libspotify. Thanks for the interest!
    Please be aware that libspotify has been deprecated since 2012, and is no longer supported in any way. This means that it could stop working at any moment, and will not be fixed. We understand that some open source media centers and other projects use libspotify and require Spotify App Keys, and therefore in some cases we manually issue them to users. We strongly recommend not developing any new software using libspotify. We're actively looking for a solution for this particular use case.

    That said, please find your app key attached, with other formats in the footer of this email.

    Best regards,

    Spotify Developer Support

    Michael

    Edited once, last by mipa (November 18, 2016 at 11:21 AM).