• 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 send a notification

Scheduled Pinned Locked Moved Unsolved Troubleshooting
35 Posts 3 Posters 5.6k 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
    Alyx @sdetweil
    last edited by Nov 22, 2021, 12:30 PM

    @sdetweil I have that set up al;ready but my alexa cant discover it for some reason. If you need you can see it in my config.js file above

    S 1 Reply Last reply Nov 22, 2021, 12:43 PM Reply Quote 0
    • S Offline
      sdetweil @Alyx
      last edited by Nov 22, 2021, 12:43 PM

      @alyx nice, but you missed one key point

      and this stuff goes in the alexacontrol module
      config:{}
      section

      u have in the general module section not in the module config

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Nov 22, 2021, 12:59 PM Reply Quote 0
      • A Offline
        Alyx @sdetweil
        last edited by Nov 22, 2021, 12:59 PM

        @sdetweil Ah! that worked thanks :) Next issue it doesnt call the module when activated lol

        S 1 Reply Last reply Nov 22, 2021, 1:14 PM Reply Quote 0
        • S Offline
          sdetweil @Alyx
          last edited by Nov 22, 2021, 1:14 PM

          @alyx so, now open the developers window, ctrl-shift-i, and look at the console tab

          u may be able to see some module report the notification

          or install my samplemodule as it reports all notifications received
          https://github.com/sdetweil/SampleModule

          in the Alexa app u can control devices manually, so that makes testing a lot easier

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Nov 22, 2021, 1:33 PM Reply Quote 0
          • A Offline
            Alyx @sdetweil
            last edited by Nov 22, 2021, 1:33 PM

            @sdetweil Hi sam,

            Great so i can see that the notification isnt being sent via the dev console, it shows up via Alexa app but isnt communicating to the MM. Would you happen to know the cause?

             {
                    module: 'MMM-AlexaControl',
                    position: 'middle_center',
            	
            
            	config:{
            		
                        image: true,
            	    deviceName: "mirror",
                        pm2ProcessName: "mm",
                        vcgencmd: "hide",
            	    startPort: 11001,
            	    refresh: true,
            	    restart: true,
            	    //stop: true,
            	    reboot: true,
            	    shutdown: true,
            	    monitorToggle: true,
            	    //cecAddress: "0.0.0.0",
            	    //usb: false
            	    pages: 3,
            	    notifications:[
                {
                    name: 'Next page',
                    port: 11102,
                    OnOff: false,
                    notification: ["PAGE_INCREMENT", 'payload']
                },
                 {
                    name: 'Previous page',
                    port: 11103,
                    OnOff: false,
                    notification: ["PAGE_DECREMENT", 'payload']
                },
                {
                    name: 'Selfie',
                    port: 11104,
                    OnOff: false,
                    notification: ["SELFIE_SHOOT", 'payload']
                }
            ],
                    }
                },
            
            S 1 Reply Last reply Nov 22, 2021, 1:44 PM Reply Quote 0
            • S Offline
              sdetweil @Alyx
              last edited by sdetweil Nov 22, 2021, 1:45 PM Nov 22, 2021, 1:44 PM

              @alyx not really. if u stop MagicMirror, and then tell Alexa to turn on your notification device, you should get a ‘not responding’ message from alexa

              that will tell you the two are really connected.

              Alexa turn on selfie

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Nov 22, 2021, 1:52 PM Reply Quote 0
              • A Offline
                Alyx @sdetweil
                last edited by Nov 22, 2021, 1:52 PM

                @sdetweil Yep that makes sense but it isnt popping up below is a quick snapshot of the dev panel

                
                MMM-MotionDetector.js:75 MMM-MotionDetector: DiffCamEngine init successful.
                module.js:195 MMM-AlexaControl is suspended.
                module.js:195 MMM-NASA is suspended.
                module.js:195 MMM-ISS-Live is suspended.
                module.js:195 MMM-MotionDetector is suspended.
                module.js:195 lifecounter is suspended.
                module.js:195 compliments is suspended.
                module.js:195 MMM-chromecast is suspended.
                MMM-NASA.js:132 Hailing NASA
                module.js:202 MMM-page-indicator is resumed.
                module.js:202 MMM-Selfieshot is resumed.
                module.js:202 MMM-Astro is resumed.
                module.js:202 MMM-MoonPhase is resumed.
                module.js:202 clock is resumed.
                eventtracking-log.services.video.ibm.com/eventtracking.web.player/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
                eventtracking-log.services.video.ibm.com/eventtracking.web.player/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
                eventtracking-log.services.video.ibm.com/eventtracking.web.player/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
                eventtracking-log.services.video.ibm.com/eventtracking.web.player/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
                eventtracking-log.services.video.ibm.com/eventtracking.web.player/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
                eventtracking-log.services.video.ibm.com/eventtracking.web.player/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
                MMM-AlexaControl.js:75 RECEIVE monitor NOTIFICATION=SLEEP_WAKE
                MMM-AlexaControl.js:75 RECEIVE monitor NOTIFICATION=SLEEP_HIDE
                MMM-AlexaControl.js:75 RECEIVE monitor NOTIFICATION=SLEEP_WAKE
                MMM-pages.js:97 
                

                The errors lead to this page
                400 Bad Request
                ‘json’ or ‘msgpack’ parameter is required

                S 1 Reply Last reply Nov 22, 2021, 1:55 PM Reply Quote 0
                • S Offline
                  sdetweil @Alyx
                  last edited by Nov 22, 2021, 1:55 PM

                  @alyx said in How to send a notification:

                  Yep that makes sense but it isnt popping up below is a quick snapshot of the dev panel

                  one thing at a time

                  you didn’t answer the question about connection

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  A 1 Reply Last reply Nov 22, 2021, 2:07 PM Reply Quote 0
                  • A Offline
                    Alyx @sdetweil
                    last edited by Nov 22, 2021, 2:07 PM

                    @sdetweil Apoligies, tested there.

                    So I stopped magic mirror/ restarted the pi and it came up with device unresponsive.

                    S 1 Reply Last reply Nov 22, 2021, 2:09 PM Reply Quote 1
                    • S Offline
                      sdetweil @Alyx
                      last edited by Nov 22, 2021, 2:09 PM

                      @alyx ok, and when MM is running you get the completion sound from alexa, correct?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      A 1 Reply Last reply Nov 22, 2021, 2:21 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        12/35
                        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