Read the statement by Michael Teeuw here.
Doorbird IP camera integration
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.
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.
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?
For the second question, the easiest way is using IFTTT. If your IoT supports IFTTT or WebRequest Endpoint, Just make an IFTTT applet (
THISfor Assistant Query,
THATfor your device). Easy, and nothing more needed.
@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.
I see that you’ve configured something in
But you have to configure the planning too.
admin-> calendrier sonnetteand clic on the left on
Then you’ll be able to define a planning.
I hope it can help !
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?
Yes for schedule
For the doc I don’t really remember anymore. I had to deduce it from this page and from the native docs of modules
@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!
@mmourcia And I need to find out how to run a script on the same event
Then you should probably do that outside MM.
Maybe with a http listener like https://github.com/msoap/shell2http/blob/master/README.md ?
@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.