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.

    Delayed Notification? Please help :)

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 1.1k Views 2 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.
    • P Offline
      pengupanda
      last edited by

      Hey guys,

      I am building a MagicMirror with MMM-Framelight and a Button via MMM-GPIO-Notifications.

      My goal is to send the notifications FRAMELIGHT_ON followed by a delayed FRAMELIGHT_OFF to make everything dark again.

      How do i realise this kind of delay? Anyone knows a module with that functionality? Or can point me in the right direction?

      Thanks for any help!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @pengupanda
        last edited by sdetweil

        @pengupanda i dont know of a single module where you can do all that.

        I have a module that can send notifications from a command line

        https://github.com/sdetweil/MMM-CurlToNotification

        You could execute two curl commands for the notifications w a sleep between them in a shell script

        Then something like
        https://github.com/Tom-Hirschberger/MMM-TouchButton
        Could cause the shell script to execute

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • P Offline
          pengupanda
          last edited by

          Thanks for the idea!
          In the meantime i managed to throw a module together.
          It listens to any notification and sends notifications plus payload after a delay. If anyone finds this post, here we go:
          MMM-DelayedNotification

          1 Reply Last reply Reply Quote 1
          • 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