[
{
"id": "514354bccdd417aa",
"type": "http request",
"z": "4bc863fe95c091b7",
"name": "",
"method": "GET",
"ret": "txt",
"paytoqs": "query",
"url": "http://192.168.10.64:6095/controller",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"credentials": {},
"x": 540,
"y": 60,
"wires": [
[]
]
},
{
"id": "035a2b1f7f8ba71a",
"type": "function",
"z": "4bc863fe95c091b7",
"name": "",
"func": "msg.payload={\n 'action':'keyevent',\n 'keycode':`${msg.payload}`\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 350,
"y": 60,
"wires": [
[
"514354bccdd417aa",
"214468d1afd2e14c"
]
]
},
{
"id": "1c9188a067e04f86",
"type": "inject",
"z": "4bc863fe95c091b7",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "enter",
"payloadType": "str",
"x": 130,
"y": 140,
"wires": [
[
"035a2b1f7f8ba71a"
]
]
},
{
"id": "8779f6c9d176b22d",
"type": "inject",
"z": "4bc863fe95c091b7",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "menu",
"payloadType": "str",
"x": 130,
"y": 200,
"wires": [
[
"035a2b1f7f8ba71a"
]
]
},
{
"id": "e051458bb50104e7",
"type": "mqtt in",
"z": "4bc863fe95c091b7",
"name": "miTV4",
"topic": "control/mitv4/send",
"qos": "2",
"datatype": "auto",
"broker": "b50ed318f890a537",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 120,
"y": 60,
"wires": [
[
"035a2b1f7f8ba71a"
]
]
},
{
"id": "214468d1afd2e14c",
"type": "debug",
"z": "4bc863fe95c091b7",
"name": "",
"active": true,
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 560,
"y": 120,
"wires": []
},
{
"id": "b50ed318f890a537",
"type": "mqtt-broker",
"name": "",
"broker": "127.0.0.1",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
}
]