mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
18 lines
446 B
Markdown
18 lines
446 B
Markdown
# lego-monitoring
|
|
|
|
## Prerequisites
|
|
|
|
* `pacman -S libolm`
|
|
* `pip -r requirements.txt`
|
|
|
|
## Configuring
|
|
|
|
* Run `alerting/login.py` once to generate credentials file
|
|
* Invite the bot account to the room (you have to accept the invite manually)
|
|
* Set room ID in `alerting/common.py`
|
|
|
|
## Running
|
|
|
|
* `prettyprint.py` -- check and print all sensors
|
|
* `service.py` -- launch service
|
|
* `lego-monitoring.service` is a systemd unit that starts `service.py`
|