No Description
François Régnier 70578b0e27 oups 4 years ago
build init 4 years ago
dist init 4 years ago
velib init 4 years ago
velib.egg-info init 4 years ago
www init 4 years ago
MANIFEST.in init 4 years ago
README.md init 4 years ago
setup.cfg init 4 years ago
setup.py init 4 years ago

README.md

Velib stat web site

written in python twisted and javascript from various howto and samples
We propose a serie of online tools to monitor the activity of Velib in Paris:

- json from sqlite3 db and various calculations on the data accumulated

- Instant activity with bikes and availability
- movement patterns by stations 
  * with a vision of the place of departure and arrival of uses 
      * where you deduct the business users

In progress:

- WMS using mapnik to publish data from shapefiles (unused in the example website)
- Calculations of data aggregation on the grid
  - simple aggregation on a tile
  - calculations in the neighborhood grid
  - aggregation of the neighborhoods in slippery area
    - centroids slippery
  - acceleration time

Usage example:

>>> from velib import velib
>>> velib()

Parameters:

Create a portal.cfg with key value like that:

   css:www/css
   js:www/js
   www:www
   port:8880

Install:

aptitude install python-setuptools
aptitude install python-twisted
python setup.py install

Launch web server on port 8880:

velib

Test with web brother:

 http://fregnier.fr:8880

 Request json data:
         sum of movements by time segment:
     http://localhost:8880/movements?from=136750000&to=1367514303

     30 minutes segments on a day with activity:
     http://localhost:8880/segments?day=1-5-2013

     all stats data for one station
     http://localhost:8880/station?id=901

     all stats data for a list of stations
     http://localhost:8880/station?id=901,1001

This code is under GPL licence