Skip to content

ra/leftern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Citi Bike JSON to RRDtool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages