[
{
"id": "9a2e60e52c7f98aa",
"type": "tab",
"label": "Flow 6",
"disabled": false,
"info": "",
"env": []
},
{
"id": "72957a0e1ad7b2ab",
"type": "debug",
"z": "9a2e60e52c7f98aa",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 830,
"y": 260,
"wires": []
},
{
"id": "b15c5083e34e9a22",
"type": "function",
"z": "9a2e60e52c7f98aa",
"name": "",
"func": "msg.payload = {\"test\":global.get(\"test\"),\"test0\":global.get(\"test0\") };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 420,
"y": 360,
"wires": [
[
"72957a0e1ad7b2ab"
]
]
},
{
"id": "4b959870c9d26218",
"type": "inject",
"z": "9a2e60e52c7f98aa",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 180,
"y": 360,
"wires": [
[
"b15c5083e34e9a22"
]
]
},
{
"id": "72baddb77d1b2a11",
"type": "function",
"z": "9a2e60e52c7f98aa",
"name": "",
"func": "global.set(\"test.a\",msg.payload.a)\nglobal.set(\"test.b\",msg.payload.b)\nvar d = global.get(\"test\");\nvar e = global.get(\"test0\");\nif(e != d){\nglobal.set(\"test0\",d)\nmsg.payload=global.get(\"test0\");\nreturn msg\n}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 400,
"y": 240,
"wires": [
[
"72957a0e1ad7b2ab"
]
]
},
{
"id": "2d50e21d02c814bb",
"type": "inject",
"z": "9a2e60e52c7f98aa",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"a\": 4,\"b\":5}",
"payloadType": "json",
"x": 170,
"y": 280,
"wires": [
[
"72baddb77d1b2a11"
]
]
},
{
"id": "eeb5f39eb1cfd96e",
"type": "inject",
"z": "9a2e60e52c7f98aa",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "10",
"topic": "",
"payload": "{\"a\":1001,\"b\":1213}",
"payloadType": "json",
"x": 170,
"y": 200,
"wires": [
[
"72baddb77d1b2a11"
]
]
}
]