Update doc, drop config

This commit is contained in:
Lucas Verney 2018-01-15 14:02:39 +01:00
parent d040c1ddf5
commit 8236053032
3 changed files with 14 additions and 18 deletions

View File

@ -2,19 +2,27 @@ VelibDataSet
============
This code can be used to dump periodically all the available data from the
Velib API, the bike sharing system in Paris. The data are under an OpenData
license.
Velib API, the bike sharing system in Paris.
It is basically a wrapper around [pybikes](https://github.com/eskerda/pybikes)
to dump values periodically in a SQLite database.
## Usage
* Clone this repo.
* Create an account to access the velib API: https://developer.jcdecaux.com/#/home.
* Copy `config.py.example` to `config.py` and set your API key there.
* Run `velib.py`.
* Install [pybikes](https://github.com/eskerda/pybikes).
* Run `python2 velib.py`.
_Note:_ For now, `pybikes` is only Python2 compatible.
## Dumped data
**Important:** For the latest information about the dump available at
https://pub.phyks.me/datasets/velib/, please refer to
https://pub.phyks.me/datasets/velib/README.txt.
This script is used to dump the returned data from the Velib API every few
minutes. Dumps are available at https://pub.phyks.me/datasets/velib/.
@ -57,11 +65,8 @@ cat *.png | ffmpeg -f image2pipe -framerate 10 -i - output.mp4
## Links
* Velib API: https://developer.jcdecaux.com/#/home
* Velib website: http://velib.paris/
* Velib website: http://velib-metropole.fr/
## License
Data is under [an Open Data license](https://developer.jcdecaux.com/#/opendata/license).
Code is released under MIT license.

View File

@ -1,7 +0,0 @@
# Global common endpoints
api_endpoint = "https://api.jcdecaux.com/vls/v1/stations"
# Configuration
debug = True
api_key = "SET_YOUR_API_KEY_HERE"
contract = "Paris"

View File

@ -1,6 +1,4 @@
#!/usr/bin/env python3
from config import *
import datetime
import json
import os