added executeaction test script

pull/1/head
Simon Stürz 2014-01-03 00:09:35 +01:00
parent e40752aa8e
commit e9c15df684
1 changed files with 7 additions and 0 deletions

7
tests/executeaction.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [ -z $1 ]; then
echo "usage: $0 host"
else
(echo '{"id":1, "method":"Actions.ExecuteAction","params":{"action":{"deviceId":"{'$2'}","params":{"power":"'$3'"}}}}'; sleep 1) | nc $1 1234
fi