Skip to content

Commit

Permalink
Merge pull request #171 from jakowenko/beta
Browse files Browse the repository at this point in the history
v1.7.0
  • Loading branch information
jakowenko committed Nov 27, 2021
2 parents 893328f + 456a6ff commit 252cbce
Show file tree
Hide file tree
Showing 31 changed files with 11,826 additions and 2,352 deletions.
22 changes: 15 additions & 7 deletions .build/entrypoint.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
#!/bin/bash

PATHS="";
if [ "$CONFIG_PATH" ]
then
mkdir -p "$CONFIG_PATH"
[ -f "$CONFIG_PATH"/config.yml ] || echo $'# Double Take' > "$CONFIG_PATH"/config.yml
exec nodemon -e yml --watch "$CONFIG_PATH" -q api/server.js
PATHS="$PATHS --watch "$CONFIG_PATH"";
else
mkdir -p ./.storage/config
[ -f ./.storage/config/config.yml ] || echo $'# Double Take' > ./.storage/config/config.yml
exec nodemon -e yml --watch ./.storage/config --watch ./config.yml -q api/server.js
fi
PATHS="$PATHS --watch ./.storage/config";
fi

if [ "$SECRETS_PATH" ]
then
PATHS="$PATHS --watch "$SECRETS_PATH"";
elif [ "$CONFIG_PATH" ]
then
PATHS="$PATHS --watch ./.storage/config";
fi

node -e 'require("./api/src/constants")()'
exec nodemon -e yml,yaml $PATHS -q api/server.js
3 changes: 1 addition & 2 deletions .develop/entrypoint.dev.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

mkdir -p ./.storage/config
[ -f ./.storage/config/config.yml ] || echo $'# Double Take' > ./.storage/config/config.yml
node -e 'require("./api/src/constants")()'
exec npm run api
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ There's a lot of great open source software to perform facial recognition, but e
- Publish results to MQTT topics
- REST API can be invoked by other applications
- Disable detection based on a schedule
- [Home Assistant Add-on](https://github.com/jakowenko/double-take-hassio-addons)
- [Home Assistant Add-ons](https://github.com/jakowenko/double-take-hassio-addons)

### Supported Architecture

Expand Down Expand Up @@ -276,6 +276,7 @@ mqtt:
host:
username:
password:
client_id:
topics:
# mqtt topic for frigate message subscription
Expand Down Expand Up @@ -525,6 +526,9 @@ logs:
```yaml
# ui settings (default: shown below)
ui:
# base path of ui
path:
pagination:
# number of results per page
limit: 50
Expand All @@ -540,6 +544,29 @@ ui:
lines: 500
```

## Storing Secrets

**Note:** If using one of the [Home Assistant Add-ons](https://github.com/jakowenko/double-take-hassio-addons) then the default Home Assistant `/config/secrets.yaml` file is used.

```yaml
mqtt:
host: localhost
username: mqtt
password: !secret mqtt_password
detectors:
compreface:
url: localhost:8000
key: !secret compreface_key
```

The `secrets.yml` file contains the corresponding value assigned to the identifier.

```yaml
mqtt_password: <password>
compreface_key: <api-key>
```

## Development

### Run Local Containers
Expand Down
Loading

0 comments on commit 252cbce

Please sign in to comment.