• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

Scheduled Pinned Locked Moved Entertainment
38 Posts 4 Posters 14.5k Views 9 Watching
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.
  • E Offline
    ejay-ibm Project Sponsor Module Developer @F17MC
    last edited by Mar 15, 2019, 11:48 AM

    @F17MC
    So in your config.js you have set your device id to ; a8caee9b12196a964f5a9b0fafaf7ef1

    at this step
    Error while refreshing:
    { StatusCodeError: 404 - {“error”:{“status”:404,“message”:“Device not found”}}

    currentDeviceID variable is passed by case ‘PLAY_SPOTIFY’:
    payload[“deviceId”] = this.config.deviceId;

    "If I don’t say a command before, I get error 404. " what do you mean ? could you clarify ?

    “But when I try it with the device which is the deviceID that I wrote in the module code, it works.”
    Yes that is expected .

    For now you can only start playing on the device ID given in the config file as mentioned in the readme :

    This Module allow to control Spotify player on your Mirror . For now you can only control a single device. It could be your mirror if you are running Raspotify on it. Request to play a song it will be played on your select device in the config.js file. other command doesn’t need a device to be set. So if you are already playing a song on another device, the modules allow you to control this device from your module. But if you request a new song or playlist the set device in config file will play it on it you can not start a new song on a different device from now .

    Does that clarify the point ?

    Ejay

    F 1 Reply Last reply Mar 15, 2019, 11:59 AM Reply Quote 0
    • F Offline
      F17MC @ejay-ibm
      last edited by Mar 15, 2019, 11:59 AM

      @ejay-ibm said in MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.:

      @F17MC
      So in your config.js you have set your device id to ; a8caee9b12196a964f5a9b0fafaf7ef1

      at this step
      Error while refreshing:
      { StatusCodeError: 404 - {“error”:{“status”:404,“message”:“Device not found”}}

      currentDeviceID variable is passed by case ‘PLAY_SPOTIFY’:
      payload[“deviceId”] = this.config.deviceId;

      "If I don’t say a command before, I get error 404. " what do you mean ? could you clarify ?

      “But when I try it with the device which is the deviceID that I wrote in the module code, it works.”
      Yes that is expected .

      For now you can only start playing on the device ID given in the config file as mentioned in the readme :

      This Module allow to control Spotify player on your Mirror . For now you can only control a single device. It could be your mirror if you are running Raspotify on it. Request to play a song it will be played on your select device in the config.js file. other command doesn’t need a device to be set. So if you are already playing a song on another device, the modules allow you to control this device from your module. But if you request a new song or playlist the set device in config file will play it on it you can not start a new song on a different device from now .

      Does that clarify the point ?

      Ejay

      If I don’t say a command before, I get error 404. " what do you mean ? could you clarify ?
      I wanted to erase this sentence but I could not edit my post. It should not be there.

      Yes, the module is working perfect now!
      Thanks.

      1 Reply Last reply Reply Quote 0
      • E Offline
        ejay-ibm Project Sponsor Module Developer
        last edited by Mar 15, 2019, 12:00 PM

        Fantastic news !
        So just for other user.
        Could you clarify what you did wrong earlier ? and what you changed to make it work ?
        Any special sentence to call the module ? any change in config file ?

        thank you

        F 1 Reply Last reply Mar 15, 2019, 12:08 PM Reply Quote 0
        • F Offline
          F17MC @ejay-ibm
          last edited by Mar 15, 2019, 12:08 PM

          @ejay-ibm
          I really want the module to control only one device. I configured that device in the configuration file, but then used the magicmirror as an output device. Then that was the error.
          I started disabling youtube and its automatic playback of mmm-assistantmk2, but then I turned it back on.

          A doubt. As I really only want to control a device with your module, I could do that if, for example, I’m listening to spotify on my computer, but I say to magicmirror: “start music on spotify” make the change directly to the deviceID that I have in the config file and start the music?

          E 1 Reply Last reply Mar 15, 2019, 12:19 PM Reply Quote 0
          • E Offline
            ejay-ibm Project Sponsor Module Developer @F17MC
            last edited by ejay-ibm Mar 15, 2019, 12:21 PM Mar 15, 2019, 12:19 PM

            @F17MC said in MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.:

            I say to magicmirror: “start music on spotify” make the change directly to the deviceID that I have in the config file and start the music?

            Yes That is correct .
            BUT
            in all the API call i’m using the device is optional .

            If you want to control only one device that is the current playing device you can comment line 216 of /core/SpotifyConnector.js

            That way you don’t pass the device ID to the api.
            that should work

            The only condition for this to work is you must have an active device.
            The constraint is that if you want to play a song on your mirror, then you have to select it manually as a device from the spotify app.

            hope this helps.

            Ejay

            1 Reply Last reply Reply Quote 0
            • C Offline
              Cr4z33 @ejay-ibm
              last edited by Cr4z33 Mar 15, 2019, 1:10 PM Mar 15, 2019, 1:09 PM

              @ejay-ibm said in MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.:

              @Cr4z33 I’m already working on it with @Sean ;)

              quick question : if you just say “micheal jackson smooth criminal”
              does it start playing youtube ?
              if yes then just try “micheal jackson smooth criminal spotify”
              and let me know

              If that doesn’t work I’ll ask you some patience so I can implement the spotify search function directly in my module and not from the assistant. We will just use a hook in the assisant .

              Ejay

              Look there might be some misunderstanding because I NEVER configured something in MagicMirror to be able to run YouTube. :smiling_face_with_open_mouth_cold_sweat:
              In fact the sentence ‘michael jackson smooth criminal’ brings me always to the voice GA reply ‘I am sorry, but I don’t know how to help you’.

              E 1 Reply Last reply Mar 15, 2019, 2:10 PM Reply Quote 0
              • E Offline
                ejay-ibm Project Sponsor Module Developer @Cr4z33
                last edited by Mar 15, 2019, 2:10 PM

                @Cr4z33
                Then That is maybe your issue . Youtube should work by default . nothing to configure .
                If your GA doesn’t bring you a youtube video when you say ‘michael jackson smooth criminal’ then I guess that explain why it doesn’t work as well for spotify .

                Anyway we are working with sean to rebuild this module completely and so we should get rid of this issue .

                Please be patient and wait for the update ;)

                Ejay

                C 1 Reply Last reply Mar 15, 2019, 2:12 PM Reply Quote 0
                • C Offline
                  Cr4z33 @ejay-ibm
                  last edited by Cr4z33 Mar 15, 2019, 2:12 PM Mar 15, 2019, 2:12 PM

                  @ejay-ibm huh really?

                  Can you then please link me where is it mentioned that MagicMirror or MMM-AssistantMk2 has embedded YouTube playing? :hushed_face:

                  I have never seen that.

                  E 1 Reply Last reply Mar 15, 2019, 2:13 PM Reply Quote 0
                  • E Offline
                    ejay-ibm Project Sponsor Module Developer @Cr4z33
                    last edited by ejay-ibm Mar 15, 2019, 2:15 PM Mar 15, 2019, 2:13 PM

                    @Cr4z33 it’s Mk2 assistant module that allow this, not core Magicmirror.
                    you must have this set in your config file in the mk2 module

                    youtubeAutoplay: true, //If set as true, found Youtube video will be played automatically.
                        pauseOnYoutube:true, //If set as true, You cannot activate Assistant during youtube playing. Recommended for the performance (Because permanent hotword detecting might make performance lower)
                    
                        youtubePlayerVars: { // You can set youtube playerVars for your purpose, but should be careful.
                          "controls": 0,
                          "loop": 1,
                          "rel": 0,
                        },
                        youtubePlayQuality: "default", //small, medium, large, hd720, hd1080, highres or default
                    
                    

                    ejay

                    C 1 Reply Last reply Mar 15, 2019, 2:19 PM Reply Quote 0
                    • C Offline
                      Cr4z33 @ejay-ibm
                      last edited by Mar 15, 2019, 2:19 PM

                      @ejay-ibm oh now I understand.

                      Sorry I forgot I disabled it when I configured that module because I don’t want YouTube. :smiling_face_with_open_mouth_cold_sweat:

                      I will definitely wait then for the update of MMM-SpotifyControl. ;)

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 4 / 4
                      4 / 4
                      • First post
                        31/38
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy