Read the statement by Michael Teeuw here.
Doorbird IP camera integration
-
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.
-
Hi,
I used the MMM-Notification-Trigger to wake up the screen and display an alert when it receives the PLAY_SOUND event.Best
MilkShake -
@MilkShake
Could you post your conf ? -
You have to have AMk2 and the screen Addon by Bugsounet.
But basicly, I used the https string you gave me for the HTTP call to MMM-Sounds. That triggers the event PLAY_SOUND which can be picked up by MMM-Notification-Trigger:
{ module: "MMM-NotificationTrigger", config: { triggers:[ { trigger: "PLAY_SOUND", fires: [ //wakes up the screen using the screen addon { 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!", timer: 1000 } }, } ], }, ] } },
I’m struggling a bit with the multiple fires within one trigger, but I had it working at a certain point :)