Skip to content

nullbyto/wimt-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Where Is My Transit Bot (wimt-bot)

This is a telegram chat bot that tracks nearby transit stations (bus or train), where you select a transit that you want to track and get information about, like the arrival, departure and location of the transit in the map, with a timer function to notify you every x minutes.

Works only in Germany!! Since it uses a wrapper API around the Deutsche Bahn API https://v5.db.transport.rest

Features

  • Display nearby transit stations
  • Shows transit arrival and departure times + delays
  • Track selected transit (for example bus) when it arrives with
  • Timer to send updated information about the transit every x minutes
  • Location of the transit on the map

Setup

You will need to setup a .env file with these variables:

TELOXIDE_TOKEN="<TOKEN>"
LOCATIONIQ_TOKEN="<TOKEN>"
USER_DATA_PATH="./userdata.json"

where:

  • TELOXIDE_TOKEN is the telegram API token that you receive when creating a bot on telegram.
  • LOCATIONIQ_TOKEN is the token for the API for the service from LocationIQ to fetch geocode data of the address provided by the users.
  • USER_DATA_PATH is the path to where you want to store the users data in JSON format.

About

Transit tracker telegram bot for Germany

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages