fewieden / MMM-AlarmClock

Alarm Clock Module for MagicMirror²
MIT License
47 stars 18 forks source link

stop alarm using gesture sensor. #30

Closed altamashqureshi9144 closed 2 years ago

altamashqureshi9144 commented 4 years ago

I'm using GroveGesture Sensor(PAJ7620u2) MMM-GroveGestures how to stop alarm using that sensor?

fewieden commented 4 years ago

Hi @8acoustic , the module listens for the notification STOP_ALARM https://github.com/fewieden/MMM-AlarmClock/blob/e4638b655960c411b44d1244cd1a06551dffc1ef/MMM-AlarmClock.js#L184-L188

In your grove gesture config you would need to specify something like

"ANTICLOCKWISE": {
  notificationExec: {
    notification: "STOP_ALARM",
    payload: null,
  }
},

accordingto the docs https://github.com/eouia/MMM-GroveGestures#details-and-default

altamashqureshi9144 commented 4 years ago

Tysm for the help, The alarm now stop using the gesture but the widget on the screen doesn't disappear when its stopped... it disappear after 1 min.

fewieden commented 4 years ago

@8acoustic sry for the late reply. Are you using the latest version of the module? I had made a lot of changes.