Skip to content

Instantly share code, notes, and snippets.

@schnello

schnello/Flow Secret

Created August 5, 2022 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schnello/ea4bf8b58867eca56f4a0d861b70c51e to your computer and use it in GitHub Desktop.
Save schnello/ea4bf8b58867eca56f4a0d861b70c51e to your computer and use it in GitHub Desktop.
[
{
"id": "f9e0e2f335a18341",
"type": "http in",
"z": "5177a7157c043da9",
"name": "",
"url": "/LG200",
"method": "post",
"upload": true,
"swaggerDoc": "",
"x": 120,
"y": 180,
"wires": [
[
"c27a8afd36284895",
"ba4da40d0a2fef30",
"9e6ed9dc.f64ba8",
"5ba1889b4f8037a7"
]
]
},
{
"id": "c27a8afd36284895",
"type": "template",
"z": "5177a7157c043da9",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "<html>\n <head></head>\n <body>\n <h1>OK</h1>\n </body>\n</html>",
"output": "str",
"x": 420,
"y": 140,
"wires": [
[
"b1ce4214057b4ddd"
]
]
},
{
"id": "b1ce4214057b4ddd",
"type": "http response",
"z": "5177a7157c043da9",
"name": "",
"statusCode": "",
"headers": {},
"x": 610,
"y": 140,
"wires": []
},
{
"id": "a4b43bdaa70543fb",
"type": "ui_text",
"z": "5177a7157c043da9",
"group": "48cea5555f1859a9",
"order": 2,
"width": 0,
"height": 0,
"name": "",
"label": "",
"format": "{{msg.payload}}",
"layout": "row-spread",
"x": 610,
"y": 200,
"wires": []
},
{
"id": "ba4da40d0a2fef30",
"type": "template",
"z": "5177a7157c043da9",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Last Lasermarking upload state: {{payload.state}} !\nSecond Data: {{payload.test}} !",
"output": "str",
"x": 420,
"y": 200,
"wires": [
[
"a4b43bdaa70543fb"
]
]
},
{
"id": "9e6ed9dc.f64ba8",
"type": "template",
"z": "5177a7157c043da9",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "<img src=\"data:image/jpg;base64,{{{payload.att1}}}\" width=\"500\" height=\"600\">",
"output": "str",
"x": 420,
"y": 260,
"wires": [
[
"28439a97.39e7a6"
]
]
},
{
"id": "28439a97.39e7a6",
"type": "ui_template",
"z": "5177a7157c043da9",
"group": "48cea5555f1859a9",
"name": "",
"order": 0,
"width": "6",
"height": "5",
"format": "<div ng-bind-html=\"msg.payload\"></div>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": false,
"templateScope": "local",
"x": 620,
"y": 260,
"wires": [
[]
]
},
{
"id": "5ba1889b4f8037a7",
"type": "debug",
"z": "5177a7157c043da9",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 270,
"y": 320,
"wires": []
},
{
"id": "48cea5555f1859a9",
"type": "ui_group",
"name": "Default",
"tab": "93b1ee74733e2968",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "93b1ee74733e2968",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment