0.1.0 • Published 10 years ago

hes-soap-client v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

hes-soap-client

client for the home energy survey api

usage

var hesSoapClient = require('hes-soap-client')

hesSoapClient({
  apiKey: process.env.apiKey,
  zipCode: 94103,
  area: 2800,
  year: 1940
}).then(console.log)

a barebone node.js client for the Home Energy Survey api

It is not a true soap implementation and instead only does what we need it to do: given a zipcode, square footage area, and construction year, it returns energy estimates.

Note, this api can be very slow. Response times of 20+ seconds are not uncommon.

You'll need an API key from Berkeley Lab.

api

hesSoapClient : ({apiKey : String, zipCode : Number, area : Number, year : Number }) => Promise<{ cost : Number, kWh : Number }>

installation

$ npm install hes-soap-client

running the tests

From package root:

$ npm install
$ npm test

contributors

license

ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md