A simple Telegram
Bot that tells you the nearest car parking available in Turin city area (Italy), just by providing your current location.
The Bot is built with Node.js
and Express
, exposing a webhook to process the data sent by Telegram
.
The car parking informations are available thanks to the Open Data provided by 5T
, that "manages the Mobility and Infomobility Centre of the Torino metropolitan and Piedmontese area, as in-house company of the City of Torino and the Piemonte Regional Government".
The data are available in XML
format from this open endpoint: https://opendata.5t.torino.it/get_pk
start
: get the app up and runningtest
: run all thejest
tests availablelocaltunnel
: open a proxy connection from localhost to alocal tunnel
server | https://localtunnel.github.io/www/server:dev
: start the application with a proxy connection to alocal tunnel
server
This app uses environment variables
stored in a file called .env
: for security reasons, this file is not inside this repo and all the variables are injected during the build phase.
This is the structure of the file:
NAME=Torino Parking Bot
BASE_URL=https://torino-parking-bot.loca.lt
TOKEN=your-unique-telegram-token
The BASE_URL
variable could be set with any reverse proxy like ngrok
or local tunnel
.
The bot is currently available on Telegram and you can find it using @torino_parking_bot
username.