MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ejay-ibm
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 7
    • Posts 94
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: I need an explanation of how the magic mirror system works

      @aljosie thisis the first link I found on google.
      Their’s tons of doc if you search .
      https://www.tomsguide.com/us/connect-google-home-philips-hue,review-4217.html

      Ejay

      posted in Feature Requests
      ejay-ibmE
      ejay-ibm
    • RE: I need an explanation of how the magic mirror system works

      @aljosie You need some philips hue light a philps hue bridge and then you can use MMM-Hue module and see your light status. But you need first to configure your system for google home usage. Then with Mk2 assisant you can request to turn on/ off your lights as the philps hue system is be connected to google home account that you use as well on your miror.
      there’s few setup to make before all works. But I have this at home and it work like a charm .

      Ejay

      posted in Feature Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @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

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @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

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @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

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      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

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: 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

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @F17MC That is interesting … that mean the result of the assistant research never bring a spotify url but a youtube one . a openspotify url is what the module expect to work .

      So we know now that under some circumpstance the module doesn’t get the right payload from assistant to work.
      Thanks for testing and reporting this guys .

      I’ll work with sean to implement a search function directly with the spotify APIs call . With that we will make the search directly on spotify ( and not on google ) so we will bypass this issue .

      I’m wondering where the difference is between you and I, because it work fine here and as well another German guy Mantha who is the original code creator .

      Anyway, there’s no problem … only solution .

      I’ll keep you informed once the module is updated .

      Ejay .

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: 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

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @F17MC @Cr4z33
      I don’t think the issue is with the module but with what the assistant return to the module .

      the module is expecting something like “”(open.spotify.com - https://open.spotify.com/artist/2Gkz5N7rWiCE3jlCgsw1yp""

      So i’m not getting why your assistant doesn’t understand what to search for.

      I’ll continue digging

      Ejay

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @Cr4z33 Well i’m using it in french … so I don’t think so .
      I need to think a bit why your payload is incorrect.

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @Cr4z33 try to just say “Bob Marley Spotify” so there’s no language interaction.

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @Cr4z33
      What Are you saying exactly ?
      What is the result of this if you try to type in in your google search bar ?
      did you simply try : “bob marley spotify” ?
      what is your search result ? in google ?

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @Cr4z33
      don’t use your google home device it’s not comparable .
      I have one as well at home and it’s working completely differently, otherwise, I would not have to write this module. So i’m refering to what interest us your Mk2 assistant on your mirror .

      ejay

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @Cr4z33
      Ok I got your point Google assisant and sdk act differently .

      What happen when you say something to your assisant:
      “Play bob marley on spotify”
      It search like you would do in the google search bar
      and return a result.
      That is your payload for the play … spotify command.
      Note that this command is the only one to not have a hook .

      So what it does is returning the first result from a google search .

      if I type “bob marley spotify” in my search bar i’m getting :
      Bob Marley & The Wailers on Spotify
      https://open.spotify.com/artist/2QsynagSdAqZj3U9HgDzjD

      That is what is expected from the payload , as we build later the api call from this url .

      I would try first to google search for "an artist on spotify in italian’ and see what it return they say to your assisant in italian the same. Usually the assistant quickly display what it find from the search you should see an url like :
      https://open.spotify.com/(artist, track or playlist)/with an Id here .

      regarding the syntax Quote or double quote doesn’t matter in js.

      Both

       transcriptionHook: {
              PREV_SONG: {
                 pattern: "previous song",   
                 command: "PREV_SONG"
            },
      or 
      transcriptionHook: {
              PREV_SONG: {
                 pattern: 'previous song',   
                 command: 'PREV_SONG'
            },
      
      

      will work the same.

      Hope this helps

      Ejay

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: I'm so bad at applying the reflective film! Any advice?

      @boblazer
      I tried this as well and failed the rendering was not good( at least to my taste )
      I would recommend to go for a glass and apply the film on it.
      My method:
      Clean the glass with a window clearer product and use ( sorry for my english) a dedicated glass cleaner napkin to avoid dust at the maximum.
      again to avoid any dust use a vacuum to have your glass 100% clean
      Then with a sprayer, put inside some water and a drop of soap.
      Spray on your glass and then apply the film starting at the bottom and evacuate the water while you progress developing the film.
      you shouldn’t get any air bubble by doing this way .

      Note : do not cut the film on edge once it is done leave a few millimeters on each side and let it dry for a couple of days . Once dry you can cut the edge of the film to fit your glass.

      Hope it helps .

      Ejay

      posted in General Discussion
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      @Cr4z33 from here :
      https://developer.spotify.com/documentation/web-api/quick-start/
      “To use the Web API, start by creating a Spotify user account (Premium or Free).”

      Note :
      Spotify Free is supported by ads.
      Every few tracks you play, you will be forced to be interrupted by one or two short adverts, which will also break your pleasure that you get from the music.
      Some tracks are not be playable. You can use the desktop and web interfaces, but the mobile app will only let you listen on shuffle mode or pre-made playlists.

      with your free account : what does it do when you say “bob marley on spotify” ?

      Ejay

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • RE: Advise for a voice assistant

      @thedoorsfanatic
      I think the Readme here : https://github.com/eouia/MMM-Hotword/
      is pretty clear, that is what I followed and I have it working directly.
      check out the Tip section to include hotword in the mk2 assistant and you should be good.
      If you run into issue you can share your config file and I can have a look .

      Ejay

      posted in General Discussion
      ejay-ibmE
      ejay-ibm
    • RE: Advise for a voice assistant

      @THeStigh Indeed, using it on a Rasp 3 b+ fully up to date.

      posted in General Discussion
      ejay-ibmE
      ejay-ibm
    • RE: MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      Hi,

      I do not think this is an issue with the speaker.
      Could you please send the full logs from start to end ?
      Are you using pm2 ? If yes please send me error and out log. ( delete them first before restarting your mirror )
      just do pm2 show to know where they are .
      As well while you reproduce check the developer console ( Ctrl + i ) on the mirror and send me the content .

      Just reproduce the case as follow : Start Mirror , request a song, make a new request to the assistant . Quit . and send me the logs. please add as well you config.js file . You can put all in a single zip file.

      I’ll update the git. please post everything here.

      Thank you

      Ejay

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • 1 / 1