An open API service indexing awesome lists of open source software.

https://github.com/lsongdev/konke

:electric_plug: konke sdk for node.js
https://github.com/lsongdev/konke

konke remote-control smart-home smart-k

Last synced: 25 days ago
JSON representation

:electric_plug: konke sdk for node.js

Awesome Lists containing this project

README

          

## konke [![konke](https://img.shields.io/npm/v/konke.svg)](https://npmjs.org/konke)

> [konke](http://ikonke.com) sdk for node.js

### Installation

```bash
$ npm install konke --save
```

### Example

```js
const konke = new KonKe({
access_token : '3736a7ab79b27be49345523aab48941b'
});

konke.sendGeneralRemoteOrder(
"song940@163.com", // user id
"d5d7c8f3-43d7-44cc-a62d-261f882eb2a2", // device id
KonKe.REMOTE_TYPE.IR, // remote type
"rc_1498303352#1498303616" // remote command
).then(result => {
console.log(result);
});
```

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### MIT

This work is licensed under the [MIT license](./LICENSE).

---