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
    • RE: MMM-NotificationTrigger

      @Sean I got it to work using:

      {
            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!"
                      },
                    },
                  ],
                },
              ]
            }
       },
      

      Thanks for helping!

      posted in System
      M
      MilkShake
    • RE: MMM-NotificationTrigger

      @Sean Yeah, I see that. When I fire this

      http://MM_IP:8080/remote?action=SHOW_ALERT&message=Der%er%nogen%ved%porten!&title=PORT&timer=10&type=alert

      it displays the alert.

      posted in System
      M
      MilkShake
    • RE: MMM-NotificationTrigger

      @Sean I also tried that. The Alert does not show up in MM. It wakes the screen with USER_PRESENCE and plays the sound, but no Alert.

      posted in System
      M
      MilkShake
    • RE: MMM-NotificationTrigger

      Hi Everyone,
      Can some help me create a Notification trigger that fires multiple commands?

      So I have a gate that calls PLAY_SOUND when the gate button is pressed. Besides playing the sound I would like to show an alert and wake up the screen.

      So playing the sound and wakening the screen works. But I would like to add an Alert as well. The working config is like this:

      {
            module: "MMM-NotificationTrigger",
            config: {
              triggers:[
                {
                  trigger: "PLAY_SOUND",
                  fires: [
                    {
                      fire:"USER_PRESENCE",
                      payload: function(payload) {
                        return false
                      },
                    },
                  ],
                },
              ]
            }
       },
      

      Now, if I wan’t and alert on the same event, I tried this:

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

      But it does not work.

      Any help appreciated…

      Best
      MilkShake

      posted in System
      M
      MilkShake
    • RE: Doorbird IP camera integration

      @mmourcia would be an option, thanks. I will check it out! My initial thought was that the code executing the wavfile, would also be able to execute a shell script on the PI, but a HTTP listener would also do the job.

      Evidently, I can only set the Doorbird to do ONE http call pr event, otherwise a tweaked version of the monitor on http call (MMM-Remote-Control) could be used together with the call for playing a sound.

      posted in General Discussion
      M
      MilkShake
    • RE: Doorbird IP camera integration

      @mmourcia And I need to find out how to run a script on the same event :)

      posted in General Discussion
      M
      MilkShake
    • RE: Doorbird IP camera integration

      @mmourcia Hey man, just tested, it works! Why would the schedule for a HTTP call not be allowed in the scheduler by default is beyond me! :)

      posted in General Discussion
      M
      MilkShake
    • RE: Magic mirror first try (France, ~Lille)

      Thanks man. I think I’ll keep the feed open for the camera and use the MMM-Sounds for notification when someone pushes the button. That is, if I can get it to work :)

      But a nice way to get the module data, thanks!

      posted in Show your Mirror
      M
      MilkShake
    • RE: Doorbird IP camera integration

      Hi mmourica and thanks for replying!

      I guess Sonnette is a schedule? So I made sure that the schedule for the notication is all active. I will test it later.

      Can I ask where you found the documentation for the HTTP call for a specific sound file in MMM-Sounds?

      posted in General Discussion
      M
      MilkShake
    • RE: Magic mirror first try (France, ~Lille)

      It is in fact the index of the module in your conf. You must guess it

      Guess it? Index of the module, is that the modules position within config.js?

      Could you give me a hint to find that number?

      posted in Show your Mirror
      M
      MilkShake
    • 1 / 1