More devices

This commit is contained in:
Gerrit Linnemann 2016-10-10 22:56:11 +02:00
parent e18cac8891
commit 5b0148f355
5 changed files with 96 additions and 4 deletions

View File

@ -97,7 +97,11 @@ function doMotionCall(options) {
}); });
req.on('error', function(err) { req.on('error', function(err) {
Log.error(HOST + ': ' + err); if(HOST) {
Log.error(HOST + ': ' + err);
} else {
Log.error(err);
}
}); });
req.end(); req.end();

View File

@ -112,7 +112,11 @@ function doHoBuDoorBellCall(options) {
}); });
req.on('error', function(err) { req.on('error', function(err) {
Log.error(HOST + ': ' + err); if(HOST) {
Log.error(HOST + ': ' + err);
} else {
Log.error(err);
}
}); });
req.end(); req.end();

View File

@ -90,7 +90,11 @@ function doHoBuDoorBellCall() {
}); });
req.on('error', function(err) { req.on('error', function(err) {
Log.error(err); if(HOST) {
Log.error(HOST + ': ' + err);
} else {
Log.error(err);
}
}); });
req.end(); req.end();

View File

@ -147,7 +147,11 @@ function saveValue(value, item) {
}); });
req.on('error', function(err) { req.on('error', function(err) {
Log.error(err); if(HOST) {
Log.error(HOST + ': ' + err);
} else {
Log.error(err);
}
}); });
req.end(); req.end();

View File

@ -37,6 +37,82 @@
} }
} }
} }
},
{
"host": "192.168.2.125",
"port": 4223,
"uid": "zrD",
"callback": {
"period": 60000
},
"on": {
"new": {
"value": {
"type": "web",
"host": "hobu",
"port": "2999",
"category": "TEMPERATURE",
"room": 3
}
}
}
},
{
"host": "192.168.2.125",
"port": 4223,
"uid": "xzF",
"callback": {
"period": 120000
},
"on": {
"new": {
"value": {
"type": "web",
"host": "hobu",
"port": "2999",
"category": "RH",
"room": 3
}
}
}
},
{
"host": "192.168.2.124",
"port": 4223,
"uid": "zsL",
"callback": {
"period": 60000
},
"on": {
"new": {
"value": {
"type": "web",
"host": "hobu",
"port": "2999",
"category": "TEMPERATURE",
"room": 2
}
}
}
},
{
"host": "192.168.2.124",
"port": 4223,
"uid": "xxR",
"callback": {
"period": 120000
},
"on": {
"new": {
"value": {
"type": "web",
"host": "hobu",
"port": "2999",
"category": "RH",
"room": 2
}
}
}
} }
] ]
} }