nieuwe versie
This commit is contained in:
60
flows/pomp/version1_202510091414.json
Normal file
60
flows/pomp/version1_202510091414.json
Normal file
@@ -0,0 +1,60 @@
|
||||
[
|
||||
{
|
||||
"id": "inject1",
|
||||
"type": "inject",
|
||||
"name": "Start – tqqtqt v1",
|
||||
"props": [ { "p": "payload" } ],
|
||||
"repeat": "",
|
||||
"crontab": "",
|
||||
"once": false,
|
||||
"onceDelay": 0.1,
|
||||
"topic": "",
|
||||
"payload": "test",
|
||||
"payloadType": "str",
|
||||
"wires": [["function1"]],
|
||||
"version": 1,
|
||||
"url": "http://127.0.0.1:1880:3000/api/asset"
|
||||
},
|
||||
{
|
||||
"id": "function1",
|
||||
"type": "function",
|
||||
"name": "Verwerk asset data v1",
|
||||
"func": "msg.payload = { \"asset_id\": \"test\", \"asset_name\": \"tqqtqt\", \"version\": 1, \"timestamp\": Date.now() }; return msg;",
|
||||
"outputs": 1,
|
||||
"wires": [["change1","debug1","http1"]]
|
||||
},
|
||||
{
|
||||
"id": "change1",
|
||||
"type": "change",
|
||||
"name": "Voeg status toe v1",
|
||||
"rules": [ { "t": "set", "p": "payload.status", "pt": "msg", "to": "active", "tot": "str" } ],
|
||||
"wires": [["debug1"]]
|
||||
},
|
||||
{
|
||||
"id": "http1",
|
||||
"type": "http request",
|
||||
"name": "Stuur naar API v1",
|
||||
"method": "POST",
|
||||
"ret": "txt",
|
||||
"url": "http://127.0.0.1:1880:3000/api/asset",
|
||||
"tls": "",
|
||||
"persist": false,
|
||||
"proxy": "",
|
||||
"authType": "",
|
||||
"wires": [["debug1"]]
|
||||
},
|
||||
{
|
||||
"id": "debug1",
|
||||
"type": "debug",
|
||||
"name": "Output debug v1",
|
||||
"active": true,
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
"complete": "payload",
|
||||
"targetType": "msg",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"wires": []
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user