• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

How to show a popup window

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 2.5k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    axellejamous
    last edited by Jan 13, 2018, 4:26 AM

    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 notification

    My apologies if this was way too much information.

    S 1 Reply Last reply Jan 13, 2018, 12:58 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @axellejamous
      last edited by Jan 13, 2018, 12:58 PM

      @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

      Please create a github issue if you need help, so I can keep track

      A 1 Reply Last reply Jan 13, 2018, 2:38 PM Reply Quote 2
      • A Offline
        axellejamous @strawberry 3.141
        last edited by Jan 13, 2018, 2:38 PM

        @strawberry-3.141 great, that’s perfect I’ll take a look thank you!

        1 Reply Last reply Reply Quote 0
        • H Offline
          hengy
          last edited by Apr 10, 2018, 12:55 PM

          Have you had any luck with this. I’d also like some way to change alarm times on a touch screen.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy