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.

    Spotify with MMM-Assistant2Display

    Scheduled Pinned Locked Moved Troubleshooting
    15 Posts 4 Posters 3.7k Views 4 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.
    • K Offline
      killerjoe34
      last edited by

      Hi everyone,
      I’m a bit lost with Spotify, both MMM-GoogleAssistant and MMM-Assistant2Display are installed.
      LibreSpot is also ok

      {
                              module: "MMM-GoogleAssistant",
                              position: "fullscreen_above",
                              config: {
                                assistantConfig: {
                                  latitude: 44.13333,
                                  longitude: 4.08333,
                                },
                                micConfig: { // put there configuration generated by auto-installer
                                  recorder: "arecord",
                                  device: "plughw:3",
                                },
                                A2DServer: {
                                useA2D: true,
                                stopCommand: "stop"
                                },
                                recipes: [ "with-MMM-Spotify.js", "with-radio_fr.js" ]
                              }
                      },
      
      ``` {
                                module: "MMM-Assistant2Display",
                                position: "top_left",
                                config: {
                                  debug:false,
                                  useYoutube: true,
                                  screen: {
                                    useScreen: false,
                                    delay: 5 * 60 * 1000,
                                    turnOffDisplay: true,
                                    ecoMode: true,
                                    displayCounter: true,
                                    displayBar: false,
                                    displayStyle: "Text",
                                    text: "Auto Turn Off Screen:",
                                    detectorSleeping: false,
                                    governorSleeping: false,
                                    rpi4: false
                                  },
                                 spotify: {
                                    useSpotify: true,
                                    useIntegred: true,
                                    useLibrespot: true,
                                    connectTo: null,
                                    playDelay: 3000,
                                    minVolume: 10,
                                    maxVolume: 100,
                                    updateInterval: 1000,
                                    idleInterval: 10000,
                                    username: "xxxxxxxxxxxxxxxxxxxxxxx",
                                    password: "xxxxxxxxxxxxxxxxxxxxx",
                                    CLIENT_ID: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                                    CLIENT_SECRET: "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
                                    deviceDisplay: "Listening on",
                                    usePause: true
                                  }
                                }
                              },
      

      Logs seem ok

      [2020-07-16 13:04:05.306] [LOG]    [ASSISTANT] MMM-GoogleAssistant Version: 2.2.1
      [2020-07-16 13:04:05.335] [LOG]    [A2D] MMM-Assistant2Display Version: 2.2.1
      [2020-07-16 13:04:06.795] [INFO]   Newsfeed-Fetcher: Broadcasting 21 items.
      [2020-07-16 13:04:07.159] [INFO]   Newsfeed-Fetcher: Broadcasting 32 items.
      [2020-07-16 13:04:08.482] [LOG]    [SPOTIFY] Launch Librespot...
      [2020-07-16 13:04:08.601] [LOG]    [A2D] Assistant2Display is initialized.
      [2020-07-16 13:04:08.657] [LOG]    [SNOWBOY] Model selected: jarvis
      [2020-07-16 13:04:08.672] [LOG]    [SNOWBOY] snowboy v1.5.0 Initialized...
      [2020-07-16 13:04:08.689] [LOG]    [ASSISTANT] RECIPE_LOADED: with-MMM-Spotify.js
      [2020-07-16 13:04:08.711] [LOG]    [ASSISTANT] RECIPE_LOADED: with-radio_fr.js
      [2020-07-16 13:04:08.716] [LOG]    [ASSISTANT] Assistant2Display Server Started
      [2020-07-16 13:04:08.719] [LOG]    [ASSISTANT] Google Assistant is initialized.
      
      
      

      What am i supposed to do now ? What is missing to make it work, what command ? (tried music play and GA seems to understand)

      Sans titre-1.jpg

      but nothing happens…
      French radios work fine, youtube news also in full screen.

      Thanks a lot for this great work btw, you must have spent hundreds of hours developping these :)

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @killerjoe34
        last edited by

        @killerjoe34 by default, the pi does not enable PLAYING spotify music ON the PI… the librespot or raspotify modules must be installed outside of MM and configured to enable the PI to be a spotify device.

        if u install the Spotify Connect app on your windows machine, it will show u the devices it knows about and let you start play on one of them. (if u have a spotify premium account)

        there u can tell if the librespot or raspotify setup is correct and working

        THEN
        you can use the MMM-Spotify module to SEE what is playing wherever
        and
        the A2D extension to send commands to start/stop play on the spotify device.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil : now librespot is embed on A2D

          @killerjoe34

          recipes: [ “with-MMM-Spotify.js”, “with-radio_fr.js” ]

          why using “with-MMM-Spotify.js” recipe ?
          [pourquoi utilisez-vous le recipe de “with-MMM-Spotify.js”]

          I will broken the search spotify process
          [Cela va poser souci pour la découverte des lien spotify et ne trouvera rien]

          connectTo: null
          You need to give the name of your Librespot device, I will connect to it when you want to play music
          [Vous devait renseigner le nom que vous avez donner a votre Lecteur Librespot, pour qu’il se connecte a lui a la demande]

          and You can call any spotify music with play Thriller on Spotify after activating assistant
          [ Ensuite vous pouvez demander a l’assistant Mets Thriller sur Spotify une fois activé]
          [L’assistant decouvrira le lien et ouvrira librespot pour ecouter la musique demandé]

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Guest
            last edited by

            @Bugsounet said in Spotify with MMM-Assistant2Display:

            @sdetweil : now librespot is embed on A2D

            thank you for that info…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              sorry … euh I don’t write it in main topic ?

              S 1 Reply Last reply Reply Quote 0
              • K Offline
                killerjoe34
                last edited by

                @sdetweil said in Spotify with MMM-Assistant2Display:

                if u install the Spotify Connect app on your windows machine, it will show u the devices it knows about and let you start play on one of them. (if u have a spotify premium account)

                That’s getting clearer :)

                @Bugsounet said in Spotify with MMM-Assistant2Display:

                why using “with-MMM-Spotify.js” recipe ?
                [pourquoi utilisez-vous le recipe de “with-MMM-Spotify.js”]
                I will broken the search spotify process
                [Cela va poser souci pour la découverte des lien spotify et ne trouvera rien]
                connectTo: null

                Ok, I removed Spotify recipe
                And null is the name I left by default it seems :D
                If I enable this device (null) on the Spotify App, I can hear the music through my MM, so that looks good

                But if I say “Jarvis, play Thriller on Spotify”, GA says “opening app” and nothing :(

                1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @Guest
                  last edited by

                  @Bugsounet i have not read your doc in a long time, been busy…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    killerjoe34
                    last edited by

                    Oh strange thing, I just opened teh app on windows again and MJ began to sing on my MM :D

                    I guess I don’t have the right command words, where can I find or modify them ?

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

                      @killerjoe34 said in Spotify with MMM-Assistant2Display:

                      connectTo: null

                      It’s a tag to say to spotify module: there is no Librespot installed so … i will never connect to it automaticaly
                      [c’est un tag qui permet de dire qu’il n’y a pas Librespot installé, donc il ne se connectera pas automatiquement]

                      You have to set the name of your Spotify device
                      [Vous devez donc definir le nom du lecteur]

                      connectTo: "LibreSpot",
                      For example

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        killerjoe34
                        last edited by

                        @Bugsounet said in Spotify with MMM-Assistant2Display:

                        connectTo: “LibreSpot”,
                        For example

                        Great, I did that and that works :D
                        Thanks a lot !!!

                        Where can I get the commands ? Cause I can’t stop it now ;)

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

                          @killerjoe34 said in Spotify with MMM-Assistant2Display:

                          Oh strange thing, I just opened teh app on windows again and MJ began to sing on my MM :D

                          I guess I don’t have the right command words, where can I find or modify them ?

                          euh désolé mais je sais comment je code mon module ;)
                          Si vous ne fait pas ce que je dis, cela va risque d’être compliqué
                          Note: je suis français

                          K 1 Reply Last reply Reply Quote 0
                          • K Offline
                            killerjoe34 @Guest
                            last edited by

                            @Bugsounet said in Spotify with MMM-Assistant2Display:

                            Si vous ne fait pas ce que je dis, cela va risque d’être compliqué

                            Ah si si ! J’essaie de suivre et je modifie à mesure, j’ai pleinement confiance en vos capacités, n’en doutez pas ;) Et d’ailleurs ça fonctionne maintenant grâce à vous !
                            Je cherche juste quelles commandes lui lancer :D

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

                              In GA configuration, you can set your prefered command to stop all process of A2D

                              A2DServer: {
                                useA2D: true,
                                stopCommand: "stop"
                              },
                              

                              Actually, it’s an english value
                              so set stopCommand: "stoppe" for frenchies

                              1 Reply Last reply Reply Quote 1
                              • K Offline
                                killerjoe34
                                last edited by

                                Thanks again ;)

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  banbutcher
                                  last edited by banbutcher

                                  @Bugsounet said in Spotify with MMM-Assistant2Display:

                                  @sdetweil : now librespot is embed on A2D

                                  @killerjoe34

                                  recipes: [ “with-MMM-Spotify.js”, “with-radio_fr.js” ]

                                  why using “with-MMM-Spotify.js” recipe ?
                                  [pourquoi utilisez-vous le recipe de “with-MMM-Spotify.js”]

                                  if i leave out the recipe with-MMM-Spotify, my a2d will not follow instructions? i have tried the with-A2DSpotify recipe and the search doesnt work.

                                  speaking of search… is anyone elses spotify search results a bit weird… for example i say “jarvis play jack johnson on spotify” it returns a crazy song called jack johnson/ghostrider. if i get more specific and ask “jarvis play jack johnson, upside down on spotify” it returns an the sone upside down but its from Acoustic tribute to jack johnson album. its as if the mainstream artists are avoided!?

                                  edit:

                                  ive just seen this…

                                  @Bugsounet said in Spotify with MMM-Assistant2Display:

                                  I will broken the search spotify process
                                  [Cela va poser souci pour la découverte des lien spotify et ne trouvera rien]

                                  so am i right in thinking that search is still under development?

                                  thanks very much for all time and effort in modules! :)

                                  Richie

                                  1 Reply Last reply Reply Quote 0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 1 / 1
                                  • First post
                                    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