CI: add automatic builds
README: update roadmap
README: add dev guide
A simple bot program made to notify Matrix room(s) of HSL disruptions.
You can easily use the program by following those steps:
git clone https://git.jae.fi/jae/hsl-matrix-notifier.git
vim docker-compose.yml
And in the docker-compose.yml
file:
version: 3.9
services:
hslcheck:
build: ./hsl-matrix-notifier/
environment:
- MATRIX_TOKEN=supersecret
- MATRIX_HOMESERVER=matrix.server.tld
- HSL_NOTIFICATION_LANGUAGE=fi
And then do docker compose up -d
and you have now a working bot.
It will query the API every 12 hours.
Note: it is recommended to use a
.env
file instead of putting everything in thedocker-compose.yml
file.
Dev setup:
git clone https://git.jae.fi/jae/hsl-matrix-notifier.git
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
All set (don't forget to set your env variables with Matrix homeserver & token)!
Roadmap of the project: