AKA – why do it the hard way when you can do it the easy way?
So, I know it’s been around for a fairly long time, but I’m a busy guy, so I’m just getting around to it. But, in under 20 minutes with pipes, I was able to throw together a “pipe” that will sort through the USGS’s mountain of data and tell me what the current flow of the Animas river through Durango, Colorado is.
There’s just no way to sort through data by hand this quickly. Pipes makes it easy to aggregate information. Now that’s web 3.0 for you.
By the way, here’s the PHP code I used to fetch the flow. Feel free to throw this code into your own site to show the current flow. Go go yahoo pipes!
$response = file_get_contents('http://pipes.yahoo.com/pipes/pipe.run?_id=augM3IDI3RGi4U7B1L3fcQ&_render=php');
$phpobj = unserialize($response);
$cfs = $phpobj['value']['items']['0']['description'];