Skip to content

🚆Bot for alert when tgvmax seat is available. 🕺

Notifications You must be signed in to change notification settings

SegFault42/Tgv_Max_Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 🕺

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published