Created
July 8, 2013 18:07
-
-
Save ra/5951054 to your computer and use it in GitHub Desktop.
The Citi Bike JSON endpoint can be late or disappear altogether. Generally it's about 60 or 120 seconds late. (That's assuming you're sampling on the minute too.) That is, its executionTime is that much behind the actual time. Sometimes this increases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ for i in {1..10}; do sleep 4; date; curl -s http://citibikenyc.com/stations/json | tr "},{" " \n" | head -2 | tail -1; done | |
Mon Jul 8 17:38:20 UTC 2013 | |
"executionTime":"2013-07-08 01:36:01 PM" "stationBeanList":[ | |
Mon Jul 8 17:38:24 UTC 2013 | |
"executionTime":"2013-07-08 01:36:01 PM" "stationBeanList":[ | |
Mon Jul 8 17:38:28 UTC 2013 | |
"executionTime":"2013-07-08 01:38:01 PM" "stationBeanList":[ | |
Mon Jul 8 17:38:33 UTC 2013 | |
"executionTime":"2013-07-08 01:38:01 PM" "stationBeanList":[ | |
Mon Jul 8 17:38:37 UTC 2013 | |
"executionTime":"2013-07-08 01:38:01 PM" "stationBeanList":[ | |
Mon Jul 8 17:38:41 UTC 2013 | |
"executionTime":"2013-07-08 01:38:01 PM" "stationBeanList":[ | |
Mon Jul 8 17:38:45 UTC 2013 | |
"executionTime":"2013-07-08 01:38:01 PM" "stationBeanList":[ | |
^C | |
$ | |
$ for i in {1..10}; do sleep 4; date; curl -s http://citibikenyc.com/stations/json | tr "},{" " \n" | head -2 | tail -1; done | |
Mon Jul 8 17:51:33 UTC 2013 | |
Mon Jul 8 17:51:37 UTC 2013 | |
Mon Jul 8 17:51:41 UTC 2013 | |
Mon Jul 8 17:51:45 UTC 2013 | |
Mon Jul 8 17:51:50 UTC 2013 | |
Mon Jul 8 17:51:54 UTC 2013 | |
Mon Jul 8 17:51:58 UTC 2013 | |
Mon Jul 8 17:52:02 UTC 2013 | |
Mon Jul 8 17:52:07 UTC 2013 | |
Mon Jul 8 17:52:11 UTC 2013 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment