mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
f2bac89911
commit
2b6661c4f2
@ -100,6 +100,7 @@ WeMoNG.prototype.start = function start() {
|
||||
res.on('end',function() {
|
||||
xml2js.parseString(data, function(err, result) {
|
||||
if(!err) {
|
||||
if (result["s:Envelope"]) {
|
||||
var list = result["s:Envelope"]["s:Body"][0]["u:GetEndDevicesResponse"][0].DeviceLists[0];
|
||||
xml2js.parseString(list, function(err, result2) {
|
||||
if (!err) {
|
||||
@ -154,6 +155,7 @@ WeMoNG.prototype.start = function start() {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-wemo",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"description": "Input and Output nodes for Belkin WeMo devices",
|
||||
"repository": "https://github.com/node-red/node-red-nodes/tree/master/hardware",
|
||||
"main": "WeMoNG.js",
|
||||
|
Loading…
Reference in New Issue
Block a user