-
-
Save vongomben/22cd6ad9e587904153225b7100118479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "0fbc664f6196f48c", | |
"type": "comment", | |
"z": "e23266e26abe114f", | |
"name": "Esercitazione 2", | |
"info": "", | |
"x": 540, | |
"y": 560, | |
"wires": [] | |
}, | |
{ | |
"id": "c4f83cdbf95bc1ea", | |
"type": "inject", | |
"z": "e23266e26abe114f", | |
"name": "", | |
"props": [ | |
{ | |
"p": "payload" | |
}, | |
{ | |
"p": "topic", | |
"vt": "str" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payload": "{\"age\":18}", | |
"payloadType": "json", | |
"x": 300, | |
"y": 680, | |
"wires": [ | |
[ | |
"a984ed0bc2eef8e6", | |
"dd7426eba0b31417", | |
"5cf8b14ef489e7aa", | |
"d26d592dc996ecfe", | |
"18e34d96a27d4229" | |
] | |
] | |
}, | |
{ | |
"id": "a6eb9a0b407a78f3", | |
"type": "debug", | |
"z": "e23266e26abe114f", | |
"name": "{\"age\":19}", | |
"active": false, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "payload", | |
"targetType": "msg", | |
"statusVal": "", | |
"statusType": "auto", | |
"x": 860, | |
"y": 620, | |
"wires": [] | |
}, | |
{ | |
"id": "a984ed0bc2eef8e6", | |
"type": "change", | |
"z": "e23266e26abe114f", | |
"name": "Change just on payload.age", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload.age", | |
"pt": "msg", | |
"to": "19", | |
"tot": "num" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 540, | |
"y": 620, | |
"wires": [ | |
[ | |
"a6eb9a0b407a78f3" | |
] | |
] | |
}, | |
{ | |
"id": "dd7426eba0b31417", | |
"type": "change", | |
"z": "e23266e26abe114f", | |
"name": "Change recreating payload.age", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "{\"age\":19}", | |
"tot": "json" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 550, | |
"y": 660, | |
"wires": [ | |
[ | |
"a6eb9a0b407a78f3" | |
] | |
] | |
}, | |
{ | |
"id": "5cf8b14ef489e7aa", | |
"type": "template", | |
"z": "e23266e26abe114f", | |
"name": "Templlating payload.age", | |
"field": "payload.age", | |
"fieldType": "msg", | |
"format": "handlebars", | |
"syntax": "mustache", | |
"template": "19", | |
"output": "str", | |
"x": 530, | |
"y": 700, | |
"wires": [ | |
[ | |
"a6eb9a0b407a78f3" | |
] | |
] | |
}, | |
{ | |
"id": "d26d592dc996ecfe", | |
"type": "template", | |
"z": "e23266e26abe114f", | |
"name": "templating payload (output as JSON)", | |
"field": "payload", | |
"fieldType": "msg", | |
"format": "handlebars", | |
"syntax": "mustache", | |
"template": "{\"age\":19}", | |
"output": "json", | |
"x": 570, | |
"y": 780, | |
"wires": [ | |
[ | |
"a6eb9a0b407a78f3" | |
] | |
] | |
}, | |
{ | |
"id": "18e34d96a27d4229", | |
"type": "template", | |
"z": "e23266e26abe114f", | |
"name": "templating payload (output as text)", | |
"field": "payload", | |
"fieldType": "msg", | |
"format": "handlebars", | |
"syntax": "mustache", | |
"template": "{\"age\":19}", | |
"output": "str", | |
"x": 560, | |
"y": 740, | |
"wires": [ | |
[ | |
"809e57ed5d7405b8", | |
"46cade08299f1751" | |
] | |
] | |
}, | |
{ | |
"id": "809e57ed5d7405b8", | |
"type": "debug", | |
"z": "e23266e26abe114f", | |
"name": "{\"age\":19}", | |
"active": true, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "payload", | |
"targetType": "msg", | |
"statusVal": "", | |
"statusType": "auto", | |
"x": 860, | |
"y": 680, | |
"wires": [] | |
}, | |
{ | |
"id": "46cade08299f1751", | |
"type": "json", | |
"z": "e23266e26abe114f", | |
"name": "", | |
"property": "payload", | |
"action": "", | |
"pretty": false, | |
"x": 850, | |
"y": 800, | |
"wires": [ | |
[ | |
"bb2ab1a6e4304dd4" | |
] | |
] | |
}, | |
{ | |
"id": "bb2ab1a6e4304dd4", | |
"type": "debug", | |
"z": "e23266e26abe114f", | |
"name": "{\"age\":19}", | |
"active": true, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "payload", | |
"targetType": "msg", | |
"statusVal": "", | |
"statusType": "auto", | |
"x": 1000, | |
"y": 800, | |
"wires": [] | |
}, | |
{ | |
"id": "0ff1677cf3b4e89d", | |
"type": "comment", | |
"z": "e23266e26abe114f", | |
"name": "using parser!", | |
"info": "", | |
"x": 870, | |
"y": 760, | |
"wires": [] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment