MMM-AlarmClock
MMM-AlarmClock copied to clipboard
How to disable alarm popup on Magic Mirror
Platform (Hardware/OS): Raspberry Pi 3B, Raspbian Stretch
Node version: ?
MagicMirror version: 2.5.0
Module version: latest as of 12/12/18
I am very inexperienced in programming so I have been stumbling along trying to set up my MagicMirror.
Your module works perfectly for my purposes of playing a radio show every week day at a certain time on a non-touch enabled screen. However, the popup that will not disappear as the alarm is active is incredibly frustrating. Is there a way to disable the alarm popup from occurring so that the radio show will play in the background without covering up the rest of my modules and disrupting my flow of information for an hour each weekday.
I have looked through the files in this module but cannot figure out how to disable the alarm popup without disrupting the alarm reset and such...
If this is not easily accomplished, do you know of another module that would play from a radio stream URL at a specified time each day for a specified length of time each day?
Regards.
I know that there are some music/radio modules. But then you would need a more complex setup to trigger them in a specific time frime. I think the easiest option is that I will add a config option for you.
You are too kind! Will it be available as an update?
On Sat, Dec 22, 2018, 3:15 AM fewieden <[email protected] wrote:
I know that there are some music/radio modules. But then you would need a more complex setup to trigger them in a specific time frime. I think the easiest option is that I will add a config option for you.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fewieden/MMM-AlarmClock/issues/20#issuecomment-449557110, or mute the thread https://github.com/notifications/unsubscribe-auth/ArTsmW_mLHTTy5E-G7tAebTIzljoj1zHks5u7fgsgaJpZM4ZQYkh .
The plan is to do it in the hackathon https://github.com/fewieden/MagicMirror-Hackathon/issues/8 and then it will be available as an update.
How will I be able to find out when it is available and where to find it? I was not familiar with the Hackathon. Also, I found a module that works for gas prices in the USA after days of scouring the internet trying to find a source of the information without paying for an insanely expensive API. It is called MMM-Gas and found it on the MagicMirror Forum. It is not listed on the 3rd Party Modules page.
On Sun, Dec 23, 2018, 3:20 AM fewieden <[email protected] wrote:
The plan is to do it in the hackathon fewieden/MagicMirror-Hackathon#8 https://github.com/fewieden/MagicMirror-Hackathon/issues/8 and then it will be available as an update.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fewieden/MMM-AlarmClock/issues/20#issuecomment-449624132, or mute the thread https://github.com/notifications/unsubscribe-auth/ArTsmclC_SmnFVuLnhMMtDPA1IFAky2Nks5u70q_gaJpZM4ZQYkh .
You can test it now https://github.com/fewieden/MMM-AlarmClock/pull/22
- Go to the module directory
cd ~/MagicMirror/modules/MMM-AlarmClock
- Change to the develop branch
git checkout develop
- Test and report
Tested it. Popup alert is gone. Works beautifully! Thanks. How do I change back to the normal branch after the update is available?
The timer no longer stops the alarm after 1 min.
Here's my config:
{
module: 'MMM-AlarmClock',
config: {
alarms: [
{
time: '00:19', //must be 24 hr format
days: [1,2,3,4,5,6], //Sunday=0, Saturday=6
title: 'KBRX - Party Line',
message: 'Party Line',
sound: 'http://162.244.81.209:8032/stream?autoplay=1',
},
],
timer: 60000, //in milliseconds
volume: 1.0,
touch: false,
format: 'ddd, h:mm A',
fade: false,
fadeTimer: 60 * 1000, //change 1st operand to specify seconds, how long fade into alarm before volume is set
fadeStep: 0.005, //0.5%, inc volume this percent amount each second until fadeTimer is reached
popup: false,
},
},
The problem is you don't have a position for the module specified. Since I'm using now nunjuck templates this is required.
Your config should look similar to this (you don't need to specify the options with default values if you don't change them):
{
module: 'MMM-AlarmClock',
position: 'top_right',
config: {
alarms: [
{
time: '12:44', //must be 24 hr format
days: [1,2,3,4,5,6], //Sunday=0, Saturday=6
title: 'KBRX - Party Line',
message: 'Party Line',
sound: 'http://162.244.81.209:8032/stream?autoplay=1',
},
],
popup: false
},
},
After the update is available you can do git checkout master && git pull
in the module directory.
fewieden,
I usually put all config options in my config.js file so that I can tweak them later if I want to, without having to look up the options again, even if I do leave them set at the defaults at the time.
Adding a position fixed the issue. Thank you!