• 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.

MMM-NotificationTrigger second trigger not working

Scheduled Pinned Locked Moved Solved Troubleshooting
14 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
    Arynio @sdetweil
    last edited by Feb 5, 2022, 4:39 PM

    @sdetweil Yes the TURN_OFF gets emitted and i can see it. But MMM-NotificationTrigger doesn’t react to it, doesn’t fire the OKAY and doesnt execute the “echo ‘standby 0.0.0.0’ | cec-client -s -d 1”

    1 Reply Last reply Reply Quote 0
    • M Offline
      MMRIZE @Arynio
      last edited by Feb 6, 2022, 8:20 PM

      @arynio
      I haven’t tested. But as far as I know, a notification from the module itself would not be heard by itself to prevent infinite loop possibility.

      1 Reply Last reply Reply Quote 1
      • M Offline
        MMRIZE @Arynio
        last edited by MMRIZE Feb 6, 2022, 8:30 PM Feb 6, 2022, 8:29 PM

        @arynio

        https://github.com/MichMich/MagicMirror/blob/26a76f80d63e5c9746b6db712d6901219f8b6b93/js/main.js#L97-L99

        if (module !== sender && (!sendTo || module === sendTo)) {
          module.notificationReceived(notification, payload, sender);
        }
        

        module.notifcationReceived() doesn’t work when the recipient module and the sending module are the same.
        A module cannot hear its voice.

        If you want to use a chained shell commands with delay, make .sh file and execute it.

        A 1 Reply Last reply Feb 6, 2022, 8:37 PM Reply Quote 1
        • A Offline
          Arynio @MMRIZE
          last edited by Feb 6, 2022, 8:37 PM

          @mmrize Okay will do that thanks

          1 Reply Last reply Reply Quote 0
          • 1
          • 2
          • 2 / 2
          2 / 2
          • First post
            11/14
            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