mirror of
https://github.com/skydiver/ewelink-api.git
synced 2026-01-05 12:25:32 +01:00
* helper method to login into ewelink if no auth credentials found * return websocket reponse as JSON * created function to get raw consumption data * created function to parse raw consumption data and return daily usage * renamed property * created function to get current month power usage * created function to get raw power usage * added new test cases * catch websocket connection errors * power usage enhancements * added new test case * removed unused code * updated credentials file * version bump * updated dependencies * tests reorganized
8 lines
202 B
JavaScript
8 lines
202 B
JavaScript
const deviceRawPowerUsage = require('./deviceRawPowerUsage');
|
|
const currentMonthPowerUsage = require('./currentMonthPowerUsage');
|
|
|
|
module.exports = {
|
|
deviceRawPowerUsage,
|
|
currentMonthPowerUsage,
|
|
};
|