Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 1017 Bytes

README.md

File metadata and controls

41 lines (22 loc) · 1017 Bytes

Is that Citi Bike station dead? When were bikes shifted from that station? When did station z go to 0 bikes or 0 docks?

This tracks the data in RRDtool.

(the largest station, called 8 Ave & W 31 St, just west of Penn Station on the evening of 6/15/2013)

  1. Install RRDtool, perhaps.

  2. Set WD in pollup to something handy.

  3. Run pollup once by hand ignoring the error.

  4. grep -v Planned grab | cut -d ' ' -f 1 | cut -c6-9 > id

  5. Edit file 'id' to remove any stations you do not care about. (Runs fine with all stations on any contemporary machine.) The left columns in 'grab' are the only key.

  6. Run massrrd.

  7. Have pollup run every minute from cron.

  8. Wait a few minutes.

  9. Run draw.

  10. Wait more.

  11. Go to 9.

If you recreate 'id' and new stations appear you'll see something like — ERROR: opening 's241.rrd': No such file or directory — when you run draw. Generate its RRD file by hand using the line from massrrd.