Closed bentasker closed 3 years ago
NIIIICE work! I am still stuck on the face box add-on. Cant paste the key from the config file. The run.sh script won't run in the container.
NIIIICE work! I am still stuck on the face box add-on. Cant paste the key from the config file. The run.sh script won't run in the container.
Jump over to our Discord server and I can try to help you.
@bentasker really great work on this, thank you so much. I tweaked the names of a few things and cleaned up the config slightly and added the CompreFace icon.
Thank you again, can't wait to let the CompreFace devs know you figured it out.
This takes the single container version of CompreFace (https://github.com/exadel-inc/CompreFace/issues/651) and makes adjustments so that it can be used as a HomeAssistant Add-on:
/data/
so that it persistsBy default, CompreFace is exposed on port 8000 - this can be changed in the Addon configuration page.
Postgres:
Although doing so is inefficient (because Postgres will continue to run inside the container) it is also possible to have the addon use an external Postgres (such as the Postgres Addon). To do so, the following environment vars need to be overridden
POSTGRES_URL
(e.g.jdbc:postgresql://29b65938-postgres:5432/frs
)POSTGRES_USER
(e.g.mydbuser
)POSTGRES_PASSWORD
(e.g.mydbpass
)POSTGRES_DB
(e.g.frs
)Although not implemented by this PR, it should be fairly trivial to add config to the addon and have the startup wrapper override these env vars as necessary