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: MMM-Assistantmk2 and MMM-Hotword not picking up

      This is my MMM-Hotword config.js part :

      {
            module: "MMM-Hotword",
            config: {
              snowboy: [
                /*	{
      						"hotwords": "smartmirror",
      						"file": "resources/models/smart_mirror.umdl",
      						"sensitivity": "0.5"
      					},
      
      */
                {
                  hotwords: "alexa",
                  file: "resources/models/alexa.umdl",
                  sensitivity: "0.6"
                },
      
                {
                  file: "resources/models/jarvis.umdl",
                  sensitivity: "0.6,0.60",
                  hotwords: ["jarvis", "jarvis"]
                }
              ],
              record: {
                sampleRate: 16000,
                threshold: 0.5,
                thresholdStart: null,
                thresholdEnd: null,
                silence: 1,
                verbose: false,
                recordProgram: "arecord",
                device: "plughw:1"
              },
              autostart: true,
              autorestart: true,
              notifications: {
                PAUSE: "HOTWORD_PAUSE",
                RESUME: "HOTWORD_RESUME",
                LISTENING: "HOTWORD_LISTENING",
                SLEEPING: "HOTWORD_SLEEPING",
                ERROR: "HOTWORD_ERROR"
              },
              onDetected: {
                notification: function(payload) {
                  return "ASSISTANT_ACTIVATE";
                },
                payload: function(payload) {
                  return {
                    profile: payload.hotword
                  };
                }
              }
            }
          },
      

      You can give it a try .

      Ejay

      posted in Troubleshooting
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Assistantmk2 and MMM-Hotword not picking up

      Hello,
      I agree with Sam :
      You need to remove the space at both places.
      1st in MMM-AssistantMk2

      module: "MMM-AssistantMk2",
      		    position: "top_bar",
      		    config: {
      		      record: {
      		        recordProgram : "arecord",  
      		        device        : "plughw:1,0",
      

      And as well in

      module: "MMM-Hotword",
      		    config: {
      		      record: {
      		        recordProgram : "arecord", 
      		        device        : "plughw:1,0",
      

      If that still doesn’t work try just :
      plughw:1

      As well you should check in the audio properties that your mic have enough gain.

      you can check this by typing
      alsamixer
      in command line

      hope this helps

      Ejay

      posted in Troubleshooting
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Assistantmk2 and MMM-Hotword not picking up

      seems to be an audio config issue .
      Please paste your config.js file here
      and the outputs of the following commands :
      aplay -l
      arecord -l

      Ejay

      posted in Troubleshooting
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      @sdetweil Yes config/images or modules/images
      Both would be ok since not overwritten in case of an update.
      Good Idea.

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      @sdetweil I didn’t know that . Thanks I learnt something
      I’ll use config folder then

      Ejay

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      Thank you @Sean & @sdetweil
      This is the draft result. I still have to work on the talking image. that one is a quick test.

      https://drive.google.com/open?id=1G34tJ-1trMCK1yEJK0C6gIw3Nx3O8X8Q

      As you can see the animation is triggered a bit early.
      As I discussed with you Sean This is why I would need an additional notification between HOTWORD_PAUSE & ASSISTANT_ACTIVATE (I’ll use this notification as well to turn down the volume when user command is given in case any music is played on the mirror )

      thank you again

      Ejay

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      I found

      src=“modules/MMM-HTMLBox/jarvis-standby2.gif”

      that works …

      thank you

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      @sdetweil said in MMM-Image-On-Notification:

      ls /home/pi/MagicMirror/jarvis-standby2.gif -laF

      yup

      i@ejaypi:~/MagicMirror$ ls /home/pi/MagicMirror/jarvis-standby2.gif -laF
      -rw-r–r-- 1 pi pi 8735111 mars 1 19:58 /home/pi/MagicMirror/jarvis-standby2.gif

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      Thank you @sdetweil That look better

      Now I think it’s my last issue . The path …
      I’m getting :
      jarvis-standby2.gif:1 GET http://localhost:8080/jarvis-standby2.gif 404 (Not Found)
      If the images is placed in /home/pi/MagicMirror/jarvis-standby2.gif

      not sure what’s wrong and what is the “expectation” with the path …
      Thanks

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      @sean
      Right I was missing the first module .
      Now this is what I’m getting

      0_1551468834882_Capture d’écran 2019-03-01 à 20.33.12.png

      I feel stupid to not be able to debug such simple thing, but I’m sure you will figure out the error faster than me …

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Image-On-Notification

      @sean Thank ( Again Sean)
      I’m getting the following error :

      config.js:40 Uncaught TypeError: Cannot set property 'src' of null
          at Object.payload (config.js:40)
          at Class.notificationReceived (MMM-NotificationTrigger.js:62)
          at sendNotification (main.js:95)
          at Object.sendNotification (main.js:498)
          at Class.sendNotification (module.js:368)
          at Class.socketNotificationReceived (MMM-Hotword.js:85)
          at module.js:246
          at r.<anonymous> (socketclient.js:25)
          at r.emit (index.js:83)
          at r.onevent (index.js:83)
      

      config.js 40 is :

      38           payload: (payload) => {
      39            var img = document.getElementById("MY_ANIMATION")
      40              img.src = "/home/pi/MagicMirror/jarvis-standby2.gif"
      41              return payload
      

      Any Idea ? Let me know if you need me to report this directly in git issues.

      Thanks

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-AssistantMk2

      @davido I think the option you are looking for regarding answer of assistant duration on screen is :
      “screenDuration”: 2000 // here for 2 seconds

      hope this helps

      Ejay

      posted in System
      ejay-ibmE
      ejay-ibm
    • MMM-Image-On-Notification

      Hello all,

      I’d like some help to develop a module to display particular local images depending on a notification received.

      I have developed a few gif images to display an AI face with different attitudes.
      1- Standby ( Mouth closed, head move, eyes looking here -and there…)
      https://drive.google.com/open?id=1zff5H4RN9azpUpuUj_9scDhCgeMgZI73
      2- Talk ( Mouth talking, with other face animations )
      3- (why not) Sing/dance ( head banging) ( Still working on that one as it needs more facial expression )

      well, that’s my idea but any images from a sequential given list could be sync with any notification received to the user choice.

      I walked around a few image modules but couldn’t find one that handles notifications.

      Is someone interested in developing it?

      Thank you

      Ejay

      posted in Requests
      ejay-ibmE
      ejay-ibm
    • RE: MMM-EyeCandy shown when USER_PRESENCE

      Hi all,
      I’m looking for something similar than the main thread request.
      I need to switch between 2 gif images on notification sent by other module.
      Eg : On notification 1 , diplay gif one , on notification 2 display Gif 2 .
      I can’t find how to achieve this…
      @Mykle1 Do you still make developement on this module ? If yes would it be possible to implement some notification consideration in your module to handle multiple custom images ?
      Thank you !

      Ejay

      posted in Troubleshooting
      ejay-ibmE
      ejay-ibm
    • Mic array PLUS Other sensor ? possible ?

      Hi ,

      Since the mic array uses all port from the pi . ( GPIO etc since it’s a simple connector )
      How can you do to add an additional PIR sensor to it? how do you connect it once the mic is connected?
      I guess it is a choice to make right? Or Mic array or other sensor…?

      Thank you
      ejay

      posted in Hardware
      ejay-ibmE
      ejay-ibm
    • RE: New Project! I think!

      Unless you already bought the light hardware etc … I would sugest what I4m currently using on my mirror:
      A philips Hue system , with light connected anywhere you want. You need a bridge connected to your network and any light you want. Once you have setup your philips hue system . You can add the MMM-HUE module to your mirror and control it with Mk2 assistant ( I use in addition mmm-hotword)

      That work perfectly to monitor your light system and give all possible philps hue command to execute to the assistant . I do prefer Google serve for speech recognition because it’s more universal and running on the cloud , so your speech is very well recognized . It’s very rare when the assistant don’t get what i’m saying , even with a porr mic and some background noise.

      Since I think you already have open hab system at home what has been suggested higher should work with the MMM-openhab modules and iframe module to render you actual “home status” .

      Ejay

      posted in General Discussion
      ejay-ibmE
      ejay-ibm
    • RE: Hello-Lucy

      @anthony Thanks , I’m looking now for the same with animated lips
      https://giphy.com/gifs/geocities-sl5XI0eWn5IjK
      Something like this with more style. ^^

      I’ll see if I can work with the 60mb file and make it move the lips .

      thank you

      posted in Fun & Games
      ejay-ibmE
      ejay-ibm
    • RE: Hello-Lucy

      Hi @Mykle1 I don’t want to pollute your thread if my post isn’t appropriate here i’ll create a new one.

      I love the animated avatar, could you point me where did you get it ?
      I’m looking for 2 of the same kind. One like you have, the other with moving lips so it would look like it talk when the assistant reply to you with her voice. I have in mind how to achieve this, but I’m missing the gif sources .
      Thank you

      Ejay

      posted in Fun & Games
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Volume

      Awesome! thank you for this volume manager modules. I needed it you made it!
      Works like a charm!
      Thanks to QA tester ;)

      Ejay

      posted in Utilities
      ejay-ibmE
      ejay-ibm
    • RE: Divide Config.js into modules

      I can only agree 1 config file per module in the config folder and you can get rid of a lot of mistake

      posted in Feature Requests
      ejay-ibmE
      ejay-ibm
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5