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

    Posts

    Recent Best Controversial
    • RE: MMM-Clap

      Dear @Sean
      Clap one, it detects 1 but the icon disappears after that
      Wait some seconds, clap again and it show the error in log
      Can you help me to fix that
      Tks!
      0_1572776010680_4315f56f-b3a3-44dd-951c-8c717d239425-ảnh.png

      posted in System
      S
      smarthome
    • RE: MMM-AssistantMk2

      @Sean
      After your answer, I’m looking for google cloud amd find out the way to make it support, hi
      Not only Vietnamese language, a wide range of local language, like assistant language
      That’ now MMM Google TTS work ok with vietnamese language
      Tks!

      posted in System
      S
      smarthome
    • RE: MMM-AssistantMk2

      @Sean
      I’ also active billing account to enable Google Cloud text to Speech API to use your MMM Google-TTS Module
      But, this can not speak my local language (Vietnamese) like ASSISTANT_SAY can
      How to do that?

      posted in System
      S
      smarthome
    • RE: MMM-AssistantMk2

      @Sean
      How can I remove “Repeat after me” whenever ask ASSISTANT _SAY to speech text?

      posted in System
      S
      smarthome
    • RE: MMM-Hotword (v2) - whole-new-built

      @Sean

      I created some hotwords by myself on https://snowboy.kitt.ai/ under .pmdl extension, then save to model folder in MMM Hotword
      After configure MMM-Hotword in MMM config file to use these hotwords, MMM-Hotword auto detect hotwords and do the action, why no input voice signal to mic, only noise…
      I tried to incrase hotword from 1 word to 2 words, one to multiple syllables, but cant not stop this issuse
      I’ve check the configuration, everthing is normal.
      What’s happen? How to fix that?

      Tks!

      posted in System
      S
      smarthome
    • RE: MMM-Hotword (v2) - whole-new-built

      @Sean
      Finally, it worked, many thank for your help!

      posted in System
      S
      smarthome
    • RE: MMM-Hotword (v2) - whole-new-built

      @Sean
      Your notification code didn’t work. Nothing happen :(
      Could you check it again, pls

      payload: (payload) => { //OPTIONAL. transform received payload to what your target module wants.
      

      You mean that: MMM Notification transform only, can not modify the payload then transform?

      posted in System
      S
      smarthome
    • RE: MMM-Hotword (v2) - whole-new-built

      @Sean
      1/Could you give me the code in MMM Notification Trigger

      2/Your code with ModuleExec didn’t work

      3/I’m considering to use MMM TTS/Google TTS, but woud like to l try the simple solution first

      posted in System
      S
      smarthome
    • RE: MMM-Hotword (v2) - whole-new-built

      @Sean
      Can I send double notificationExec to 2 Module with ony 1 hotword
      1st to MMM Page-Selector
      2nd to Assistant MK2 speaks about this action

      "open_news": {
      notificationExec: {	
      notification: "PAGE_SELECT",
      payload:1
      notification: "ASSISTANT_SAY",
      payload:"Open News page"
      restart:true,			
      				},
      

      Also combine

      "open_news": {
      				notificationExec: {			
      					notification: {"PAGE_SELECT","ASSISTANT_SAY"}
      					payload:(1,"Open News page"}				
      					},
      				restart:true,			
      				},
      

      But in real test, only ASSISTANT_SAY can be executed

      How can I do that for both?

      Tks!

      posted in System
      S
      smarthome
    • RE: MMM-AI

      @bibi
      This is my code, it workes well

              triggers: [
           {
                  trigger: "ASSISTANT_RESPONSE_END", 
                  fires: [
                    {
                      fire: "standby_Image",
                      payload: payload => {
                        var img = document.getElementById("MY_ANIMATION");
                       img.src = "modules/MMM-AI/jarvis-standby2.gif";
                        return payload;
                      }
                    }
                  ]
      
                },		
      		 {
                  trigger: "ASSISTANT_UNDERSTOOD", 
                  fires: [
                    {
                      fire: "talk Image",
                    payload: payload => {
                        var img = document.getElementById("MY_ANIMATION");
                        img.src = "modules/MMM-AI/jarvis-talk2.gif";
                      return payload;	
                      }
                    }
                  ]
                }
              ]
      
      posted in Fun & Games
      S
      smarthome
    • RE: MMM-Clap

      @Sean
      OK. Tks for your help & advise. Waitting

      posted in System
      S
      smarthome
    • RE: MMM-Clap

      @Sean
      With MMM Page selector, If I not turn page, i must wait for changing by itself
      That’s why I use CLAP to turn page quickly
      With MMM Asisstant MK2, I need use MMM Hotword to see my request, if I use another module to trigger, I can’t see it

      finally, CLAP and Hotword use at the same time…

      posted in System
      S
      smarthome
    • RE: MMM-Clap

      @Sean
      I’d already, but didn’t work

      {
      		  module: "MMM-NotificationTrigger",
      		  //This module works in Background, so you don't need to describe `position`.
      		  config: {
      			useWebhook: false, // If you want to activate webhook as Notification emitter, set true. (eg. IFTTT)
      			triggers:[ // Array of triggers.
      			  {
      				trigger: "PAGE_CHANGED", //REQUIRED
      				triggerSenderFilter: (sender) => { //OPTIONAL should return true or false
      				  if (sender == "MMM-Page-Selector") {
      					return true
      				  }
      				  return false
      				},
      				triggerPayloadFilter: (payload) => { //OPTIONAL should return true or false
      				  if (typeof payload.value !== 'undefined' && payload.value > 0) {
      					return true
      				  }
      				  return false
      				},
      				fires: [ // Array of fires. You can enable multi-firing with one trigger.
      				  {
      					fire:"CLAP_RESUME", //REQUIRED
      					payload: (payload) => { //OPTIONAL. transform received payload to what your target module wants.
      					  return payload
      					},
      		 //           delay: 1000, //OPTIONAL, if this is set, your outgoing notification will be fired after delay.
      		 //           exec: "ls -l" //OPTIONAL, if exists, this script will be executed, and the result will be returned with "OUTGOING_NOTIFICATION_RESULT" and payload.  Can also be specified as a function which accepts the payload as an argument and returns the command to execute.
      				  },
      				],
      			  },
      			]
      		  }
      		},
      
      posted in System
      S
      smarthome
    • RE: MMM-Clap

      @Sean
      The scenario is:
      Step 1: Clap action
      Step 2: Clap sound detected, MMM Clap send output notification to MMM Page Selector while Mic still not released yet
      Step 3: MMM Page Selector receive input notification then change page
      Step 4: MMM Page Selector sends output notification CLAP_PAUSE to MMM Page Selector to release the MIC and waitting for next clap sound

      posted in System
      S
      smarthome
    • RE: MMM-Clap

      @Sean

      "1": {
        notificationExec: {
          notification: "PAGE_SELECT",
          payload: 1
        },
      },
      

      It’s worked to send from MMM-Clap to MMM-Page-Selector
      But still can not call CLAP_RESUME & CLAP_PAUSE in notification trigger out of these modules, because of it hasn’t got this function

      posted in System
      S
      smarthome
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      @Johans

      pages: "all",
      

      You forgot the quotation mark before and after pages

      "pages": "all",
      
      
      posted in System
      S
      smarthome
    • RE: MMM-Clap

      @Sean
      I’ve just configured MMM-Clap to work with MMM Assistant MK2 OK. But can’t work with MMM-Page-Selector and other modules that needs more than one notification trigger parameter,(MMM Assistant MK2 has only one )

      this.sendNotification("PAGE_SELECT", "2");
      

      This is my code in MMM-Clap

      defaultCommandMode: "MODE_DEFAULT",
      				commands: {
      				  "MODE_DEFAULT": {
      					"1": {
      					  notificationExec: {
      						notification: "PAGE_SELECT",
      						payload: {profile: "1"}
      					  },
      					  restart:flase,						
      					  },
                                         }                           
      

      And still can not call CLAP_RESUME & CLAP_PAUSE in notification trigger out of these module, because of it hasn’t got this function

      Tks and waitting for you response !

      posted in System
      S
      smarthome
    • RE: MMM-Hotword (v2) - whole-new-built

      @Sean

      Is there any “while…do” structure for using “hotword”, if have, we can do this lock function that temporary disable hotword

      for example, the hotword to work with MMM Assistant MK2 is “google”

      the hotword to lock is “lock_now”, the hotword to unlock is “hello123”

      hotword lock detect procedure is background running

      The structure is:

      while  
      {
      (("hotword lock detect procedure" )not equal to "lock_now" ) && ("hotword lock detect procedure" )not equal to "unlock_now" ) 
      }
      do
      {
      - setup hotword "google" to interactive  MMM Assistant MK2 
      }
      
      posted in System
      S
      smarthome
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      Hi all

      To make MMM-page-indicator work with MMM-Page-Selector, we must add MMM-page-indicator in to pages

      {
      			module: "MMM-page-indicator",
      			position: "bottom_bar",
      			"pages": {"Home": "bottom_bar", "News": "bottom_bar","Weather": "bottom_bar","Entertaiment": "bottom_bar","Smarthome": "bottom_bar","System": "bottom_bar"},	
                	config: {
      			pages: 6,
      			}
      		},
      
      posted in System
      S
      smarthome
    • 1 / 1