No description
Find a file
Alex a4bbe835d3 Merge branch 'alert-sender' into 'main'
Alert sender service

See merge request lego/lego-monitoring!2
2024-06-16 20:47:43 +00:00
.vscode workspace settings 2024-06-16 16:18:54 +03:00
alerting stat consts instead of 0o600 2024-06-16 20:45:54 +00:00
misc alerting service 2024-06-16 16:18:25 +03:00
.gitignore alerting framework 2024-06-16 14:43:35 +03:00
lego-monitoring.service service unit 2024-06-16 16:37:37 +03:00
prettyprint.py alerting service 2024-06-16 16:18:25 +03:00
README.md service unit 2024-06-16 16:37:37 +03:00
requirements.txt alerting framework 2024-06-16 14:43:35 +03:00
service.py fix log entry 2024-06-16 17:03:48 +03:00

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