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 634 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

      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 Reply Quote 0
      • S Offline
        sdetweil @raspberrypi9
        last edited by

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

          @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 Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by sdetweil

            @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 Reply Quote 0
            • S Offline
              sdetweil @sdetweil
              last edited by sdetweil

              @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

                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 Reply Quote 1
                • S Offline
                  sdetweil @raspberrypi9
                  last edited by

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

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