Update doc, drop config
This commit is contained in:
parent
d040c1ddf5
commit
8236053032
23
README.md
23
README.md
@ -2,19 +2,27 @@ VelibDataSet
|
|||||||
============
|
============
|
||||||
|
|
||||||
This code can be used to dump periodically all the available data from the
|
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
|
Velib API, the bike sharing system in Paris.
|
||||||
license.
|
|
||||||
|
It is basically a wrapper around [pybikes](https://github.com/eskerda/pybikes)
|
||||||
|
to dump values periodically in a SQLite database.
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
* Clone this repo.
|
* Clone this repo.
|
||||||
* Create an account to access the velib API: https://developer.jcdecaux.com/#/home.
|
* Install [pybikes](https://github.com/eskerda/pybikes).
|
||||||
* Copy `config.py.example` to `config.py` and set your API key there.
|
* Run `python2 velib.py`.
|
||||||
* Run `velib.py`.
|
|
||||||
|
_Note:_ For now, `pybikes` is only Python2 compatible.
|
||||||
|
|
||||||
|
|
||||||
## Dumped data
|
## 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
|
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/.
|
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
|
## Links
|
||||||
|
|
||||||
* Velib API: https://developer.jcdecaux.com/#/home
|
* Velib website: http://velib-metropole.fr/
|
||||||
* Velib website: http://velib.paris/
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Data is under [an Open Data license](https://developer.jcdecaux.com/#/opendata/license).
|
|
||||||
|
|
||||||
Code is released under MIT license.
|
Code is released under MIT license.
|
||||||
|
@ -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"
|
|
Loading…
Reference in New Issue
Block a user