jakowenko / double-take-hassio-addons

Double Take Hass.io Add-ons
https://github.com/jakowenko/double-take
104 stars 45 forks source link

Implement a CompreFace HA Addon #4

Closed bentasker closed 3 years ago

bentasker commented 3 years ago

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:

By 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

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

Sangoku commented 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.

jakowenko commented 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.

Jump over to our Discord server and I can try to help you.

jakowenko commented 3 years ago

@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.