No Description

Olivier Marty b14e279e6b Typo in README.md 8 years ago
rapport 77c276ea08 Refine report 8 years ago
.gitignore a9394b6257 Update .gitignore 8 years ago
README.md b14e279e6b Typo in README.md 8 years ago
class_xml.py baf4232bb0 Add doc for parameters data 8 years ago
client_secret.json 31773fc91f client_secret.json updated 8 years ago
config.py ec88c41467 Demo : show the name of sources 8 years ago
demo.py ec88c41467 Demo : show the name of sources 8 years ago
event.py bb5bc74316 Add dummy parser for gmail 8 years ago
find.py 3962f205ce Add SourceProvider : phase 2 8 years ago
gcal.py 616844fffd Add message in gmail.py 8 years ago
geocoding.py 52df4c1b9c Keep stations 100 meters worse 8 years ago
gmail.py 616844fffd Add message in gmail.py 8 years ago
gmail_msg.py bb5bc74316 Add dummy parser for gmail 8 years ago
main.py 80fae1b025 Add map.py + take into account transilien in README.md and report" 8 years ago
map.py 80fae1b025 Add map.py + take into account transilien in README.md and report" 8 years ago
notification.py 9c72714cfd Add a tag before notifications 8 years ago
ratp.csv f5d2891341 Fix TVM and co treated as a tram 8 years ago
ratp_preprocessing.py f5d2891341 Fix TVM and co treated as a tram 8 years ago
requirements.txt fa1c0c7e40 Add requirement pytz 8 years ago
saxon.jar c89843940c Initial commit : saxon, tagsoup, ratp metro 8 years ago
slides.pdf 366fba2248 Add slides 8 years ago
source.py 80fae1b025 Add map.py + take into account transilien in README.md and report" 8 years ago

README.md

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.