ioBroker.doorbird icon indicating copy to clipboard operation
ioBroker.doorbird copied to clipboard

Suggestion to use Doorbird client library

Open ihrigb opened this issue 1 year ago • 3 comments

I'd like to suggest to move this implementation to my client library for the Doorbird API: https://github.com/ihrigb/node-doorbird. I will try to find some time to work on a proposal during the holidays.

ihrigb avatar Nov 28 '23 08:11 ihrigb

Good idea!

Schmakus avatar Nov 28 '23 10:11 Schmakus

Hi, is it possible to get the favourites? I se only set favourite and update favourite, but how can I update one if I don't know the id of them? Second question: for doorbell and motion, no favourites are needed anymore, correct?

Schmakus avatar Dec 20 '23 08:12 Schmakus

The library has a listFavorites method (https://github.com/ihrigb/node-doorbird/blob/main/src/index.ts#L534). Seems like I forgot to document this in the README. For your second question: The library comes with a UDP socket that listens on either of Doorbird's UDP ports and can handle incoming broadcasts (for ring and motion events). The problem sometimes is that this library is often used in Docker environments with a bridge network. In these circumstances, UDP broadcast messages are not forwarded to the container and hence the message will not reach the socket. For that, either another network configuration (host or macvlan) are necessary, or the registration of a favorite is handy.

ihrigb avatar Dec 20 '23 08:12 ihrigb