Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cibernox/dahuadoorbell2mqtt
Node.js script that connects to a Dahua Video Doorbell and broadcasts to MQTT events fired by it.
https://github.com/cibernox/dahuadoorbell2mqtt
Last synced: 2 months ago
JSON representation
Node.js script that connects to a Dahua Video Doorbell and broadcasts to MQTT events fired by it.
- Host: GitHub
- URL: https://github.com/cibernox/dahuadoorbell2mqtt
- Owner: cibernox
- Created: 2020-12-28T23:38:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-31T00:25:23.000Z (about 4 years ago)
- Last Synced: 2024-10-18T07:57:28.435Z (3 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DahuaDoorbell2MQTT
Listens to events from Dahua VTO unit and publishes them via MQTT Message[MQTT Events](./MQTTEvents.MD)
[Supported Models](./SupportedModels.md)
## Environment Variables
```
DAHUA_VTO_HOST: Dahua VTO hostname or IP
DAHUA_VTO_USERNAME: Dahua VTO username to access (should be admin)
DAHUA_VTO_PASSWORD: Dahua VTO administrator password (same as accessing web management)
MQTT_BROKER_HOST: MQTT Broker hostname or IP
MQTT_BROKER_PORT: MQTT Broker port, default=1883
MQTT_BROKER_USERNAME: MQTT Broker username
MQTT_BROKER_PASSWORD: MQTT Broker password
MQTT_BROKER_TOPIC_PREFIX: MQTT Broker topic prefix, default=DahuaVTO
```## Run manually
Requirements:
* All environment variables above
* Node.js```
node DahuaVTO.js
```## Changelog
* 2020-12-28: Initial version with Node.js
## Credits
All credits goes to @riogrande75 who wrote that complicated integration and @elad-bar who wrote the integration with MQTT in PHP.Original code can be found in @riogrande75/Dahua and @elad-bar/DahuaVTO2MQTT.
This is basically a port to Node.js properly annotated with comments so it's easier for any contributor to help.
I might port it to Rust next for max performance (and fun).