Skip to content
Snippets Groups Projects
Commit 8542ddea authored by REMY Laurent's avatar REMY Laurent
Browse files

Update flow files

parent 0b0c47a7
No related branches found
No related tags found
No related merge requests found
[ [
{ {
"id": "e7df985e7c4848fc", "id": "455c87288185e579",
"type": "tab", "type": "tab",
"label": "Flow 1", "label": "Flow 1",
"disabled": false, "disabled": false,
...@@ -8,9 +8,283 @@ ...@@ -8,9 +8,283 @@
"env": [] "env": []
}, },
{ {
"id": "b34dc18185e781fb", "id": "d17b78eb41be9e0c",
"type": "tab",
"label": "SimMQTT",
"disabled": false,
"info": "",
"env": []
},
{
"id": "afc0a1c0cf5e12f7",
"type": "mqtt-broker",
"name": "",
"broker": "127.0.0.1",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
},
{
"id": "0c8cd1acce716605",
"type": "influxdb",
"hostname": "127.0.0.1",
"port": "8086",
"protocol": "http",
"database": "database",
"name": "SAC40",
"usetls": false,
"tls": "",
"influxdbVersion": "2.0",
"url": "http://127.0.0.1:8086",
"rejectUnauthorized": true
},
{
"id": "2b0d37803b9e5e49",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "e69d9b2ffcf641ac",
"type": "ui_base",
"theme": {
"name": "theme-light",
"lightTheme": {
"default": "#0094CE",
"baseColor": "#0094CE",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": true,
"reset": false
},
"darkTheme": {
"default": "#097479",
"baseColor": "#097479",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": false
},
"customTheme": {
"name": "Untitled Theme 1",
"default": "#4B7930",
"baseColor": "#4B7930",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
},
"themeState": {
"base-color": {
"default": "#0094CE",
"value": "#0094CE",
"edited": false
},
"page-titlebar-backgroundColor": {
"value": "#0094CE",
"edited": false
},
"page-backgroundColor": {
"value": "#fafafa",
"edited": false
},
"page-sidebar-backgroundColor": {
"value": "#ffffff",
"edited": false
},
"group-textColor": {
"value": "#1bbfff",
"edited": false
},
"group-borderColor": {
"value": "#ffffff",
"edited": false
},
"group-backgroundColor": {
"value": "#ffffff",
"edited": false
},
"widget-textColor": {
"value": "#111111",
"edited": false
},
"widget-backgroundColor": {
"value": "#0094ce",
"edited": false
},
"widget-borderColor": {
"value": "#ffffff",
"edited": false
},
"base-font": {
"value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
}
},
"angularTheme": {
"primary": "indigo",
"accents": "blue",
"warn": "red",
"background": "grey",
"palette": "light"
}
},
"site": {
"name": "Node-RED Dashboard",
"hideToolbar": "false",
"allowSwipe": "false",
"lockMenu": "false",
"allowTempTheme": "true",
"dateFormat": "DD/MM/YYYY",
"sizes": {
"sx": 48,
"sy": 48,
"gx": 6,
"gy": 6,
"cx": 6,
"cy": 6,
"px": 0,
"py": 0
}
}
},
{
"id": "48c07907b82fd6c0",
"type": "ui_group",
"name": "Default",
"tab": "2b0d37803b9e5e49",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "196b5e0fb073b86f",
"type": "mqtt in",
"z": "455c87288185e579",
"name": "",
"topic": "/AIP/DWM/TEST/#",
"qos": "2",
"datatype": "json",
"broker": "afc0a1c0cf5e12f7",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 270,
"y": 80,
"wires": [
[
"68b67e5af28bd4a7"
]
]
},
{
"id": "68b67e5af28bd4a7",
"type": "debug",
"z": "455c87288185e579",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 670,
"y": 80,
"wires": []
},
{
"id": "9e878eb8e7a70698",
"type": "influxdb in",
"z": "455c87288185e579",
"influxdb": "0c8cd1acce716605",
"name": "Influxdb",
"query": "from(bucket: \"SAC40\")\n |> range(start: -5m)\n |> filter(fn: (r) => r[\"_measurement\"] == \"Position\")\n |> filter(fn: (r) => r[\"TAG_ID\"] == \"00BC\")\n |> filter(fn: (r) => r[\"_field\"] == \"quality\")\n |> aggregateWindow(every: 5m, fn: last, createEmpty: false)\n |> yield(name: \"last\")",
"rawOutput": false,
"precision": "",
"retentionPolicy": "",
"org": "AIPL",
"x": 460,
"y": 240,
"wires": [
[
"85f87b7adc622706"
]
]
},
{
"id": "122b28f70128f681",
"type": "inject", "type": "inject",
"z": "e7df985e7c4848fc", "z": "455c87288185e579",
"name": "",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 270,
"y": 240,
"wires": [
[
"9e878eb8e7a70698"
]
]
},
{
"id": "85f87b7adc622706",
"type": "debug",
"z": "455c87288185e579",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 690,
"y": 240,
"wires": []
},
{
"id": "deace18e74373fed",
"type": "mqtt out",
"z": "d17b78eb41be9e0c",
"name": "",
"topic": "/AIP/DWM/TEST/22BC",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "afc0a1c0cf5e12f7",
"x": 560,
"y": 80,
"wires": []
},
{
"id": "61421aa55ae825dc",
"type": "inject",
"z": "d17b78eb41be9e0c",
"name": "", "name": "",
"props": [ "props": [
{ {
...@@ -26,12 +300,178 @@ ...@@ -26,12 +300,178 @@
"once": false, "once": false,
"onceDelay": 0.1, "onceDelay": 0.1,
"topic": "", "topic": "",
"payload": "", "payload": "{\"id\":\"22BC\",\"x\": 100,\"y\":200}",
"payloadType": "date", "payloadType": "json",
"x": 220, "x": 230,
"y": 80,
"wires": [
[
"b7227d5264d0b6e8"
]
]
},
{
"id": "b7227d5264d0b6e8",
"type": "exec",
"z": "d17b78eb41be9e0c",
"command": "./aip_sac4.0/MapSaver/mainGenerator.py",
"addpay": "payload",
"append": "",
"useSpawn": "true",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 660,
"y": 200,
"wires": [
[
"37b77769d0f1ca56",
"d63481d6a4319fdb"
],
[],
[]
]
},
{
"id": "37b77769d0f1ca56",
"type": "debug",
"z": "d17b78eb41be9e0c",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 990,
"y": 140, "y": 140,
"wires": []
},
{
"id": "7427d0e9fd639195",
"type": "ui_button",
"z": "d17b78eb41be9e0c",
"name": "",
"group": "48c07907b82fd6c0",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"label": "Nouvelle demande",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 190,
"y": 220,
"wires": [
[
"768787bf70720579"
]
]
},
{
"id": "d63481d6a4319fdb",
"type": "ui_toast",
"z": "d17b78eb41be9e0c",
"position": "top right",
"displayTime": "3",
"highlight": "",
"sendall": true,
"outputs": 0,
"ok": "OK",
"cancel": "",
"raw": false,
"topic": "",
"name": "",
"x": 1010,
"y": 180,
"wires": []
},
{
"id": "da32d553608526a5",
"type": "ui_text_input",
"z": "d17b78eb41be9e0c",
"d": true,
"name": "",
"label": "Text",
"tooltip": "",
"group": "48c07907b82fd6c0",
"order": 2,
"width": 0,
"height": 0,
"passthru": false,
"mode": "text",
"delay": 300,
"topic": "test",
"topicType": "msg",
"x": 430,
"y": 340,
"wires": [
[
"d2def1d5f8e1edbb",
"824bc2914f9c153d"
]
]
},
{
"id": "d2def1d5f8e1edbb",
"type": "function",
"z": "d17b78eb41be9e0c",
"name": "",
"func": "flow.set(\"arg1\",msg.payload)\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 620,
"y": 340,
"wires": [ "wires": [
[] []
] ]
},
{
"id": "824bc2914f9c153d",
"type": "debug",
"z": "d17b78eb41be9e0c",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 380,
"wires": []
},
{
"id": "768787bf70720579",
"type": "function",
"z": "d17b78eb41be9e0c",
"name": "",
"func": "arg1 = flow.get(\"arg1\")\n\nmsg.payload = arg1\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 220,
"wires": [
[
"b7227d5264d0b6e8"
]
]
} }
] ]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment