mirror of https://github.com/nymea/nymea.git
add test scripts and fix some mistakes
parent
2f75cdd3ad
commit
efcecb0dd1
|
|
@ -120,6 +120,7 @@ QVariantMap JsonRPCServer::packDevice(Device *device)
|
|||
triggers.append(trigger.id());
|
||||
}
|
||||
variant.insert("triggers", triggers);
|
||||
variant.insert("params", device->params());
|
||||
return variant;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Creates a Mumbi remote
|
||||
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClass": "{d85c1ef4-197c-4053-8e40-707aa671d302}", "deviceParams": {"channel1":"true", "channel2":"false", "channel3":"false", "channel4": "false", "channel5":"false" }}}'; sleep 1) | nc localhost 1234
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
(echo '{"id":1, "method":"Devices.GetConfiguredDevices"}'; sleep 1) | nc localhost 1234
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
(echo '{"id":1, "method":"Devices.GetSupportedDevices"}'; sleep 1) | nc localhost 1234
|
||||
Loading…
Reference in New Issue