Go to file
NickDub ec66219ed7 Added multi-channel devices and get/set power state (#2)
* added multi-channel device

* added get and set power state

* added some fixes

* add “this” to call class methods
* create params object before build payload
* typo fixed on “switches” param

* added new test cases

* improved error message

* added more test cases

* added authentication error

* added fix channel number too high

* added region change if wrong

* linting + small fixes

* linting + renamed method

* linting
2019-07-17 02:23:26 -03:00
2019-06-26 20:25:56 -03:00
2019-06-28 23:34:54 -03:00
2019-06-26 20:25:56 -03:00
2019-06-26 20:25:56 -03:00
2019-06-28 00:05:59 -03:00
2019-06-26 21:30:11 -03:00
2019-07-06 19:05:57 -03:00
2019-07-06 19:05:57 -03:00
2019-06-28 23:34:54 -03:00

ewelink-api

eWeLink API for Node.js

Installation

 npm install ewelink-api

Usage

const ewelink = require('ewelink-api');

(async () => {

  const conn = new ewelink({
    email: '<your ewelink email>',
    password: '<your ewelink password>',
  });

  /* get all devices */
  const devices = await conn.getDevices();
  console.log(devices);

})();

Check demo/ directory for more examples.

Description
No description provided
Readme MIT 1.7 MiB
Languages
JavaScript 100%