Solved No response from the player, Spotify or Librespot,
-
@2hdlockness : this looks like the bug we had with another application
-
Thank you for the response, I did exactly as you wrote, it took time, and finally no errors, yet Doesnt take the order, when I say Jarvis, Play Piano on Spotify, Nothing happen.
-
Hi,
I think we have to start from the beginning
And see if the ābasicā functions work correctlyEXT-Spotify display something when you play Music from spotify on phone ?
-
-
I am seeing this same issue. The issue for is only when there is not currently anything playing on spotify. All functions work except for starting Librespot player.
I can:
- use my phone to play spotify on the mirror.
- control spotify once any player is running.
I cannot:
- Play anything on spotify if there is currenly no player active.
The error repeats 6 tmes before stopping:
[05.11.2023 16:26.29.083] [LOG] [SPOTIFY] API Request fail on : /v1/me/player/play AxiosError: Request failed with status code 404
[05.11.2023 16:26.29.086] [LOG] [SPOTIFY] No response from player !
[05.11.2023 16:26.29.090] [LOG] [SPOTIFY:PLAY] Error 404 {
error: {
status: 404,
message: āPlayer command failed: No active device foundā,
reason: āNO_ACTIVE_DEVICEā
}
}
[05.11.2023 16:26.29.313] [LOG] [LIBRESPOT] Restartat the same time i see this on the librespot pm2 logs:
[2023-11-05T16:26:29Z INFO librespot] Gracefully shutting down
[2023-11-05T16:26:29Z INFO librespot] librespot 0.4.2 22f8aed (Built on 2023-11-05, Build ID: TCc9tkI4, Profile: release)
[2023-11-05T16:26:32Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:4070
[2023-11-05T16:26:32Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gue1.spotify.com:80
[2023-11-05T16:26:32Z INFO librespot_core::session] Connecting to AP āap-gew1.spotify.com:4070ā
[2023-11-05T16:26:35Z INFO librespot_core::session] Authenticated as āxhqfmza5lgjfeu778ouox308rā !
[2023-11-05T16:26:35Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Cubic(40.0)
[2023-11-05T16:26:35Z INFO librespot_playback::convert] Converting with ditherer: tpdf
[2023-11-05T16:26:35Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16
[2023-11-05T16:26:35Z INFO librespot_core::session] Country: āIEāI am assuming it is related to the blacklisting but donāt know where to start with fixing that.
-
can you past the result of this command in a terminal:
ps aux | grep librespot
(donāt forget to moderate your content: username/password)
-
Sure thing, here you go.
62638 550 0.2 0.0 17124 6424 ? Ss 19:03 0:00 /usr/bin/librespot
eoin 1082 0.0 0.0 16844 5692 ? Ssl 19:04 0:00 /home/eoin/MagicMirror/modules/EXT-Librespot/components/librespot/librespot --name Mirror --username <username> --password <password> --initial-volume 100 --cache /home/eoin/MagicMirror/modules/EXT-Librespot/components/librespot/cache --volume-ctrl cubic --volume-range 40
eoin 2296 0.0 0.0 7448 464 pts/0 S+ 19:06 0:00 grep --color=auto librespot -
Problem is there:
62638 550 0.2 0.0 17124 6424 ? Ss 19:03 0:00 /usr/bin/librespot
You have 2 active librespot app, itās why it canāt connect
Maybe an installation with librespot as service or ā¦ maybe you have installed raspotify ? -
OK, I uninstalled all versions of librespot. Followed the step 2 above. Install finished, without issue but still seeing the same problem.
Back to one instance:
eoin 1066 0.0 0.0 16844 6108 ? Ssl 22:16 0:00 /home/eoin/MagicMirror/modules/EXT-Librespot/components/librespot/librespot --name Mirror --username <email> --password <password> --initial-volume 100 --cache /home/eoin/MagicMirror/modules/EXT-Librespot/components/librespot/cache --volume-ctrl cubic --volume-range 40
eoin 2474 0.0 0.0 7448 524 pts/0 S+ 22:18 0:00 grep --color=auto librespot -
right itās good for me
So, we are going to restart from the beginning for testing ā¦ step by stepNow, when you listen music from Spotify on your phone
does EXT-Spotify on MagicMirror display the title ?(I ask this question to know if EXT-Spotify is properly installed ā¦ step by step)
-
@bugsounet Yes, EXT-Spotify displays the song when spotify is currently playing on any device. And it is able to control spotify while spotify is running.
-
ok perfect
Next step:
Try to play spotfy music from your phone and transfert it to
Mirror
/!\ wireless connexion is neededMusic must continue with
EXT-Librespot
-
Well good news is it just started working. couldnāt tell you why.
-
Perfect so
-