A Slack bot that enables users to send physical notifications by controlling remote Tasmota switches via MQTT. Users can "bother" others by activating their registered switches.
- Install dependencies:
uv sync - Configure environment variables for Slack tokens and MQTT connection
- Run:
uv run app.py
One mechanism for managing environment variables is to put them into a .env file, and then reference that in the uv run command:
uv run --env-file .env app.py
Variables required to register a Slack application:
DANCER_SLACK_BOT_TOKENDANCER_SLACK_APP_TOKEN
Identify the initial admin user:
DANCER_ADMIN_USER
Configure access to mqtt service:
DANCER_MQTT_URL--mqtt://ormqtts://url of the MQTT serverDANCER_MQTT_USERNAMEDANCER_MQTT_PASSWORD
See https://airdancer.oddbit.com for additional documentation.