Read the statement by Michael Teeuw here.
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.
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¬ification=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 -
@MilkShake
For the second question, the easiest way is using IFTTT. If your IoT supports IFTTT or WebRequest Endpoint, Just make an IFTTT applet (THIS
for Assistant Query,THAT
for 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.
-
Dear @MilkShake
I see that you’ve configured something in
visite http
menu.
But you have to configure the planning too.Go to
admin-> calendrier sonnette
and clic on the left onappel http
.
Then you’ll be able to define a planning.I hope it can help !
Bye -
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?
-
@MilkShake
Yes for scheduleFor 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 :)
-
@MilkShake
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.