wemonode
A Node.js framework for managing Belkin Wemo socket and sensor
IMPORTANT: Remember to change "upnpBindAddress" in wemonode_config.json file
Usage example:
/* Requiring WemoNode module */var WemoNode = ; /* Getting an instance */var wemoNode = WemoNode; /* Listening to "device_found" event. WemoNode will fire this event every time a new device is detected. If the detected device is a socket, then set the binary state to 1 (turn on)*/wemoNode; /* Listening to "device_lost" event. WemoNode will fire this event every time a device stops responding for 30 seconds. */wemoNode; /* Listening to "state_changed" event. WemoNode will fire this event every time a device changes its internal status. */wemoNode; var { wemoNode;} wemoNode; ;