Added new entry
This commit is contained in:
parent
8a32eafad6
commit
1b813fd749
@ -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": {
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user