小微直播下载: http://xiaoweizhibo.com/
{
"platform": "cmdSwitch2",
"name": "CMD Switch",
"switches": [{
"name": "音量+",
"on_cmd": "curl http://192.168.200.53:8050/key?n=24",
"off_cmd": "exit 1",
"state_cmd": "exit 1",
"polling": false,
"interval": 1
}, {
"name": "音量-",
"on_cmd": "curl http://192.168.200.53:8050/key?n=25",
"off_cmd": "exit 1",
"state_cmd": "exit 1",
"polling": false,
"interval": 1
}, {
"name": "上一个台",
"on_cmd": "curl http://192.168.200.53:8050/key?n=19",
"off_cmd": "exit 1",
"state_cmd": "exit 1",
"polling": false,
"interval": 1
}, {
"name": "下一个台",
"on_cmd": "curl http://192.168.200.53:8050/key?n=20",
"off_cmd": "exit 1",
"state_cmd": "exit 1",
"polling": false,
"interval": 1
}
}
{
"name": "CCTV-1高清",
"on_cmd": "curl http://192.168.200.53:8050/cmd?url=http://192.168.200.144:10000/rtp/239.93.0.184:5140",
"off_cmd": "exit 1",
"state_cmd": "exit 1",
"polling": false,
"interval": 1
}, {
"name": "CCTV-2高清",
"on_cmd": "curl http://192.168.200.53:8050/cmd?url=http://192.168.200.144:10000/rtp/239.93.1.23:6000",
"off_cmd": "exit 1",
"state_cmd": "exit 1",
"polling": false,
"interval": 1
}