fewieden / MMM-AlarmClock

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

Alarm doesn't stop on touch #25

Closed InfiniteTape closed 5 years ago

InfiniteTape commented 5 years ago

Platform (Hardware/OS): Raspberry Pi 3 B

Node version: v10.15.2

MagicMirror version: 2.8.0

Module version: 1.1.0

Description of the issue: When an alarm goes off with touch enabled, I expect that the alert will disappear, the sound will stop, and the scrim over the main MM display will go away. Instead, after several touches, the alert finally goes away, but the sounds and scrim stay up until the 60 seconds ends.

                {
                        module: "MMM-AlarmClock",
                        position: "top_right",
                        touch: "true",
                        config: {
                                alarms: [
                                        {time: "21:33",  days: [0], title: "Test", message: "Test Message!", sound: "alarm.mp3"}
                                ],
                        }
                },`
fewieden commented 5 years ago

@InfiniteTape you put the option in the wrong level. It should look like this:

{
  module: "MMM-AlarmClock",
  position: "top_right",
  config: {
    touch: true,
    alarms: [
      {time: "12:09",  days: [3], title: "Test", message: "Test Message!", sound: "alarm.mp3"}
    ]
  },
},
InfiniteTape commented 5 years ago

Yep, that was the problem. Thanks!