Bugsounet Coding

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    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 | }

    Issues
    4
    20
    192
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      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 spotify

      config 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: {}
      }
      },

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        player: {
          type: "Librespot", // <--- not librespot
         ...
        },
        
        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @bugsounet last edited by A Former User

          @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 #3

          and there was no mention of my bluetooth speaker .
          please help

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @Guest last edited by

            @aquib @bugsounet

            1 Reply Last reply Reply Quote 0
            • D
              DJB1966 Helpers last edited by

              i had to start Spotify on my phone first then with MM for it to work.

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @DJB1966 last edited by

                @djb1966 exactly. please look into it @bugsounet

                1 Reply Last reply Reply Quote 0
                • bugsounet
                  bugsounet Main Coder last edited by

                  wiki says : (again)

                  if you use Librespot:

                  player: {
                    type: "Librespot",
                    ...
                  },
                  

                  if you use Raspotify

                  player: {
                    type: "Raspotify",
                    ...
                  },
                  

                  Warning: uppercase is needed !

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @bugsounet last edited by

                    @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

                    @bugsounet

                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder last edited by

                      what the result of:

                      ps aux| grep libre
                      
                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @bugsounet last edited by bugsounet

                        @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

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @Guest last edited by

                          @aquib @bugsounet

                          1 Reply Last reply Reply Quote 0
                          • bugsounet
                            bugsounet Main Coder last edited by

                            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 problem

                            maybe you have set another deviceName
                            After do you have visual when you play music on your phone or other device ?

                            ? 2 Replies Last reply Reply Quote 0
                            • ?
                              A Former User @bugsounet last edited by

                              @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

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @bugsounet last edited by

                                @bugsounet Update :
                                after refreshing tokens it started playing Spotify BUT its playing on my Echo-dot for some reason instead of magicmirror 😞

                                1 Reply Last reply Reply Quote 0
                                • bugsounet
                                  bugsounet Main Coder last edited by

                                  I have no bluetooth speaker, can’t help for this
                                  search in raspotify website for helping

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @bugsounet last edited by

                                    @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

                                    1 Reply Last reply Reply Quote 0
                                    • bugsounet
                                      bugsounet Main Coder last edited by bugsounet

                                      @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 works

                                      Tested with a sound bar

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        DJB1966 Helpers last edited by

                                        i also confirm Librespot working on Bluetooth Logitech Z337 but notice raspi-config Audio option is not working in terminal.

                                        1 Reply Last reply Reply Quote 0
                                        • pitchx
                                          pitchx BetaTester Helpers last edited by

                                          I confirm also, with my anker works fine, you have just to select the bluetooth audio output via VLC on your PI desktop.

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            DJB1966 Helpers last edited by

                                            I suggest to get it working with a wired speaker then once we know that works move onto BT.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2022