Code
[
{
"id": "07811b4c50a54398",
"type": "tab",
"label": "Průtok 12",
"disabled": false,
"info": "",
"env": []
},
{
"id": "c4354f61c5a08cc1",
"type": "shelly-gen1",
"z": "07811b4c50a54398",
"hostname": "192.168.0.133",
"description": "Shelly1",
"pollinginterval": 5000,
"pollstatus": nepravda,
"getstatusoncommand": pravda,
"devicetype": "Relé",
"výstupy": 1,
"rgbwmode": "barva",
"x": 320,
"y": 220,
"dráty": [
[
"ae23e203a2e0b1fc"
]
]
},
{
"id": "d7e54c81626cc1d0",
"type": "inject",
"z": "07811b4c50a54398",
"název": "",
"rekvizity": [
{
"p": "užitné zatížení"
},
{
"p": "téma",
"vt": "str"
}
],
"repeat": "2",
"crontab": "",
"jednou": nepravda,
"onceDelay": 0,1,
"topic": "",
"užitné zatížení": "",
"payloadType": "str",
"x": 150,
"y": 220,
"dráty": [
[
"c4354f61c5a08cc1"
]
]
},
{
"id": "ae23e203a2e0b1fc",
"type": "funkce",
"z": "07811b4c50a54398",
"name": "získat stav zařízení",
"func": "\nvar IP = \"192.168.0.133\";\n\nvar x = \"zapnuto\";\nvar y = \"vypnuto\";\nmsg.url = \"http:// \" + IP + \"/relay/0\";\n\n//msg.payload = \"turn=\" + x;\n\nvar temp1 = msg.status.ext_temperature[\"0\" ].tC;\n\nif (temp1 > 27.0) {\n//if (true){\n msg.payload = \"turn=\" + x;\n\n}jinak{\n msg.payload = \"turn=\" + y;\n\n}\n\n//msg.url = \"http://\" + IP + \"/status\";\n\n\n\ n\nvraťte zprávu;",
"výstupy": 1,
"noerr": 0,
"inicializovat": "",
"finalize": "",
"libs": [],
"x": 530,
"y": 220,
"dráty": [
[
"89cb86ef41a3c5be"
]
]
},
{
"id": "89cb86ef41a3c5be",
"type": "požadavek http",
"z": "07811b4c50a54398",
"název": "",
"metoda": "POST",
"ret": "obj",
"paytoqs": "ignorovat",
"url": "",
"tls": "",
"přetrvávat": nepravda,
"proxy": "",
"authType": "",
"odesílatel": nepravda,
"headers": [],
"x": 750,
"y": 220,
"dráty": [
[
"30c53c8c5747036d"
]
]
},
{
"id": "30c53c8c5747036d",
"type": "debug",
"z": "07811b4c50a54398",
"name": "ladit 6",
"aktivní": pravda,
"tosidebar": pravda,
"console": false,
"tostatus": nepravda,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 920,
"y": 220,
"dráty": []
}
]
Alles anzeigen