Giter Club home page Giter Club logo

leftern's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.