hjdhjd/homebridge-doorbird

New version pushed...

Closed this issue · 16 comments

@brownad - I pushed a big update through. I refactored the plugin, once more. 😄

It now supports all the modern Homebridge APIs, rewritten in TypeScript for better maintainability.

Highlights...

  • Audio support is automatically inferred. The plugin will validate whether the version of ffmpeg supports audio or not and act accordingly.
  • Night vision configuration settings to enable night vision in various scenarios of interest, either full-time or only at night. We infer day / night through the user's timezone.
  • Streamlined video and image configuration. This lays most of the foundation for two-way audio. I can't get the Doorbird API to accept a stream...once I do, I can move forward with it.
  • As a result of the above, image snapshots are now generated much more quickly, without the need for ffmpeg.
  • Simplified / removed some options that were no longer needed, and of course added new ones.
  • Updated the documentation...and created a new logo for the project, hope you like it.

Test it out and let me know your thoughts. I've been running this for a week or so without issues.

To install it...in case you don't know / aren't familiar with typescript...

clone the repo.
Hop into the repo directory and run:

npm run prepublishOnly

That'll install it locally. If you do npm -g install in that local directory, it'll symlink into the system's node_modules and you can just reboot homebridge to test it out.

My suggestion is that you push this out as v1.0.0...but entirely your call, of course.

👀 thanks @hjdhjd

This is fantastic, can't believe the customisations you added. If DoorBird ever implement HomeKit natively, sure they'll be watching this UX 👍

You're right, a v1.0.0 is a better idea for version now that its Major again

Thanks! Let me know if you have any questions or issues.

I was working on a similar project and forked a version of my own code to create this...figured it’d be a nice contribution back, and would update this plugin so it’s staged for two-way audio. I’m still reverse-engineering uploading any audio to the Doorbird via the API. Have you had any success with audio-transmit in the API?

Going to test it out today. It's a really amazing contribution, sets this up wonderfully. I'd only got as far as trying out the example with gstreamer as per the LAN API docs. what is failing to accept, is there a response from DB?

published BTW.

When you publish the plugin, npm effectively runs a "make clean" in your working directory.

If you just do npm run prepublishOnly in your working directory it'll re-transpile the plugin.

@brownad So the gstreamer example...did you get that working?

Ok sorted now, needed to close down homebridge completely

Glad to hear it.