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 9
    • Posts 63
    • Groups 0

    Posts

    Recent Best Controversial
    • 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
    • RE: Doorbird IP camera integration

      @Sean Thanks Sean. I will look into that!

      For the first question, the notification URL works when fired from a browser. I think it is the Doorbird that does not actually make the HTTP call, so I have contacted Doorbird.

      posted in General Discussion
      M
      MilkShake
    • Doorbird IP camera integration

      Hi All,
      I need some help trying to integrate my gates IP camera funtions into the MM. The camera is a Doordbird D101S. It contains a relay to open the gate as well.

      The Doorbird has a defined, not fully open, API. It is able to send HTTP calls on events.

      https://www.doorbird.com/api

      I installed the MMM-Sounds module and I am trying to get the Doorbird to notify the Mirror with this http call using the default buzz.wav file.

      http://MM_IP:8080/remote?action=NOTIFICATION&notification=PLAY_SOUND&payload=%7B%22sound%22%3A%22buzz.wav%22%2C%22delay%22%3A100%7D

      However it is not working.

      Does anyone have experience with this?

      Second, my MM has Google Assistant installed. What would it take to make a custom command “Open Gate” that just fires a HTTP post to the gate?

      Best Regards
      MilkShake

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

      Yeah, I’m not so sure. I can’t get it to work :)

      posted in Show your Mirror
      M
      MilkShake
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 4 / 7