Fetching data such as velib usage and weather to be able to predict velib availability.
2017-12-22 : Since JCDecaux lost the deal on Velib, their API is no longer maintained, so this project is not usable anymore (until someone makes the change to call the new API)
You may use Vagrant or the app directly
Model annotations
bundle exec annotate -ik
Extract previous day data
psql -d cycling_pizza_dev -A -F"," -f tools/previous_day_velib.sql -o velib_2017-03-01.csv
Populate the holidays table
cd /var/app/current && bundle exec thor holiday:populate
Set up cronjobs to fetch stations and weather periodically
*/10 * * * * source /opt/elasticbeanstalk/support/envvars && cd /var/app/current && bundle exec thor stations:fetch
*/10 * * * * source /opt/elasticbeanstalk/support/envvars && cd /var/app/current && bundle exec thor weather:fetch