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.

    MMM-Clap

    Scheduled Pinned Locked Moved System
    25 Posts 4 Posters 6.5k Views 2 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.
    • Cr4z33C Offline
      Cr4z33 @Guest
      last edited by

      @Sean said in MMM-Clap:

      @Cr4z33
      MMM-Clap and MMM-Hotword will compete each other to take one mic. I think you’d better to use just one module. At least one module at a time. You can make juggling with CLAP_RESUME, CLAP_PAUSE, HOTWORD_RESUME, HOTWORD_PAUSE to confirm only one module uses a mic at a time. But too complex. not recommended.

      Oh now I got it.

      Thanks however I will then keep using MMM-Hotwords.

      Too precious for my voice command needs hehe. 😁

      1 Reply Last reply Reply Quote 0
      • S Offline
        smarthome @Guest
        last edited by

        @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.
        				  },
        				],
        			  },
        			]
        		  }
        		},
        
        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @smarthome
          last edited by A Former User

          @smarthome
          Repeating again; Why do you need CLAP_RESUME/CLAP_PAUSE on page changing? Without them the module will work. I’m a little embarrassed to understand why you need it.

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

            @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…

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

              @smarthome
              I doubted you might want to use Clap and Hotword together… Maybe possible, but don’t recommend personally.
              The easiest solution might be using 2 mics. :D
              Anyway, I’ll look inside how to use both module together, (Even I haven’t tried) but it needs some time. sorry.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                smarthome @Guest
                last edited by

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

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

                  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

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

                    @smarthome
                    Can you share your config about MMM-Clap? eouia0819@gmail.com

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 3 / 3
                    • 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