• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.4k 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.
  • ? Offline
    A Former User
    last edited by A Former User Jul 3, 2019, 3:23 PM Jul 3, 2019, 3:19 PM

    MMM-Clap

    MagicMirror controller by hand-clap or finger-snap

    screenshot

    By example, you can hide modules by finger-snapping like Thanos.

    Features

    • Count and Sequence could be detected.
    • As a result of detection, notification or shell command could be executed.

    [card:eouia/MMM-Clap]

    S 1 Reply Last reply Jul 17, 2019, 8:18 AM Reply Quote 2
    • B Offline
      bhepler Module Developer
      last edited by Jul 4, 2019, 8:20 PM

      To implement this in proper Thanos fashion, you should hide half of the modules after a finger snap.

      Great idea. Thanks!

      1 Reply Last reply Reply Quote 0
      • S Offline
        smarthome @Guest
        last edited by smarthome Jul 17, 2019, 8:32 AM Jul 17, 2019, 8:18 AM

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

        ? 1 Reply Last reply Jul 17, 2019, 9:07 AM Reply Quote 0
        • C Offline
          Cr4z33
          last edited by Jul 17, 2019, 9:00 AM

          Nice @Sean!

          This is perfect to turn on my mirror display! :smiling_face_with_open_mouth_closed_eyes:

          ? 1 Reply Last reply Jul 17, 2019, 9:08 AM Reply Quote 0
          • ? Offline
            A Former User @smarthome
            last edited by Jul 17, 2019, 9:07 AM

            @smarthome
            I cannot understand your intention.
            Why did you use {profile: "1"} as parameter of PAGE_SELECT?
            I think this would;

            "1": {
              notificationExec: {
                notification: "PAGE_SELECT",
                payload: 1
              },
            },
            
            S 1 Reply Last reply Jul 17, 2019, 9:19 AM Reply Quote 0
            • ? Offline
              A Former User @Cr4z33
              last edited by Jul 17, 2019, 9:08 AM

              @Cr4z33 Thanks. I think this would be better than untrustworthy Hotword

              1 Reply Last reply Reply Quote 0
              • S Offline
                smarthome @Guest
                last edited by smarthome Jul 17, 2019, 9:43 AM Jul 17, 2019, 9:19 AM

                @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

                ? 1 Reply Last reply Jul 17, 2019, 10:19 AM Reply Quote 0
                • C Offline
                  Cr4z33
                  last edited by Cr4z33 Jul 17, 2019, 9:51 AM Jul 17, 2019, 9:48 AM

                  @Sean module looks loaded correctly, but it is not reacting to my claps?
                  I see no evidence of reaction if running npm start.

                  I have used the same device like in MMM-Hotwords.

                  		{
                  		module: "MMM-Clap",
                  		position: "bottom_left",
                  		disabled: false,
                  		config: {
                  				detector: {
                  						recordDevice: null,
                  					},
                  		defaultCommandMode: "MODE_DEFAULT",
                  		commands: {
                  				"MODE_DEFAULT": {
                  							"2": {
                  								shellExec: {
                  										exec: "echo on 0 | cec-client -s -d 1"
                  										},
                  								restart:true,
                  										},
                  								},
                  						}
                  			}
                  		},
                  

                  Still running everything in my Rpi 3 B+ of course. ;)

                  ? 1 Reply Last reply Jul 17, 2019, 10:20 AM Reply Quote 0
                  • ? Offline
                    A Former User @smarthome
                    last edited by Jul 17, 2019, 10:19 AM

                    @smarthome
                    Sorry for my Poor English. I cannot still get your words.
                    Tell me your scenario or use case for using CLAP_RESUME/CLAP_PAUSE. these both might be used when Mic should be released or re-obtained for other module’s usage. In other cases, usually you don’t need to care these.
                    Why do you need and with which modules?

                    S 1 Reply Last reply Jul 17, 2019, 11:59 AM Reply Quote 0
                    • ? Offline
                      A Former User @Cr4z33
                      last edited by Jul 17, 2019, 10:20 AM

                      @Cr4z33
                      Show me the log. If works; Belows should be shown.

                      Connecting socket for: MMM-Clap
                      Sockets connected & modules started ...
                      Launching application.
                      [CLAP] Starts.
                      
                      C 1 Reply Last reply Jul 17, 2019, 10:25 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 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