Here you will find the code I used to analyze and plot some waiting times for the bus 68 operated by RATP in Paris. Feel free to reuse and adapt with other lines.
Blog post is available at https://phyks.me/2018/12/suivi-des-passages-de-bus-a-partir-des-donnees-ouvertes-didfm.html.
bus_68_datapoints.pyis the data collection script (to be run by a crontask for instance).
bus_68_datapoints.sqlis a SQL dump of the SQLite database I have storing the data I collected. The data was collected from the STIF API (ODbL license).
Plot.ipynbis a Jupyter Notebook to analyze the data.
This code is licensed under an MIT license.