• 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 invoke sendNotification from a outside shell script

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 1.1k 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
    agileselenium
    last edited by Aug 17, 2018, 2:33 AM

    Hi,

    I wanted to send a notification to modules from a shell script.
    How can I send notifications to magicmirror modules from external application or script?

    Please help me?

    1 Reply Last reply Reply Quote 0
    • S Away
      sdetweil
      last edited by Aug 17, 2018, 2:45 AM

      u have to write some additional communications process.

      in one of my implementations, i write a file in the outside script, and my MM modules looks for the file and then processes it… which then sends notifications to other modules…
      you could also use tcp/ip sockets, or websockets, or … there is no single builtin way

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by A Former User Aug 17, 2018, 6:21 AM Aug 17, 2018, 6:20 AM

        MMM-NotificationTrigger has HTTP endpoint to receive message. So if your external app can touch the endpoint, It can convert it to MagicMirror notification.

        Example of using IFTTT.
        https://github.com/eouia/MMM-NotificationTrigger#usewebhook

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