Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.33 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.33 KB

README

Fetching data such as velib usage and weather to be able to predict velib availability.

Status

Build Status Code Climate Dependency Status

Warning

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)

Development

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

Deployment

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