MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    How to invoke sendNotification from a outside shell script

    General Discussion
    3
    3
    901
    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
      agileselenium last edited by

      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
        sdetweil last edited by

        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

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User last edited by A Former User

          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
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy