Skip to content

Instantly share code, notes, and snippets.

@yazdipour
Last active November 15, 2025 12:13
Show Gist options
  • Select an option

  • Save yazdipour/cbc1373da399b7766abb9b093d69befb to your computer and use it in GitHub Desktop.

Select an option

Save yazdipour/cbc1373da399b7766abb9b093d69befb to your computer and use it in GitHub Desktop.
N8N Auto Daily Düsseldorf Document Status Checker With Telegram

Dokumenten-Verfügbarkeits-Auskunft

  • Fill <<ENTER YOUR Ergebnis NUMBER>> and <<ENTER YOUR CHATID>> and Telegram Credentional for your Telegram Bot.
  • Scheduler Checks your application process if it is ready or not.
image image
{
"name": "Daily Düsseldorf Document Status Checker",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 3
}
]
}
},
"id": "1d293abb-c9a0-4c6d-beae-23947e986ed0",
"name": "Schedule Trigger2",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
848,
400
]
},
{
"parameters": {
"jsCode": "// Get the HTML response\nconst html = $input.first().json.data;\n\n// Method 1: Extract all ausgabeZeile divs with their content\nconst ausgabeZeileRegex = /<tr[^>]*class=[\"']ausgabeZeile[\"'][^>]*>([\\s\\S]*?)<\\/tr>/gi;\nconst matches = [...html.matchAll(ausgabeZeileRegex)];\n\n// Extract text content from matches\nconst results = matches.map(match => {\n const content = match[1]\n .replace(/<script[\\s\\S]*?<\\/script>/gi, '') // Remove scripts\n .replace(/<style[\\s\\S]*?<\\/style>/gi, '') // Remove styles\n .replace(/<[^>]*>/g, ' ') // Remove HTML tags\n .replace(/\\s+/g, ' ') // Normalize whitespace\n .trim();\n return content;\n});\n\nreturn {\n json: {\n ausgabeZeileFound: results.length > 0,\n isReady: results.length > 0 && !results[0].includes('noch nicht'),\n }\n};"
},
"id": "dc245d1a-551e-4315-bc5d-2d7912e1766c",
"name": "Extract Status1",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1248,
400
]
},
{
"parameters": {
"chatId": "<<ENTER TELEGRAM CHATID>>",
"text": "=🇩🇪 {{ $json.ausgabeZeileFound ? \"🟢\" : \"🔴\" }} {{ $json.isReady ? \"🟢\" : \"🔴\" }} \nhttps://tempus-termine.com/dva/index.php\n",
"additionalFields": {
"appendAttribution": false
}
},
"id": "cf1d360a-71ad-44a3-8513-97c0d3e05ec5",
"name": "Send to Telegram1",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1456,
400
],
"webhookId": "10aaecd3-a124-4d62-b6b6-573d4dbda7da",
"credentials": {
}
},
{
"parameters": {
"method": "POST",
"url": "https://tempus-termine.com/dva/index.php?",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.140 Safari/537.36"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"
},
{
"name": "Referer",
"value": "https://tempus-termine.com/dva/index.php?"
},
{
"name": "Origin",
"value": "https://tempus-termine.com"
}
]
},
"sendBody": true,
"contentType": "form-urlencoded",
"bodyParameters": {
"parameters": [
{
"name": "COMMAND",
"value": "CHECK"
},
{
"name": "Nr[]",
"value": "<<ENTER YOUR Ergebnis NUMBER>>"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"id": "39d26bc5-87ba-476e-89f8-b62af72123d0",
"name": "http",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1056,
400
]
}
],
"pinData": {},
"connections": {
"Schedule Trigger2": {
"main": [
[
{
"node": "http",
"type": "main",
"index": 0
}
]
]
},
"Extract Status1": {
"main": [
[
{
"node": "Send to Telegram1",
"type": "main",
"index": 0
}
]
]
},
"http": {
"main": [
[
{
"node": "Extract Status1",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"callerPolicy": "workflowsFromSameOwner",
"availableInMCP": false,
"errorWorkflow": "Q3tGbEVz1UGO57dp",
"timeSavedPerExecution": 1
},
"versionId": "9bd4c0d6-c225-4677-a274-6d7d83072c1c",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "50298a63bff663711fabee7ba8416c48ec642c871fb80983ca2e44c93e4a590d"
},
"id": "z1sfltebQDgko1hV",
"tags": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment