MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. MilkShake
    3. Best
    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 9
    • Posts 63
    • Groups 0

    Posts

    Recent Best Controversial
    • 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
    • 1 / 1