MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. contactmike1
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 12
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MM Default Alert Module Overlay Does not Go Away When Clicked

      @ashishtank Hey this is great!

      I figured if I was lucky, someone might toss me a snippet to add to my code, but I’m very impressed someone wants to update the Master.

      I wasn’t sure if this really amounted to an issue/bug since touchscreen/nav isn’t really the intended use of MM. I’ll pull in the new code once it gets merged. Thanks!

      posted in Troubleshooting
      C
      contactmike1
    • MM Default Alert Module Overlay Does not Go Away When Clicked

      Hello,

      I use MM as a dashboard and not a mirror, so it’s a touch screen. I have a module that is submitting weather alerts to MM using the standard alert functionality. The weather alerts display great using the default module; however, when I click the alert using the touchscreen (to dismiss it), the alert and alert text go away, but the black overlay box does not. So, after I dismiss an alert, I am unable to interact with my touchscreen MM anymore because the black overlay box sits on top of everything, including my menus and page navigation, and so I cannot click on my menus or page navs anymore. :-( I have to either kill the mirror and restart it in the console or wait until the alert timeout limit is reached.

      My goal is to configure the alerts to stay up on the screen until they are manually dismissed (w/ a long multiple hour timeout so they don’t last forever), but this isn’t feasible if the overlay will prevent touchscreen access for the duration of the timeout when the alert is manually dismissed. I have looked at the actual JS code, and it appears to be coded so that the alert only goes away after the timeout.

      When I touch the alert, the alert box and text do go away on the screen, but I can not locate the code which causes the alert box and text to go away upon touch/click. If I could find the right code section, it would be simple to duplicate the hide alert function to get rid of the overlay. But I can’t figure out what section of code is causing the “click the alert to dismiss” functionality to work. Has anyone done something like this before, or does anyone who actually knows JS code understand how it’s coded? I learned enough JS to install MM and make baby tweaks to things, but it is still difficult for me to understand any code larger than a couple lines.

      posted in Troubleshooting
      C
      contactmike1
    • 1 / 1