hes-score

0.1.1 • Public • Published

Home Energy Saver API

http://hes.lbl.gov/

This is a simple to use node.js API interface for the HES SOAP based API.

Using in your project

  • npm install hes-score
      require("hes-score")(zip, details, (response) =>
        console.log response
      )

Using the demo file

  • EXPORT HES_ID="you_key";
  • npm install
  • npm start

Example

This is just a proof of concept example for how you can use this API interface. The basic idea is as follows.

homeScore ZIPCODE, [{
  inputTableName: 'whole_house_input',
  inputColumnName: 'floorArea'
  s_value: '1800'
}], (data, error) ->
  throw(error) if (error)
  console.log data

API

Package Sidebar

Install

npm i hes-score

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • samccone