homecloud-controller
v1.0.13
Published
API for the controller communication with the cloud server using the homecloud protocol
Downloads
16
Readme
homecloud-controller
API for the controller communication with the cloud server using the homecloud protocol
##Documentation For documentation on how to use the API, refer to this
##Usage Here's an example, sending a message and listening for a notification:
var home = new Homecloud({
username: "login123",
password: "pass123",
websocket: {
address: "ws://localhost:8092/ws"
},
address: "http://localhost:8093"
});
home.onAction((message) => {
//Received action!
});
home.getRules((message) => {
//Got rules
});