Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 923 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 923 Bytes

NHTMeister

Telegram bot to send navigation instructions to subscribers for PreCom and P2000 messages.

Set-up

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.

Adding Capcodes

Simply modify the array in capcodes.json.

PreCom Webhook Poller

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

P2000 RSS Poller

You can also poll a P2000 RSS feed, simply add p2000-rss to POLL_METHODS.

FLEX-WS

To be documented :')