Skip to content

Instantly share code, notes, and snippets.

@waldoj
Created June 18, 2014 02:04
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 waldoj/8454efcf0c8b5d9f7ac8 to your computer and use it in GitHub Desktop.
Save waldoj/8454efcf0c8b5d9f7ac8 to your computer and use it in GitHub Desktop.
An imagined JSON response from a utility's API, specifying the rate per kWh for power now and over the next 24 hours. This provision of data would allow households to automatically adjust energy use in response to demand-based pricing.
[
{
"provider": "Dominion",
"url": "http://www.dom.com/",
"api_url": "http://api.dom.com/",
"documentation": "http://api.dom.com/docs/",
"state": "Virginia",
"rate": "12.3",
"units": "kWh",
"rate_units": "cents",
"rate_url": "https://www.dom.com/about/conservation/smart-pricing-plan-hm.jsp",
"rate_schedule": [
{
"time": "2014-06-17T19:00:00-05/PT3H",
"rate": "12.3"
},
{
"time": "2014-06-17T22:00:00-05/PT2H",
"rate": "8.5"
},
{
"time": "2014-06-18T00:00:00-05/PT10H",
"rate": "9.5"
},
{
"time": "2014-06-18T10:00:00-05/PT3H",
"rate": "15.3"
},
{
"time": "2014-06-18T13:00:00-05/PT3H",
"rate": "51.5"
},
{
"time": "2014-06-18T19:00:00-05/PT3H",
"rate": "15.3"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment