MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. MilkShake
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 10
    • Posts 66
    • Groups 0

    Posts

    Recent Best Controversial
    • MMM-NotificationTrígger

      @MMRIZE said in Receive a HTTP request and subsequently wake up display and display alert/notification:

      @MilkShake
      What is the request body from the gate? “SHOW_ALERT”? I think it would be better to emit other dedicated custom notification other than “SHOW_ALERT”.

      @sdetweil said in Receive a HTTP request and subsequently wake up display and display alert/notification:

      @MMRIZE he is trying to get the alert module popup

      Yes. Well, I would actually like to execute a shell script that turns on the screen and display an Alert/Notification. I had this working on a previous version of MM, but now I cannot seem to figure it out.

      posted in Troubleshooting
      M
      MilkShake
    • Receive a HTTP request and subsequently wake up display and display alert/notification

      Hi,
      I have been trying to display a notification on my MM upon the receival of a HTTP request that comes from my gate. When womeone pushes the button at the gate, the gate is able to do a HTTP request.

      It is setup to request: http://MYMM:8090/webhook

      When that is fired I receive a 200:OK.

      In my config I have:

      {
            module: "MMM-NotificationTrigger",
            config: {
              useWebhook:true,
              triggers:[
                {
                  trigger: "SHOW_ALERT",
                  fires: [
                    {
                      fire:"SHOW_ALERT",
                      payload:{
                              "title": "PORTEN",
                              "message": "Der er nogen ved porten",
                              "timer":5000
                              },
                    },
                  ],
                },
              ]
            }
       },
      

      Can anyone point me in the right direction?

      Much appreciated :)

      Br,
      Lars

      posted in Troubleshooting
      M
      MilkShake
    • RE: Rasp4 running MagicMirror stops responding after some time

      @ferby09

      Yeah, mine is not constant with that. Some times it can work 3 days and sometimes it is hours. I am looking into logs now.

      posted in Hardware
      M
      MilkShake
    • RE: Rasp4 running MagicMirror stops responding after some time

      @sdetweil said in Rasp4 running MagicMirror stops responding after some time:

      @MilkShake could be

      I would start by looking in the /var/logs folder where the system logs are written

      there are multiple

      so you would need to look at the latest dates,
      usually when u boot the previous is saved and a new is started

      Thansk man. I will dig around and see what I can find. It is annoying to say the least.

      posted in Hardware
      M
      MilkShake
    • Rasp4 running MagicMirror stops responding after some time

      Hi All,
      I have a magic mirror that I built 3 years ago, running on a Rapsberry 4. It uses a small motionsensor on the left of the mirror to activate. After booting the rasp it usually works for 2-3 days after which it stops responding to SSH, motion detection and RDP. I can still ping it.

      Would anyone know how to go about troubleshooting this? Could it be memory build up?

      Best regards
      Lars Kragh-Hvidberg

      posted in Hardware
      M
      MilkShake
    • RE: Syntax of MMM-NotificationTrigger

      @MilkShake Got it to work using:

      {
         module: "MMM-NotificationTrigger",
         config: {
           useWebhook:true,
      	 triggers:[
      	   {
      	      trigger: "PLAY_SOUND",
      		  fires: [
      		    {
      			fire: "USER_PRESENCE",
      			payload: function(payload) {
                        return false
                      }
      			}
      		  
      	   ]
      	 },
      	 {
      	    trigger: "OPEN_GATE",
      		fires: [
      		   {
      		   fire: "OPENING_THE_GATE",
      		   exec: "sudo python /home/pi/open_gate.py"
      		   }
      		]
      	 },
         ]
        }
      },
      
      posted in General Discussion
      M
      MilkShake
    • RE: [Guide] Control MM via Google Home

      @MilkShake
      Got it to work using:

      {
         module: "MMM-NotificationTrigger",
         config: {
           useWebhook:true,
      	 triggers:[
      	   {
      	      trigger: "PLAY_SOUND",
      		  fires: [
      		    {
      			fire: "USER_PRESENCE",
      			payload: function(payload) {
                        return false
                      }
      			}
      		  
      	   ]
      	 },
      	 {
      	    trigger: "OPEN_GATE",
      		fires: [
      		   {
      		   fire: "OPENING_THE_GATE",
      		   exec: "sudo python /home/pi/open_gate.py"
      		   }
      		]
      	 },
         ]
        }
      },
      
      posted in General Discussion
      M
      MilkShake
    • RE: [Guide] Control MM via Google Home

      Hi, Thanks for the guide. I got it working as IFTTT actually sends a webrequest to my mirror. I am having trouble with the syntax of NotificationTrigger. I already use that module to turn on my Mirror if my gate button is pushed and display an alert.

      I would like to execute a script when the trigger OPEN_GATE is received. Here is my current config:

      {
      module: "MMM-NotificationTrigger",
            config: {
                triggers:[
                {
                  trigger: "PLAY_SOUND",
                  fires: [
                    {
                      fire:"USER_PRESENCE",
                      payload: function(payload) {
                        return false
      
                      }
                    },
      
                    {
                      fire:"SHOW_ALERT",
                      payload: function(payload) {
                        return {
                          type: "notification",
                          title: "Porten",
                          message: "Der er nogen ved porten!"
                          }
                      },
                    }
                  ],
                },
      
              ]
            }
      },
      

      Can anyone help with the syntax to add a trigger for “OPEN_GATE” notification that fires a script?

      posted in General Discussion
      M
      MilkShake
    • RE: Syntax of MMM-NotificationTrigger

      @MilkShake So IFTTT makes a webrequest that looks like this:

      URL: https://MMPUBLICURL/webhook
      Method: POST
      Content type: application/json
      Body: { “sender”: { “name”:“IFTTT” }, “notification”: “OPEN_GATE”}

      I thought I could do something like:

      {
      module: "MMM-NotificationTrigger",
            config: {
              useWebhook: true,
              triggers:[
                {
                  trigger: "PLAY_SOUND",
                  fires: [
                    {
                      fire:"USER_PRESENCE",
                      payload: function(payload) {
                        return false
                      }
                    },
      
                    {
                      fire:"SHOW_ALERT",
                      payload: function(payload) {
                        return {
                          type: "notification",
                          title: "Porten",
                          message: "Der er nogen ved porten!"
                          }
                      },
                    }
                  ],
                },
      		  {
      			trigger: "OPEN_GATE",
      			fires: [
      				exec: "home/pi/open_gate.py"
      			],
      		  
      		  
      		  },
              ]
            }
      },
      

      What is the correct syntax to fire a script?

      posted in General Discussion
      M
      MilkShake
    • Syntax of MMM-NotificationTrigger

      Hi,
      I am having difficulties with the syntax of MMM-NotificationTrigger. I have this syntax working (semi):

      {
      module: "MMM-NotificationTrigger",
            config: {
              triggers:[
                {
                  trigger: "PLAY_SOUND",
                  fires: [
                    {
                      fire:"USER_PRESENCE",
                      payload: function(payload) {
                        return false
      
                      }
                    },
      
                    {
                      fire:"SHOW_ALERT",
                      payload: function(payload) {
                        return {
                          type: "notification",
                          title: "Porten",
                          message: "Der er nogen ved porten!"
                          }
                      },
                    }
                  ],
                },
      
              ]
            }
      },
      

      I need to add a trigger using webhook for the notification “Open_Gate” that fires a local script. Every time I change the syntax it seems to get broken. Can anyone help?

      posted in General Discussion
      M
      MilkShake
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 2 / 7