Files
nextcloud-collabora-nodered/flows/example-flows.json
T
root 4fb614be87 Add node docs, collabora purple UI, and portable install env
Human-readable help in all six palette nodes, docs/NODES.md with usage examples, expanded example flows, and auto-detect NODERED_DIR plus CODE bridge IP from .env on any VM.
2026-08-22 17:10:34 +02:00

194 lines
4.7 KiB
JSON

[
{
"id": "collab_tab",
"type": "tab",
"label": "NC Collabora — exempel",
"disabled": false,
"info": "Skapa nc-collab-config först (kugghjul). Byt FILL_IN_USER och app-lösenord.\n\n1. capabilities — CODE lever?\n2. ncFileToPdf — PDF i OfficeOut\n3. document:direct — editorUrl\n\nSe docs/NODES.md"
},
{
"id": "nc_collab_cfg",
"type": "nc-collab-config",
"name": "cloud.hannesahlin.se",
"nextcloudUrl": "https://cloud.hannesahlin.se",
"collaboraUrl": "https://172.17.0.2:9980",
"collaboraPublicUrl": "https://cloud.hannesahlin.se",
"username": "FILL_IN_USER",
"verifyTls": false
},
{
"id": "inj_capabilities",
"type": "inject",
"z": "collab_tab",
"name": "1. CODE capabilities",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"topic": "",
"x": 150,
"y": 80,
"wires": [["wopi_cap"]]
},
{
"id": "wopi_cap",
"type": "collabora-wopi",
"z": "collab_tab",
"name": "capabilities",
"config": "nc_collab_cfg",
"operation": "capabilities",
"x": 380,
"y": 80,
"wires": [["dbg_cap"]]
},
{
"id": "dbg_cap",
"type": "debug",
"z": "collab_tab",
"name": "capabilities JSON",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 590,
"y": 80,
"wires": []
},
{
"id": "inj_pdf",
"type": "inject",
"z": "collab_tab",
"name": "2. NC-fil → PDF",
"props": [
{
"p": "ncPath",
"v": "/Dokument/test.docx",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"topic": "",
"x": 150,
"y": 160,
"wires": [["bridge_pdf"]]
},
{
"id": "bridge_pdf",
"type": "collabora-bridge",
"z": "collab_tab",
"name": "ncFileToPdf",
"config": "nc_collab_cfg",
"operation": "ncFileToPdf",
"x": 380,
"y": 160,
"wires": [["dbg_pdf"]]
},
{
"id": "dbg_pdf",
"type": "debug",
"z": "collab_tab",
"name": "destNcPath",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "destNcPath",
"x": 590,
"y": 160,
"wires": []
},
{
"id": "inj_editor",
"type": "inject",
"z": "collab_tab",
"name": "3. Öppna i Office",
"props": [
{
"p": "ncPath",
"v": "/Dokument/test.docx",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"topic": "",
"x": 150,
"y": 240,
"wires": [["office_direct"]]
},
{
"id": "office_direct",
"type": "nc-office",
"z": "collab_tab",
"name": "document:direct",
"config": "nc_collab_cfg",
"operation": "document:direct",
"x": 380,
"y": 240,
"wires": [["dbg_editor"]]
},
{
"id": "dbg_editor",
"type": "debug",
"z": "collab_tab",
"name": "editorUrl",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "editorUrl",
"x": 590,
"y": 240,
"wires": []
},
{
"id": "inj_extract",
"type": "inject",
"z": "collab_tab",
"name": "4. Fält i mall",
"props": [
{
"p": "ncPath",
"v": "/Mallar/avtal.docx",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"topic": "",
"x": 150,
"y": 320,
"wires": [["bridge_extract"]]
},
{
"id": "bridge_extract",
"type": "collabora-bridge",
"z": "collab_tab",
"name": "extractToPayload",
"config": "nc_collab_cfg",
"operation": "extractToPayload",
"x": 390,
"y": 320,
"wires": [["dbg_fields"]]
},
{
"id": "dbg_fields",
"type": "debug",
"z": "collab_tab",
"name": "fields / structure",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "fields",
"x": 610,
"y": 320,
"wires": []
}
]