ERROR :[SPOTIFY:PLAY] Error 404 null { 0|mm | error: { 0|mm | status: 404, 0|mm | message: 'Player command failed: No active device found', 0|mm | reason: 'NO_ACTIVE_DEVICE' 0|mm | } 0|mm | }
-
I am connected to a bluetooth speaker and when i ask GA to play spotiify is shows this :-
[SPOTIFY:PLAY] Error 404 null {
0|mm | error: {
0|mm | status: 404,
0|mm | message: ‘Player command failed: No active device found’,
0|mm | reason: ‘NO_ACTIVE_DEVICE’
0|mm | }
0|mm | }
error in spotifyconfig of GA:
{
module: “MMM-GoogleAssistant”,
position: “fullscreen_above”,
configDeepMerge: true,
config: {
debug: false,
assistantConfig: {
lang: “en-US”,
latitude: 28.545966892967833,
longitude: 77.29651631594095
},
responseConfig: {
useFullscreen: true,
chimes: {},
imgStatus: {},
zoom: {}
},
Extented: {
useEXT: true,
youtube: {useYoutube: true,
youtubeCommand: “youtube”,
displayResponse: true,
useVLC: true,
minVolume: 30,
maxVolume: 100},
links: {
useLinks: true,
scrollActivate: true,
scrollStep: 25,
scrollInterval: 1000,
scrollStart: 5000
},
photos: {
usePhotos: true,
useGooglePhotosAPI:true,
displayType: “none”,
displayDelay: 10 * 1000,
albums: [],
sort: “new”,
hiResolution: true,
timeFormat: “DD/MM/YYYY HH:mm”,
moduleHeight: 300,
moduleWidth: 300,
},
volume: {},
welcome: {
useWelcome: true,
welcome: “brief today”
},
screen: {},
touch: {},
pir: {},
governor: {},
internet: {},
cast: {
useCast: true,
port: 8569
},
spotify: {
useSpotify: true,
visual: {
updateInterval: 1000,
idleInterval: 10000,
useBottomBar: true,
CLIENT_ID: “875e6dc7b42441cfb51d65d03a7bb9d0”,
CLIENT_SECRET: “8050da547353409d8d09d8dd09405deb”,
},
player: {type: "librespot", email: "Aquibislam786@gmail.com", password: "********", minVolume: 10, maxVolume: 90,
usePause: true
}
},
},
recipes: [“with-BackgroundStatus.js”,“with-status.js”,“ExtSpotify.js”],
NPMCheck: {}
}
}, -
player: { type: "Librespot", // <--- not librespot ... },
-
@bugsounet Now im usig Raspotify instead of librespot as it throwed some error as “no response from librespot”.
anyways now spotify visuals are being shown on my magicmirror but there is no audio from my bluetooth speaker .
and i wonder / suspect if its because during installation of raspotify it asked
choose your audio card ?Choose 999 for default card
Warning: if pulse audio is enabled, default card will not works
Read config.js and check MMM-GoogleAssistant module Configuration…Warning: Spotify devicename not found! (deviceName) using default name: MagicMirror
Info: deviceName found: MagicMirror
Info: Initial Volume: 90
Info: Email found: Aquibislam786@gmail.com
Info: Password found: ********** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 3/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3and there was no mention of my bluetooth speaker .
please help -
@aquib @bugsounet
-
i had to start Spotify on my phone first then with MM for it to work.
-
@djb1966 exactly. please look into it @bugsounet
-
wiki says : (again)
if you use Librespot:
player: { type: "Librespot", ... },
if you use Raspotify
player: { type: "Raspotify", ... },
Warning: uppercase is needed !
-
@bugsounet I am using uppercase only , thats is not a problem bro .
[SPOTIFY:PLAY] Error 404 null {
0|mm | error: {
0|mm | status: 404,
0|mm | message: ‘Player command failed: No active device found’,
0|mm | reason: ‘NO_ACTIVE_DEVICE’
0|mm | }
0|mm | }
0|mm | [01.07.2021 23:19.40.702] [LOG]
0|mm | [RASPOTIFY] Raspotify Force Restart
\this is the error on pm2 log
spotify: {
useSpotify: true,
visual: {
updateInterval: 1000,
idleInterval: 10000,
useBottomBar: true,
CLIENT_ID: “875e6dc7b42441cfb51d65d03a7bb9d0”,
CLIENT_SECRET: “8050da547353409d8d09d8dd09405deb”,
},
player: {type: "Raspotify", email: "Aquibislam786@gmail.com", password: "******", minVolume: 10, maxVolume: 90, usePause: true
}
this is the config file
when i ask GA to play spotify it shows no response and throws an error on pm2 log -
what the result of:
ps aux| grep libre
-
@bugsounet said in ERROR :[SPOTIFY:PLAY] Error 404 null { 0|mm | error: { 0|mm | status: 404, 0|mm | message: 'Player command failed: No active device found', 0|mm | reason: 'NO_ACTIVE_DEVICE' 0|mm | } 0|mm | }:
ps aux| grep libre
raspoti+ 1891 1.3 0.5 33340 10360 ? Ssl 23:19 0:05 /usr/bin/librespot --name MagicMirror --device-type speaker --backend alsa --bitrate 160 --disable-audio-cache --enable-volume-normalisation --volume-ctrl linear --initial-volume=90 --username Aquibislam786@gmail.com --password xxx
pi 3166 0.0 0.0 7348 532 pts/2 S+ 23:26 0:00 grep --color=auto libre -
@aquib @bugsounet
-
Normaly:
It will try to reauth that why you have the error
After launched, it should works after 5 sec
If retry again … there is another problemmaybe you have set another deviceName
After do you have visual when you play music on your phone or other device ? -
@bugsounet 1) Where do i see if i have another deviceName
2) I asked GA to play spotify , it played and showed “Listening on MagicMirror” but without any sound , although im connected to a BLUETOOTH speaker -
@bugsounet Update :
after refreshing tokens it started playing Spotify BUT its playing on my Echo-dot for some reason instead of magicmirror -
I have no bluetooth speaker, can’t help for this
search in raspotify website for helping -
@bugsounet Currently after i connect it to a different bluetooth speaker , when i ask GA to play something on spotify it shows "playing on Magicmirror"but with no sound
okay ill search on their website too -
@aquib : for your information
Raspotify with bluettoth is complex
I try with Librespot, work with no special configuration
I just define the bluetooth speaker as default and worksTested with a sound bar
-
i also confirm Librespot working on Bluetooth Logitech Z337 but notice raspi-config Audio option is not working in terminal.
-
I confirm also, with my anker works fine, you have just to select the bluetooth audio output via VLC on your PI desktop.
-
I suggest to get it working with a wired speaker then once we know that works move onto BT.