Telegram bot to send navigation instructions to subscribers for PreCom and P2000 messages.
Copy .env.dist to .env, and copy capcodes.json.dist to capcodes.json.
The minimal setup requires you to set your bot token in the environment variable TELEGRAM_TOKEN and to specify at least one poll method in POLL_METHODS.
Simply modify the array in capcodes.json.
You can enable the PreCom Webhook Poller by adding precom-hook to POLL_METHODS.
You can specify a bind host and port in PRECOM_HOST and PRECOM_PORT.
To prevent unauthorized alerts, you should set up a strong token in PRECOM_TOKEN.
The notification URL is as followed:
http://PRECOM_HOST:PRECOM_PORT/notify?token=PRECOM_TOKEN
You can also poll a P2000 RSS feed, simply add p2000-rss to POLL_METHODS.
To be documented :')