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 a notification to your MagicMirror

    Scheduled Pinned Locked Moved Solved Feature Requests
    5 Posts 2 Posters 1.2k 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.
    • C Offline
      chrisfr1976
      last edited by

      Hi,

      is there a chance to send a notification from outside to the Mirror? I‘d like to use an Apple shortcut to start some actions from outside. Another my could be Alexa but I think all Alexa-modules do not work anymore?!

      I tried so far:

      pm2 send mm emit "Cookidoo_view"
      

      and

      node -e "require('electron').ipcRenderer.send('MY_CUSTOM_NOTIFICATION', { message: 'Hello from Node\!' })"
      

      And i tested a notification script but also without success:

      var NodeHelper = require("node_helper");
      
      var helper = NodeHelper.create({
          start: function () {
              this.sendSocketNotification("Cookidoo_view");
          }
      });
      
      module.exports = helper;
      

      Any ideas?

      Regards, Chris.

      S 2 Replies Last reply Reply Quote 0
      • C Offline
        chrisfr1976 @sdetweil
        last edited by

        @sdetweil
        Hi, yes but I used a different approach. I wanted to get a link from my module. Now the link is automatic saved an I can get it with an Apple shortcut. See MMM-Cookidoo.

        Regards, Chris.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @chrisfr1976
          last edited by sdetweil

          @chrisfr1976 see the 3rd party list

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

          AlexaControl still works, but requires a real echo device to do the voice action and interface to MagicMirror

          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 @chrisfr1976
            last edited by

            @chrisfr1976 did you resolve this?

            notifications between modules can ONLY be sent/received in/from the modulename.js side,
            in browser…

            socket notifications are ONLY between the modulename.js AND the node_helper loaded with this module

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              chrisfr1976 @sdetweil
              last edited by

              @sdetweil
              Hi, yes but I used a different approach. I wanted to get a link from my module. Now the link is automatic saved an I can get it with an Apple shortcut. See MMM-Cookidoo.

              Regards, Chris.

              S 1 Reply Last reply Reply Quote 0
              • S sdetweil has marked this topic as solved on
              • S Offline
                sdetweil @chrisfr1976
                last edited by

                @chrisfr1976 you can also use my
                MMM-CurlToNotification
                module

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 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