From 8e792048e44c3afa88d60bda98a1fa7d126cf9db Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 23 Mar 2025 01:03:48 -0400 Subject: [PATCH] Add context tester --- flows.json | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/flows.json b/flows.json index a7bb982..e9c7abb 100644 --- a/flows.json +++ b/flows.json @@ -2306,6 +2306,24 @@ "w": 392, "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", "type": "junction", @@ -35343,5 +35361,70 @@ "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": [] } ] \ No newline at end of file