SegFault42 / Tgv_Max_Alert

🚆Bot for alert when tgvmax seat is available. 🕺

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TGV MAX ALERT

Usage :

$> git clone https://github.com/SegFault42/Tgv_Max_Alert
$> cd Tgv_Max_Alert
$> cp secret_template.json secret.json

Éditer le fichier secret Json avec vos informations.

Si vous souhaitez être notifie par email remplir les champs email avec un compte mail dans "my email".

Si vous souhaitez être notifie par SMS, remplir les champs SMS (fonctionne uniquement avec free mobile).

Configuration de la notification par SMS

-h, --help            		show this help message and exit
--date DATE			date format : YYYY-MM-DD
--hour HOUR			hour format : 11:18. Monitor between 11h00 to 18h00
--origine ORIGINE		train station origine
--destination DESTINATION	train station destination
--alert ALERT         		SMS/EMAIL/NO

Exemple pour un trajet entre Paris et Marseille :

python main.py --date="2018-03-26" --hour="6:20" --origine="PARIS (intramuros)" --destination="MARSEILLE ST CHARLES" --alert="EMAIL"

Lien avec tous les noms des différentes gares

Docker build

docker build -t tgvmax .

Docker run

docker run -it \
  -v $(pwd):/folder \
  tgvmax "@"

About

🚆Bot for alert when tgvmax seat is available. 🕺


Languages

Language:Python 98.0%Language:Dockerfile 2.0%