Real-time Bicing data & analysis
Set of scripts to get real-time Bicing information (Barcelona shared bike service)
Check lastest updates at github.io site
bicing.py :
Gets bicing info of all stations and saves it to influx database (needs influx server *)
Grafana package is recomended to show the logged data (you can change the database server to log the data if you want)
bicingInfo.py :
Gets bicing (Barcelona shared bike service) information data from citybik API and shows it visually using tkinter module
bicingAnalytics.py :
This script uses influx database data generated by bicing.py script
This script creates a csv file with an analysis of station usage ratio. Unbalanced means a regular lack of bikes / free slots
(0% – 50% optimal station) (50% – 75% balanced station) (75% – 100% unbalanced station)
Resoruces (nov 3 2019):
Citybik API site :
Grafana docs :
Influx docs :
https://docs.influxdata.com/influxdb/v1.7/introduction/getting-started/
Used python3 modules :
requests | json | influxdb | time | tkinter
