Skip to content

Commit

Permalink
Moving to a pre-build API
Browse files Browse the repository at this point in the history
  • Loading branch information
terafin committed Oct 6, 2024
1 parent 3b3c76f commit 010adab
Show file tree
Hide file tree
Showing 8 changed files with 194 additions and 899 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN mkdir -p /usr/node_app
COPY . /usr/node_app
WORKDIR /usr/node_app
RUN apt-get update ; apt-get install -fy git python make g++ npm curl dirmngr apt-transport-https lsb-release ca-certificates
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash
RUN apt-get update ; apt-get -fy install nodejs

RUN npm install --production
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This is a simple docker container that I use to bridge UniFi protect with my MQTT bridge.

Please note this only works with UniFi protect 5.0 and greater

I have a collection of bridges, and the general format of these begins with these environment variables:

```
Expand All @@ -25,10 +27,9 @@ services:
image: ghcr.io/terafin/mqtt-unifi-protect-bridge:latest
environment:
LOGGING_NAME: mqtt-unifi-protect-bridge
PROTECT_URL: URL_FOR_UNIFI_PROTECT_LOGIN (eg: https://10.0.1.2:7443)
PROTECT_URL: URL_FOR_UNIFI_PROTECT_LOGIN (eg: 10.0.1.2)
USERNAME: YOUR_USERNAME_FOR_ABOVE_URL
PASSWORD: YOUR_PASSWORD_FOR_ABOVE_URL
POLL_FREQUENCY: 1
TOPIC_PREFIX: /your_topic_prefix (eg: /motion)
MQTT_HOST: YOUR_MQTT_URL (eg: mqtt://mqtt.yourdomain.net)
(OPTIONAL) MQTT_USER: YOUR_MQTT_USERNAME
Expand Down
92 changes: 0 additions & 92 deletions lib/auth.js

This file was deleted.

101 changes: 0 additions & 101 deletions lib/protect.js

This file was deleted.

5 changes: 0 additions & 5 deletions lib/utils.js

This file was deleted.

Loading

0 comments on commit 010adab

Please sign in to comment.