Read the statement by Michael Teeuw here.
How to show a popup window
-
I’m trying to write my own module that will allow me to set the alarm for the MMM-AlarmClock module through buttons attached to your Pi.
I have the code that will read my button inputs, I have the code that will send the notification to set the alarm and I have my buttons on a PCB wired to my Pi.
There are 5 buttons: one ‘confirm’ button in the middle and 4 around it that count as arrows (left, right, up, down).
This way you’ll be able to set it number per number (kind of like the iphone alarm setter but without animation).However, I just can’t seem to figure out how to show a popup window that will allow users to set the alarm in.
I know this is probably very simple, but I’m fairly new to JS. I’ve looked at the alert and iFrame modules but can’t really figure out how to use those for my module or if that would even make sense.This would be the flow:
Press confirm button > open small popup window on top > push up or down until number matches time > push right or left to set next or previous number > repeat > confirm > send notificationMy apologies if this was way too much information.
-
@axellejamous you can take a look into my modules whih support mmm-voice or in mmm-voice itself, for the voice command actions i implemented some sort of modal which blurs all information on the mirror out and shows the new stuff on top
-
@strawberry-3.141 great, that’s perfect I’ll take a look thank you!
-
Have you had any luck with this. I’d also like some way to change alarm times on a touch screen.