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

Send Notifications from Linux/RPi Command Line

Scheduled Pinned Locked Moved Development
8 Posts 2 Posters 311 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.
  • R Offline
    raspberrypi9
    last edited by Feb 26, 2025, 6:10 PM

    Is there a module that will allow you to type a notifcation and payload into the linux command line and broadcast it to all of the mirror modules?

    If not, I would like to write one. What would be the architecture that I would need on the mirror side? Can I write a new module that listens on an external socket and connect to that socket with some command line program that I would code?

    S 2 Replies Last reply Feb 26, 2025, 6:14 PM Reply Quote 0
    • S Away
      sdetweil @raspberrypi9
      last edited by Feb 26, 2025, 6:14 PM

      @raspberrypi9 see MMM-CommandToNotification

      https://github.com/Tom-Hirschberger/MMM-CommandToNotification

      search the 3rd party list linked above in the top menu

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @raspberrypi9
        last edited by sdetweil Feb 26, 2025, 7:00 PM Feb 26, 2025, 6:47 PM

        @raspberrypi9 yes, you can listen to socket, you can also read file.

        i think the one i suggested is not arbitrary timed event

        if you use the room prefix, you can use the same port as MagicMirror

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Feb 26, 2025, 7:38 PM Reply Quote 0
        • S Away
          sdetweil @sdetweil
          last edited by sdetweil Feb 26, 2025, 7:38 PM Feb 26, 2025, 7:38 PM

          @raspberrypi9 on the other hand, if you make it post to url, then one could use curl to post it, you wouldn’t have to write a client

          post json { “notification”:“value”, “payload”:{ etc }}

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Feb 27, 2025, 12:26 AM Reply Quote 0
          • S Away
            sdetweil @sdetweil
            last edited by sdetweil Feb 27, 2025, 11:00 PM Feb 27, 2025, 12:26 AM

            @raspberrypi9 here you go

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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              raspberrypi9
              last edited by Mar 1, 2025, 1:13 AM

              Sam, I love this! It is exactly what I was looking for and very useful. Thanks so much for making it!

              S 2 Replies Last reply Mar 1, 2025, 2:07 AM Reply Quote 1
              • S Away
                sdetweil @raspberrypi9
                last edited by Mar 1, 2025, 2:07 AM

                @raspberrypi9 i didn’t mean to steal your thunder tho

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @raspberrypi9
                  last edited by Mar 1, 2025, 2:07 AM

                  @raspberrypi9 and curl can send a whole file of json, not just a short blob

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    6/8
                    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