Skip to content

Instantly share code, notes, and snippets.

@davemenninger
Created December 6, 2013 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davemenninger/7827177 to your computer and use it in GitHub Desktop.
Save davemenninger/7827177 to your computer and use it in GitHub Desktop.
gets temperatures from odot road sensors around cincinnati
#!/bin/bash
curl 'http://www.ohgo.com/Dashboard.aspx/getRoadSensorMarkers' \
-X POST \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Accept-Language: en-US,en;q=0.5' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Host: www.ohgo.com' \
-H 'Pragma: no-cache' \
-H 'Referer: http://www.ohgo.com/dashboard/cincinnati' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Content-Length: 258' \
-d '{"pointRequestData":{"lowLongitude":-85.29291259765625,"highLongitude":-83.94708740234375,"lowLatitude":38.70790550075222,"highLatitude":39.61298338372197,"zoomLevel":10,"trueArea":"","routeDirection":"","routeName":"","regionList":"","citySide":""},"id":""}' \
| json_pp \
| grep 'Temp' \
| sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment