9 lines
357 B
Bash
Executable File
9 lines
357 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Creates a Mumbi remote
|
|
if [ -z $1 ]; then
|
|
echo "usage $0 host"
|
|
else
|
|
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClass": "{d85c1ef4-197c-4053-8e40-707aa671d302}", "deviceParams":{"channel1":"false", "channel2":"false", "channel3":"false", "channel4": "false", "channel5":"false" }}}'; sleep 1) | nc $1 1234
|
|
fi
|