florian-h05 / doorbird-mdns-announcer

Announce a DoorBird video doorbell on the network via mDNS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DoorBird mDNS Announcer

This script announces a DoorBird video doorbell via mDNS. It is meant to be used if the DoorBird is on a different subnet or VLAN and mDNS discovery therefore fails.

mDNS discovery is required to work for the DoorBird Android and iOS apps.

Install

  1. Ensure you have python3 and pip installed.
  2. cd into the /opt folder with cd /opt
  3. Clone the git repo with sudo git clone https://github.com/florian-h05/doorbird-mdns-announcer.git
  4. Change ownership to your user with sudo chown -R $USER:$USER doorbird-mdns-announcer
  5. cd into that folder with cd doorbird-mdns-announcer
  6. Install dependencies with pip install -r requirements.txt
  7. Set up the systemd service file (nano doorbird-mdns-announcer.service):
    • Replace %USER with your username.
    • Replace %ANNOUNCE with your DoorBird's mac and ip, format is mac/ip
    • Optionally set up the interfaces.
  8. Copy the systemd service file with sudo cp doorbird-mdns-announcer.service /etc/systemd/system
  9. Enable and start the service with sudo systemctl enable --now doorbird-mdns-announcer

Usage

usage: announcer.py [-h] -a ADVERTISE [-i INTERFACE]

options:
  -h, --help            show this help message and exit
  -a ADVERTISE, --advertise ADVERTISE
                        <Required> Advertise DoorBird device, format is <mac>/<ipv4>
  -i INTERFACE, --interface INTERFACE
                        Interfaces to advertise from given by their IP address(es)

About

Announce a DoorBird video doorbell on the network via mDNS.

License:MIT License


Languages

Language:Python 100.0%