You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So Ideally docker command would look like the below.
docker run --name hubitat2prom -p:5000:5000 -e HE_URI=http://192.168.1.12/apps/api/1006/devices -e HE_ACCESS_TOKEN=123456 -e HE_ATTRIBUTES=battery,humidity,illuminence,level,switch,temperature proffalken/hubitat2prom:latest
screenshot below showing what the current env var for this docker shows.
The text was updated successfully, but these errors were encountered:
Specially being able to inject the access token via an environment variable. It would make it easier to run this on container orchestration platforms (Kubernetes, Nomad) securely.
Instead (or addition) to having to have a yml file control endpoint, API Key, and optional attributes, let them be passed through docker commandline. The app in existing state already has environment variables, they just dont seem to be used. A good sample project that uses these is below.
https://hub.docker.com/r/scyto/unifibrowser
https://grafana.com/docs/grafana/latest/installation/docker/
So Ideally docker command would look like the below.
docker run --name hubitat2prom -p:5000:5000 -e HE_URI=http://192.168.1.12/apps/api/1006/devices -e HE_ACCESS_TOKEN=123456 -e HE_ATTRIBUTES=battery,humidity,illuminence,level,switch,temperature proffalken/hubitat2prom:latest
screenshot below showing what the current env var for this docker shows.
The text was updated successfully, but these errors were encountered: