{ "name": "Compass / NHS — 6:00am morning brief", "nodes": [ { "parameters": { "rule": { "interval": [ { "field": "cronExpression", "expression": "0 6 * * *" } ] } }, "id": "c1a0a0a0-0000-4000-8000-000000000001", "name": "6:00am every day", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [200, 300] }, { "parameters": { "command": "ssh remote 'cd /home/sam/paseo/projects/compass_teams_nhs && scripts/scan-compass.sh'" }, "id": "c1a0a0a0-0000-4000-8000-000000000002", "name": "Scan Compass (both children, read-only)", "type": "n8n-nodes-base.executeCommand", "typeVersion": 1, "position": [480, 300], "notes": "The scan needs node + patchright on the host, so it runs outside the service container. A failed scan still lets the briefs go out: the brief carries the failure notice (FR-12)." }, { "parameters": { "method": "POST", "url": "http://192.168.20.13:8792/notify/morning", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "=Bearer {{$env.SCHOOL_NOTIFY_TOKEN}}" }, { "name": "Content-Type", "value": "application/json" } ] }, "sendBody": false, "options": { "timeout": 240000, "response": { "response": { "neverError": true } } } }, "id": "c1a0a0a0-0000-4000-8000-000000000003", "name": "Send the morning briefs", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [760, 300], "notes": "POST /notify/morning builds one brief per boy plus the combined brief to Jo and Sam and delivers them through Apprise. 200 = every channel delivered; 207 = a channel failed or a scan failed; 503 = SCHOOL_NOTIFY_TOKEN is not set on the service." } ], "connections": { "6:00am every day": { "main": [ [ { "node": "Scan Compass (both children, read-only)", "type": "main", "index": 0 } ] ] }, "Scan Compass (both children, read-only)": { "main": [ [ { "node": "Send the morning briefs", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1", "timezone": "Australia/Melbourne", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner" }, "staticData": null, "meta": { "templateCredsSetupCompleted": true, "instanceId": "compass-teams-nhs" }, "pinData": {}, "tags": [ { "name": "school" } ], "active": false }