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
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 7 / 10