doorsense
A project to surface the status of the UCC door via HTTP
Running
- Install requirements using
npm install
. - Copy
.env.example
to.env
and fill out required variables. - Run using
npm start
.
Alt: Docker
@pre: docker compose v2
- Edit compose.yaml to suit your need, mainly port and cokelog path & corresponding envvar
docker compose up -d --build
@notes:
- Cokelog has to mount as rw so
inotifywait
can pick it up and broadcast opener msg to mqtt broker. This might be unsafe. Considering original copy is onmerlo
it should be acceptable.