Go to file
Martin M 90f7cde28c Release v1.3.0 (#8)
* 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
2019-07-27 14:52:12 -03:00
2019-06-26 20:25:56 -03:00
2019-06-28 23:34:54 -03:00
2019-07-27 14:52:12 -03:00
2019-07-27 14:52:12 -03:00
2019-06-26 20:25:56 -03:00
2019-07-20 12:43:05 -03:00
2019-06-28 00:05:59 -03:00
2019-06-26 21:30:11 -03:00
2019-07-27 14:52:12 -03:00
2019-07-27 14:52:12 -03:00
2019-07-27 14:52:12 -03:00
2019-07-20 12:43:05 -03:00

ewelink-api

eWeLink API for Node.js

Installation

 npm install ewelink-api

Usage

Check demo/ directory for examples.

Testing

  1. open test/_setup/credentials.json and update parameters.
  2. in a terminal, npm run test
  • Tests needs to be performed serially, so if run jest manually, add --runInBand parameter.
Description
No description provided
Readme MIT 1.7 MiB
Languages
JavaScript 100%