German telegram bot as notification in case of train delays.
1.6K
German telegram bot as notification in case of train delays. It's use marudor.de as hafas api.
/help Befehlsübersicht/myalarms Alle gesetzten Verspätungsalarme/newalarm Neuer Verspätungsalarm/cancel Abbrechen des aktuellen VorgangsAll parameters can be overwritten by ENV variable.
// config.json
{
"api": {
"endpoint": "https://marudor.de/api"
},
"telegram": {
"key": ""
},
"database": {
"dialect": "postgres",
"path": "host=myhost port=myport user=gorm dbname=gorm password=mypassword"
},
"loglevel": "trace",
"metrics": false
}
API_ENDPOINT marudor endpointTELEGRAM_KEY telegram bot key from Telegram BotFahterDB_DIALECT currently only mysql or postgresDB_PATH database config path.
user:password@/dbname?charset=utf8&parseTime=True&loc=Localsslmode=disable host=myhost port=myport user=gorm dbname=gorm password=mypasswordLOG_LEVEL loglevel info, trace, warn or errorversion: '3'
services:
bot:
image: "pkuebler/bahn-bot:latest"
environment:
- API_ENDPOINT=https://marudor.de/api
- TELEGRAM_KEY=
- DB_DIALECT=mysql
- "DB_PATH=user:password@/dbname?charset=utf8&parseTime=True&loc=Local"
- LOG_LEVEL=info
The Prometheus endpoint is located under :8080/metrics when enable_metrics is enabled in the Config.
ONLY for local tests a docker-compose overwrite file is included.
docker-compose -f docker-compose.yml -f docker-compose.prometheus.yml up
You can reach Prometheus on port 9090.
MIT
Content type
Image
Digest
Size
14.9 MB
Last updated
about 6 years ago
docker pull pkuebler/bahn-bot