Created
August 3, 2020 07:21
-
-
Save enisozgen/323d8b74013523184e43fc3abfe2cb33 to your computer and use it in GitHub Desktop.
Share n8n error file related with issue.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ReportError", | |
"nodes": [ | |
{ | |
"parameters": {}, | |
"name": "Start", | |
"type": "n8n-nodes-base.start", | |
"typeVersion": 1, | |
"position": [ | |
-480, | |
-230 | |
] | |
}, | |
{ | |
"parameters": { | |
"url": "={{$node[\"MainFunction\"].data[\"link\"]}}" | |
}, | |
"name": "RSS Feed Read", | |
"type": "n8n-nodes-base.rssFeedRead", | |
"position": [ | |
410, | |
330 | |
], | |
"typeVersion": 1 | |
}, | |
{ | |
"parameters": { | |
"conditions": { | |
"string": [ | |
{ | |
"value1": "={{$node[\"Diff Control\"].data[\"stdout\"]}}", | |
"operation": "contains", | |
"value2": "different" | |
} | |
] | |
} | |
}, | |
"name": "IF", | |
"type": "n8n-nodes-base.if", | |
"typeVersion": 1, | |
"position": [ | |
940, | |
330 | |
] | |
}, | |
{ | |
"parameters": { | |
"command": "=diff {{$node[\"MainFunction\"].data[\"lastfilelocation\"]}} {{$node[\"MainFunction\"].data[\"currentfilelocation\"]}}|| echo different; cat {{$node[\"MainFunction\"].data[\"lastfilelocation\"]}}> {{$node[\"MainFunction\"].data[\"currentfilelocation\"]}}" | |
}, | |
"name": "Diff Control", | |
"type": "n8n-nodes-base.executeCommand", | |
"typeVersion": 1, | |
"position": [ | |
790, | |
330 | |
] | |
}, | |
{ | |
"parameters": { | |
"command": "=echo {{$node[\"RSS Feed Read\"].data[\"pubDate\"]}} > {{$node[\"MainFunction\"].data[\"currentfilelocation\"]}}" | |
}, | |
"name": "CurrentRSSTime", | |
"type": "n8n-nodes-base.executeCommand", | |
"typeVersion": 1, | |
"position": [ | |
610, | |
330 | |
] | |
}, | |
{ | |
"parameters": { | |
"chatId": "123456789", | |
"text": "={{$node[\"MainFunction\"].data[\"message\"]}}\nLink: {{$node[\"RSS Feed Read\"].data[\"link\"]}}", | |
"additionalFields": {} | |
}, | |
"name": "Send RSS", | |
"type": "n8n-nodes-base.telegram", | |
"typeVersion": 1, | |
"position": [ | |
1200, | |
110 | |
], | |
"credentials": { | |
"telegramApi": "Telegramn8n" | |
} | |
}, | |
{ | |
"parameters": { | |
"functionCode": "return items;" | |
}, | |
"name": "MainFunction", | |
"type": "n8n-nodes-base.function", | |
"typeVersion": 1, | |
"position": [ | |
170, | |
330 | |
] | |
}, | |
{ | |
"parameters": { | |
"command": "=echo {{$node[\"RSS Feed Read\"].data[\"pubDate\"]}} > {{$node[\"MainFunction\"].data[\"lastfilelocation\"]}}" | |
}, | |
"name": "WritePubDate", | |
"type": "n8n-nodes-base.executeCommand", | |
"typeVersion": 1, | |
"position": [ | |
1490, | |
110 | |
] | |
}, | |
{ | |
"parameters": { | |
"functionCode": "item.message = \"New Video: LOTR Game\"\nitem.link = \"https://www.youtube.com/feeds/videos.xml?channel_id=UCCLe3p0r-qSEfcWTTJWR04A\";\nitem.currentfilelocation = \"LOTRCurrent\";\nitem.lastfilelocation = \"LOTRLast\";\nreturn item;" | |
}, | |
"name": "PATH1", | |
"type": "n8n-nodes-base.functionItem", | |
"typeVersion": 1, | |
"position": [ | |
-110, | |
330 | |
] | |
}, | |
{ | |
"parameters": { | |
"functionCode": "item.message = \"New Video: Çeviri Konuşmalar\"\nitem.link = \"https://www.youtube.com/feeds/videos.xml?channel_id=UCiI16ih4d4yCINLOe6sleWA\";\nitem.currentfilelocation = \"CeviriCurrent\";\nitem.lastfilelocation = \"CeviriLast\";\nreturn item;" | |
}, | |
"name": "PATH2", | |
"type": "n8n-nodes-base.functionItem", | |
"typeVersion": 1, | |
"position": [ | |
-120, | |
-40 | |
] | |
}, | |
{ | |
"parameters": { | |
"triggerTimes": { | |
"item": [ | |
{ | |
"hour": 20, | |
"minute": 15 | |
} | |
] | |
} | |
}, | |
"name": "CRON1", | |
"type": "n8n-nodes-base.cron", | |
"typeVersion": 1, | |
"position": [ | |
-470, | |
330 | |
], | |
"disabled": true | |
}, | |
{ | |
"parameters": { | |
"triggerTimes": { | |
"item": [ | |
{ | |
"hour": 20, | |
"minute": 15 | |
} | |
] | |
} | |
}, | |
"name": "CRON2", | |
"type": "n8n-nodes-base.cron", | |
"typeVersion": 1, | |
"position": [ | |
-470, | |
-40 | |
] | |
} | |
], | |
"connections": { | |
"RSS Feed Read": { | |
"main": [ | |
[ | |
{ | |
"node": "CurrentRSSTime", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"IF": { | |
"main": [ | |
[ | |
{ | |
"node": "Send RSS", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Diff Control": { | |
"main": [ | |
[ | |
{ | |
"node": "IF", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"CurrentRSSTime": { | |
"main": [ | |
[ | |
{ | |
"node": "Diff Control", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Send RSS": { | |
"main": [ | |
[ | |
{ | |
"node": "WritePubDate", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"MainFunction": { | |
"main": [ | |
[ | |
{ | |
"node": "RSS Feed Read", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Start": { | |
"main": [ | |
[ | |
{ | |
"node": "PATH2", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"PATH1": { | |
"main": [ | |
[ | |
{ | |
"node": "MainFunction", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"PATH2": { | |
"main": [ | |
[ | |
{ | |
"node": "MainFunction", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"CRON1": { | |
"main": [ | |
[ | |
{ | |
"node": "PATH1", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"CRON2": { | |
"main": [ | |
[ | |
{ | |
"node": "PATH2", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": false, | |
"settings": {}, | |
"id": "52" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment