Nodejs Plugwise driver code
Posted: Tue Sep 30, 2014 11:45 pm
Camilo Tapia made a Plugwise interface for Nodejs some years ago. Today Camilo updated the code with a function to also read the power buffer of a Circle.
This is a very nice wanted upgrade!
Check the code on github https://github.com/camme/plugwisejs
also check out his interesting blog with more Nodejs solutions.http://www.1001.io/blog
This is a very nice wanted upgrade!
Code: Select all
Read the power buffer
// Returns todays power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo(callback([array]);
// Returns the amount of hours back in time of power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo([number], callback([array]);
// Returns the dates power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo([date], callback([array]);
// Returns the dates interval power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo([[date], [date]], callback([array]);
also check out his interesting blog with more Nodejs solutions.http://www.1001.io/blog