Add context tester

This commit is contained in:
2025-03-23 01:03:48 -04:00
parent db1fb5b1e5
commit 8e792048e4

View File

@ -2306,6 +2306,24 @@
"w": 392, "w": 392,
"h": 82 "h": 82
}, },
{
"id": "c098aadcd6f83f58",
"type": "group",
"z": "d49b385d8b582b20",
"name": "Context Tester",
"style": {
"label": true
},
"nodes": [
"1a2b9228fd8343b7",
"f614d201285aac68",
"9e59e83b39d1ce29"
],
"x": 794,
"y": 319,
"w": 632,
"h": 82
},
{ {
"id": "fba69dfc80829db7", "id": "fba69dfc80829db7",
"type": "junction", "type": "junction",
@ -35343,5 +35361,70 @@
"f9e1aec6c25f6480" "f9e1aec6c25f6480"
] ]
] ]
},
{
"id": "1a2b9228fd8343b7",
"type": "inject",
"z": "d49b385d8b582b20",
"g": "c098aadcd6f83f58",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 900,
"y": 360,
"wires": [
[
"f614d201285aac68"
]
]
},
{
"id": "f614d201285aac68",
"type": "function",
"z": "d49b385d8b582b20",
"g": "c098aadcd6f83f58",
"name": "Get Context",
"func": "const testContext = global.get(\"outdoorTemp.tempStr\")\n\nmsg.payload = testContext\n\nreturn msg",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1070,
"y": 360,
"wires": [
[
"9e59e83b39d1ce29"
]
]
},
{
"id": "9e59e83b39d1ce29",
"type": "debug",
"z": "d49b385d8b582b20",
"g": "c098aadcd6f83f58",
"name": "Context Tester Output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1280,
"y": 360,
"wires": []
} }
] ]