Added new entry

This commit is contained in:
Gerrit Linnemann 2016-06-09 17:55:28 +02:00
parent 8a32eafad6
commit 1b813fd749
3 changed files with 23 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ {
"items": [ "items": [
{ {
"host": "192.168.2.125", "host": "192.168.2.126",
"port": 4223, "port": 4223,
"uid": "wsk", "uid": "wsk",
"on": { "on": {

View File

@ -10,6 +10,8 @@ Helper.each(Conf.items, function(item) {
var PORT = item.port; var PORT = item.port;
var UID = item.uid; var UID = item.uid;
Log.log('Init ' + UID);
var ipcon = new Tinkerforge.IPConnection(); // Create IP connection var ipcon = new Tinkerforge.IPConnection(); // Create IP connection
var dus = new Tinkerforge.BrickletDistanceUS(UID, ipcon); // Create device object var dus = new Tinkerforge.BrickletDistanceUS(UID, ipcon); // Create device object

View File

@ -19,6 +19,26 @@
} }
} }
} }
},
{
"host": "192.168.2.125",
"port": 4223,
"uid": "z9q",
"on": {
"action": {
"timeout": 4500,
"on": {
"host": "hobu",
"port": "2999",
"path": "/set/state/of/powercontrol/27/to/1/"
},
"off": {
"host": "hobu",
"port": "2999",
"path": "/set/state/of/powercontrol/27/to/0/"
}
}
}
} }
] ]
} }