Read the statement by Michael Teeuw here.
MMM-AlarmClock
-
@gable74 thats because you downloaded it manually
-
-
@strawberry-3.141 , Because I adjust so big font display (in css of alert module) but the border around display alarm font not expand (It’s fix), I would like to know how to expand border?
Thanks for all help -
@nobita the
.ns-alert
class makes use of a fixed with of 40% so you have to change the value of this class in the custom.css -
@strawberry-3.141 OK,IT work Thanks for your hint
-
Thank you so much for this module, it’s amazing and really easy to use!
I was wondering however, if I would want to let’s say set the alarm through some buttons attached to my pi, would it be best to try and inject lines into the config file (which seems sloppy to me) or can I set it through the js file directly? Or do I just make a second setnextalarm function?
-
@axellejamous you cannot do that via the config. I suggest you to create a module which is handling your buttons and sending a
SET_ALARM
notification. Then you need to enhance the alarm module by listening to that notification and set the alarm accordingly. -
@strawberry-3.141 I understand, that’s actually really useful thank you! Can I pass parameters with a socketnotification?
-
@axellejamous yes additional data gets passed in the payload, see documentation https://github.com/MichMich/MagicMirror/blob/master/modules/README.md#thissendnotificationnotification-payload
-
I refactored the module and switched to nunjuck templates.
I’m looking for people who are willing to test it:
- combinations of config options
- new config option
popup
how to test:
- if not already done, clone the repository to your modules
cd ~/MagicMirror/modules/ && git clone https://github.com/fewieden/MMM-AlarmClock.git
- go to the module
cd ~/MagicMirror/modules/MMM-AlarmClock
- run
git checkout develop
- test various config options
[card:fewieden/MMM-AlarmClock]