Samfox2 / homebridge-videodoorbell

Video-Doorbell plugin based on homebridge-camera-ffmpeg for Homebridge.
Apache License 2.0
95 stars 17 forks source link

Notification delay #45

Closed uspino2 closed 4 years ago

uspino2 commented 4 years ago

The plugin works great. I'm triggering a notification with this http call:

http://10.10.12.241:5005 The notification takes between 2 to 3 seconds to show up. With the Doorbird plug-in (which I think is based in the same code) the notification is pretty much instant. Is there something I might be doing wrong? Thanks!

Samfox2 commented 4 years ago

Strange. Is it the same with the trigger button?

uspino2 commented 4 years ago

Little faster with the button, but things have improved after a full Hombridge restart. Still not quite as instant as Doorbird plugin though. Should the http call have ant headers in it?

Samfox2 commented 4 years ago

Http call does not need a header. The switch triggers instantly, a faster reactian is not possible (from homekit site). Do you use still image source? Generating the pic could cause the slowdown.

uspino2 commented 4 years ago

It might be two different things. The Doorbird is in local LAN and the Video Doorbell using your plug is in a different LAN. Also, Doorbird jpg is 640x480 and my other doorbell only serves 1280x720 jpg. I'll run some tests when I'm at the same LAN and let you know. But it does not seem related to your plugin, which works great.

Samfox2 commented 4 years ago

Yes, if you reduce the resolution the image would also be ready much faster.

uspino2 commented 4 years ago

That was correct: delay was due to snapshot resolution + out of lan connection. Thanks!

Samfox2 commented 4 years ago

No problem.