No description
Find a file
2016-03-09 10:28:59 +01:00
rapport Refine report 2016-02-22 18:46:08 +01:00
.gitignore Update .gitignore 2016-02-20 20:28:16 +01:00
class_xml.py Add doc for parameters data 2016-02-18 09:54:50 +01:00
client_secret.json client_secret.json updated 2016-02-21 19:04:13 +01:00
config.py Demo : show the name of sources 2016-02-22 18:46:08 +01:00
demo.py Demo : show the name of sources 2016-02-22 18:46:08 +01:00
event.py Add dummy parser for gmail 2016-02-21 22:00:50 +01:00
find.py Add SourceProvider : phase 2 2016-02-21 19:23:47 +01:00
gcal.py Add message in gmail.py 2016-02-22 18:46:08 +01:00
geocoding.py Keep stations 100 meters worse 2016-02-22 18:46:08 +01:00
gmail.py Add message in gmail.py 2016-02-22 18:46:08 +01:00
gmail_msg.py Add dummy parser for gmail 2016-02-21 22:00:50 +01:00
main.py Add map.py + take into account transilien in README.md and report" 2016-02-22 18:46:08 +01:00
map.py Add map.py + take into account transilien in README.md and report" 2016-02-22 18:46:08 +01:00
notification.py Add a tag before notifications 2016-02-21 18:33:08 +01:00
ratp.csv Fix TVM and co treated as a tram 2016-02-22 19:30:33 +01:00
ratp_preprocessing.py Fix TVM and co treated as a tram 2016-02-22 19:30:33 +01:00
README.md Typo in README.md 2016-03-09 10:28:59 +01:00
requirements.txt Add requirement pytz 2016-02-22 18:46:08 +01:00
saxon.jar Initial commit : saxon, tagsoup, ratp metro 2016-02-08 19:54:48 +01:00
slides.pdf Add slides 2016-02-22 18:46:08 +01:00
source.py Add map.py + take into account transilien in README.md and report" 2016-02-22 18:46:08 +01:00

Projet de Web Data Management 2016

Installation

Avec Python 3, faites :

git clone git@github.com:OlivierMarty/projet_wdm_2016.git
cd projet_wdm_2016
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

Configuration

Dans le fichier config.py, il faut configurer une API pour le service jcdecaux_vls (pour l'obtenir, aller à http://developer.jcdecaux.com/)

Pour la démo, il faut configurer une clef API Google Maps (https://developers.google.com/maps/documentation/javascript/get-api-key)

La section notifications de ce fichier permet de configurer la façon dont les notifications sont envoyées :

  • sendmail : envoie un mail (nécessite que la commande mail fonctionne)
  • print : affiche dans la console
  • free : envoie un SMS vie l'API free (voir http://mobile.free.fr/)

Utilisation

Pour lancer le programme :

python3 main.py

Les accès à Google Calendar et Gmail seront demandés au premier lancement.

Pour lancer la démo :

python3 demo.py

API utilisées

RATP, jcdecaux_vls (Vélib', Vélo'V, Bicloo, etc) et Transilien.

Une visualisation des stations connues est disponible : https://www.google.com/maps/d/edit?mid=z6ibLBE5MDrk.kudB9LIy9Cws&usp=sharing

Note

Le code gère peu d'exceptions : à la moindre erreur le programme plantera.