Re: TUTO Esp Easy + Nextion + Domoticz
Publié : 17 janv. 2022, 21:04
Merci dokho, j'ai vu cette option mais je n'ai pas testé, j'essayerai la prochaine fois que je m'y mettrai
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
Code : Tout sélectionner
[
{
"id": "3e16731314d1a5da",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "9a4ce2b8.47698",
"type": "debug",
"z": "3e16731314d1a5da",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1490,
"y": 460,
"wires": []
},
{
"id": "bc28ce63a329a6a3",
"type": "http request",
"z": "3e16731314d1a5da",
"name": "Saint du jour",
"method": "GET",
"ret": "txt",
"paytoqs": "ignore",
"url": "http://domogeek.entropialux.com/feastedsaint/now",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"x": 390,
"y": 460,
"wires": [
[
"94647e1b3e9c7362"
]
]
},
{
"id": "8b3d79abe7dd60a6",
"type": "inject",
"z": "3e16731314d1a5da",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 180,
"y": 460,
"wires": [
[
"bc28ce63a329a6a3"
]
]
},
{
"id": "00804dd22fcdcae7",
"type": "function",
"z": "3e16731314d1a5da",
"name": "",
"func": "\nvar url = \"192.168.1.9/control?cmd=NEXTION,page0.g0.txt=\"+\"\\\"\"+\"La saint\"+\" \"+msg.payload+\"\\\"\"; \n\nmsg.url = url;\n\n\nreturn [msg];\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1060,
"y": 520,
"wires": [
[
"7332665250a8b8c9"
]
]
},
{
"id": "94647e1b3e9c7362",
"type": "file",
"z": "3e16731314d1a5da",
"name": "write saint",
"filename": "/home/pi/saint du jour",
"appendNewline": true,
"createDir": false,
"overwriteFile": "true",
"encoding": "none",
"x": 600,
"y": 460,
"wires": [
[
"7307fa0f86f69328",
"9a4ce2b8.47698"
]
]
},
{
"id": "7307fa0f86f69328",
"type": "file in",
"z": "3e16731314d1a5da",
"name": "read saint",
"filename": "/home/pi/saint du jour",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 800,
"y": 520,
"wires": [
[
"00804dd22fcdcae7"
]
]
},
{
"id": "fc0b550db7060bda",
"type": "debug",
"z": "3e16731314d1a5da",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1470,
"y": 520,
"wires": []
},
{
"id": "7332665250a8b8c9",
"type": "http request",
"z": "3e16731314d1a5da",
"name": "",
"method": "GET",
"ret": "txt",
"paytoqs": false,
"url": "",
"persist": false,
"authType": "",
"senderr": false,
"x": 1270,
"y": 520,
"wires": [
[
"fc0b550db7060bda"
]
]
}
]