Skip to content

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

Notifications You must be signed in to change notification settings

coderiekelt/NHTMeister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :')

About

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

Topics

Resources

Stars

Watchers

Forks