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
- Host: GitHub
- URL: https://github.com/lsongdev/konke
- Owner: lsongdev
- License: mit
- Created: 2017-01-19T08:42:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T11:22:52.000Z (over 7 years ago)
- Last Synced: 2025-10-24T03:04:58.597Z (5 months ago)
- Topics: konke, remote-control, smart-home, smart-k
- Language: JavaScript
- Homepage: https://npmjs.com/konke
- Size: 617 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## konke [](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).
---