MQTT Client for home assistant binary_switch to show you are moving your mouse
| dist | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .npmignore | ||
| .releaserc | ||
| activeuser-mqtt.ts | ||
| docker-compose.yml | ||
| Dockerfile | ||
| example.env | ||
| index.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
@jojoxd/activeuser-mqtt
Add a binary_switch to your home assistant to see if you're using your linux computer!
How to use?
docker run --device=/dev/input/mice:/dev/input/mice:r docker.jojoxd.nl:5005/jojoxd-npm/activeuser-mqtt:latest
# OR
sudo npm run @jojoxd/activeuser-mqtt
Note: When running bare-metal, you WILL need to run this with root permissions, as we're opening an input device to poll.
See example.env for how to configure your environment.
You can use a .env file or push those variables directly into your environment