~/talk

Catching the bus on time -- Using Python, a Pebble Watch and (kind of) Open Data

Talkat PyOhio 2015 · 2015-08-01..08-02· [python, pwa]
links:none on file
slides:none on file

Built system scrapes RTA’s hidden POST endpoints discovered in the browser network tab, uses Python requests to poll RTA POST endpoints and logs predicted and scheduled times every minute into Postgres via psycopg2, exposes a simple JSON API (Flask/horsemeat) and renders a CloudPebble JavaScript app that displays minutes until bus on a Pebble watch for four local stops. It runs reliably; week-long logs show six instances over 30 minutes late and a maximum delay of 1h25m. Code and DB dump are on GitHub for reuse and extension.

AI-written summary · about

  1. 0:00Intro
  2. 0:23Problem: Catching the Bus
  3. 1:14MAP!
  4. 3:52So how do we make it better? Real time arrival times could helpt in 2012, RTA (Cleveland's public transit operator) added GPS to all of their buses
  5. 5:31Actually catching the bus
  6. 6:35Where we stand
  7. 6:56WWDTD (what would Dick Tracy Do)
  8. 7:26Enter Python and the Pebble
  9. 8:20Pebble Watch con't
  10. 9:02Step 1: Python Webapp
  11. 12:14NextConnect Response
  12. 13:06Getting data into Python
  13. 13:23Python request
  14. 14:25Using the data
  15. 16:00Database Tables
  16. 19:46Start filling our database
  17. 20:36Putting it together
  18. 21:20Automate it
  19. 22:34On to the Python API . For the simplest scenario, we'll need a webapp that can handle one request with one arguments
  20. 25:15Enter: The Pebble Watch
  21. 26:01Cloud Pebble
  22. 27:50App.js
  23. 29:58Select a Menu Item
  24. 32:48Some analytics
  25. 34:17Questions / Comments? • Project link - make it better if you want!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.