NOT READY FOR USE, THE TRAINS ARE ONLY UPDATED 1/2 TIMES A DAY
$> 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 -t tgvmax .
docker run -it \
-v $(pwd):/folder \
tgvmax "@"