From 770ec3717f0815e2d9f341376d0f87aedf816b99 Mon Sep 17 00:00:00 2001 From: gitea Date: Mon, 1 Jan 2001 00:00:00 +0000 Subject: [PATCH] Update CinemaxxTrack.json --- CinemaxxTrack.json | 569 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 507 insertions(+), 62 deletions(-) diff --git a/CinemaxxTrack.json b/CinemaxxTrack.json index 64d5ac8..9cb0665 100644 --- a/CinemaxxTrack.json +++ b/CinemaxxTrack.json @@ -1,7 +1,7 @@ { - "updatedAt": "2026-01-08T08:35:27.000Z", - "createdAt": "2026-01-04T21:51:46.836Z", - "id": "gkgv22mxUGzKIMZj", + "updatedAt": "2026-01-12T17:45:45.473Z", + "createdAt": "2026-01-12T17:45:45.473Z", + "id": "inkaMM7VEYidwZkOBmT54", "name": "CinemaxxTrack", "active": true, "isArchived": false, @@ -11,10 +11,10 @@ "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ - 0, - 0 + -1936, + 192 ], - "id": "65f10d3a-ac66-4187-b87d-cca0319a9ee3", + "id": "47d2fdeb-97b4-44a6-9bbd-968221b36c14", "name": "When clicking ‘Execute workflow’" }, { @@ -54,10 +54,10 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.3, "position": [ - 208, - 0 + -1728, + 192 ], - "id": "41ded5c0-565c-4c44-9e5f-e2cadeed0903", + "id": "7d7c59de-897e-488e-b0c5-2eddc0e67cbd", "name": "HTTP Request" }, { @@ -68,10 +68,10 @@ "type": "n8n-nodes-base.splitOut", "typeVersion": 1, "position": [ - 416, - 0 + -1520, + 192 ], - "id": "cb3c6ba1-9f2b-4bc2-b83a-fbc5171814c8", + "id": "7d877078-86a3-4e4e-932b-25acff79085e", "name": "Split Out" }, { @@ -81,10 +81,10 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 624, - 0 + -1312, + 192 ], - "id": "f91cfd4f-03dd-471a-916a-7cc1e5fede55", + "id": "2e7f83ef-3c0b-4dc1-a385-cf3db76650aa", "name": "Code in JavaScript" }, { @@ -109,10 +109,10 @@ "type": "@n8n/n8n-nodes-langchain.googleGemini", "typeVersion": 1, "position": [ - 848, - 0 + -1088, + 192 ], - "id": "ed9fb215-82a6-418a-b8bd-d3cb33c3f966", + "id": "bd843f4c-9061-4d55-9fe8-ba1e117a8317", "name": "Message a model2", "retryOnFail": true, "waitBetweenTries": 5000, @@ -120,7 +120,7 @@ "executeOnce": true, "credentials": { "googlePalmApi": { - "id": "6aXxUOlrkR5WFZf4", + "id": "EWlC0h6CFPDYaxlJ", "name": "Google Gemini(PaLM) Api account" } }, @@ -143,10 +143,10 @@ "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ - 1232, - 0 + -704, + 192 ], - "id": "016cbcc0-1e6b-4e8a-9864-bb51a0cede7c", + "id": "9bb8ccac-6131-4d66-b8b2-b896b5497e21", "name": "dataPreparationToJSON" }, { @@ -177,10 +177,10 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ - 1440, - 0 + -496, + 192 ], - "id": "0983d518-3253-41bf-ac1a-9cb62d182a09", + "id": "552c3b5b-e72e-4690-be7e-14e4786dd3bd", "name": "If" }, { @@ -192,16 +192,16 @@ "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ - 1920, - -80 + -16, + 112 ], - "id": "835f77b2-cf3c-494b-8baa-69d0330edec7", + "id": "e54d58a0-0f03-41f7-84dc-dd616d98c77d", "name": "Send a text message", "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", "credentials": { "telegramApi": { - "id": "jGxFCFCy4GyzHcVQ", - "name": "Uptime-Kuma" + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" } } }, @@ -218,16 +218,16 @@ "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ - 1920, - 96 + -16, + 288 ], - "id": "3352db71-a213-4ad6-8717-854b1114790d", + "id": "54b134e5-4418-4a70-9390-f5d621181ecd", "name": "Send a text message1", "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", "credentials": { "telegramApi": { - "id": "jGxFCFCy4GyzHcVQ", - "name": "Uptime-Kuma" + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" } } }, @@ -240,17 +240,17 @@ "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ - 1936, - -192 + 0, + 0 ], - "id": "978140b7-59b2-433f-8c6d-44d69f05afaf", + "id": "30ef9fae-9ee0-4b91-93f9-e473bf725939", "name": "Send a text message2", "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", "executeOnce": true, "credentials": { "telegramApi": { - "id": "jGxFCFCy4GyzHcVQ", - "name": "Uptime-Kuma" + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" } } }, @@ -267,16 +267,16 @@ "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ - 1936, - 256 + 0, + 448 ], - "id": "28c9b01d-acb0-4de5-b089-0e3b61c20d25", + "id": "648ccbd9-7f71-4c18-ae3c-404ccbd7623c", "name": "Send a text message3", "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", "credentials": { "telegramApi": { - "id": "jGxFCFCy4GyzHcVQ", - "name": "Uptime-Kuma" + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" } } }, @@ -302,10 +302,10 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - 0, - -128 + -1936, + 64 ], - "id": "8352cfc0-3d07-4319-bd2b-9e48a9916eef", + "id": "0154d8e9-6f3a-4a11-8a63-caae9a150112", "name": "Schedule Trigger" }, { @@ -315,10 +315,10 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 1648, - -96 + -288, + 96 ], - "id": "cb28d9df-4814-4832-9f3d-dbb8e1b0dc2c", + "id": "ff6565f9-9670-4fa4-89f4-91ee547499e6", "name": "Code in JavaScript1" } ], @@ -441,25 +441,470 @@ } }, "settings": { - "executionOrder": "v1" + "executionOrder": "v1", + "availableInMCP": false }, - "staticData": { - "node:Schedule Trigger": { - "recurrenceRules": [] - } + "staticData": null, + "meta": { + "templateCredsSetupCompleted": true }, - "meta": null, "pinData": {}, - "versionId": "75945c84-11ee-4396-9388-2b183204b858", + "versionId": "39d6f0b7-8553-4325-a840-0dfc29c5e0de", + "activeVersionId": "39d6f0b7-8553-4325-a840-0dfc29c5e0de", "triggerCount": 1, "shared": [ { - "updatedAt": "2026-01-04T21:51:46.839Z", - "createdAt": "2026-01-04T21:51:46.839Z", + "updatedAt": "2026-01-12T17:45:45.475Z", + "createdAt": "2026-01-12T17:45:45.475Z", "role": "workflow:owner", - "workflowId": "gkgv22mxUGzKIMZj", - "projectId": "S4tmpzSj6JlGFOze" + "workflowId": "inkaMM7VEYidwZkOBmT54", + "projectId": "cSAaWNJydnksD5EB" } ], + "activeVersion": { + "updatedAt": "2026-01-12T17:47:01.000Z", + "createdAt": "2026-01-12T17:45:45.476Z", + "versionId": "39d6f0b7-8553-4325-a840-0dfc29c5e0de", + "workflowId": "inkaMM7VEYidwZkOBmT54", + "nodes": [ + { + "parameters": {}, + "type": "n8n-nodes-base.manualTrigger", + "typeVersion": 1, + "position": [ + -1936, + 192 + ], + "id": "47d2fdeb-97b4-44a6-9bbd-968221b36c14", + "name": "When clicking ‘Execute workflow’" + }, + { + "parameters": { + "url": "https://serpapi.com/search", + "sendQuery": true, + "queryParameters": { + "parameters": [ + { + "name": "api_key", + "value": "9e30106018e6a8663078fb9ead5249b53feb90ed6291b84ee3d52cc90dc3d840" + }, + { + "name": "engine", + "value": "google" + }, + { + "name": "q", + "value": "Kinoprogramm CinemaxX Heilbronn" + }, + { + "name": "location", + "value": "Heilbronn" + }, + { + "name": "hl", + "value": "en" + }, + { + "name": "gl", + "value": "de" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.3, + "position": [ + -1728, + 192 + ], + "id": "7d7c59de-897e-488e-b0c5-2eddc0e67cbd", + "name": "HTTP Request" + }, + { + "parameters": { + "fieldToSplitOut": "showtimes", + "options": {} + }, + "type": "n8n-nodes-base.splitOut", + "typeVersion": 1, + "position": [ + -1520, + 192 + ], + "id": "7d877078-86a3-4e4e-932b-25acff79085e", + "name": "Split Out" + }, + { + "parameters": { + "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nvar showtimes_weekends = [];\nvar today_weekday = $now.setLocale('de').weekdayShort;\n\nfor (const item of $input.all()) {\n// if (([\"Fr\",\"Sa\",\"So\"]).includes(today_weekday){\n for (const movie of item.json.movies){\n const alleZeiten = movie.showing\n .map(entry => entry.time.join(\", \")) // Macht aus [\"17:00\", \"20:00\"] -> \"17:00, 20:00\"\n .join(\" | \"); // Verbindet die verschiedenen Gruppen (z.B. 2D und 3D)\n showtimes_weekends.push(\n {\n \"day\": item.json.day,\n \"movie\": movie.name,\n \"time\": alleZeiten,\n \"link\": movie.link\n }\n );\n }\n}\n\nreturn showtimes_weekends;" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + -1312, + 192 + ], + "id": "2e7f83ef-3c0b-4dc1-a385-cf3db76650aa", + "name": "Code in JavaScript" + }, + { + "parameters": { + "modelId": { + "__rl": true, + "value": "models/gemini-2.5-flash", + "mode": "list", + "cachedResultName": "models/gemini-2.5-flash" + }, + "messages": { + "values": [ + { + "content": "=[Showtime start]\n{{ JSON.stringify($('Code in JavaScript').all().map(i => ({ id: i.json.day, name: i.json.movie, time: i.json.time }))) }}\n[Showtime ende]" + } + ] + }, + "options": { + "systemMessage": "Kannst du mir bitte die Tamil Filme aus der JSON die ich angehängt habe und gebe mir nur die item index nummer zurück.\nStelle sicher nur ein Array mit den indexen auszugeben verzichte auf andere texte.\n\nBeispieleingabe:\n[ \n{\n\"day\": \"So\",\n\"movie\": \"Now You See Me: Now You Don't\",\n\"time\": \"22:50\"\n}, \n{\n\"day\": \"So\",\n\"movie\": \"Parasakthi\",\n\"time\": \"19:00 | 10:50, 11:30, 13:00, 15:00, 17:30, 20:30, 22:00 | 16:00\"\n},\n{\n\"day\": \"So\",\n\"movie\": \"Billa\",\n\"time\": \"19:00 | 10:50, 11:30, 13:00, 15:00, 17:30, 20:30, 22:00 | 16:00\"\n}\n]\n\nAusgebendes Format:\n[1,2]\n\nAusgabe wenn kein Tamil Film vorhanden ist\n[]" + } + }, + "type": "@n8n/n8n-nodes-langchain.googleGemini", + "typeVersion": 1, + "position": [ + -1088, + 192 + ], + "id": "bd843f4c-9061-4d55-9fe8-ba1e117a8317", + "name": "Message a model2", + "retryOnFail": true, + "waitBetweenTries": 5000, + "alwaysOutputData": false, + "executeOnce": true, + "credentials": { + "googlePalmApi": { + "id": "EWlC0h6CFPDYaxlJ", + "name": "Google Gemini(PaLM) Api account" + } + }, + "onError": "continueRegularOutput" + }, + { + "parameters": { + "assignments": { + "assignments": [ + { + "id": "5ef46e88-d057-485e-9a75-8dcd244c737f", + "name": "data", + "value": "={{ $json.content.parts[0].text.removeMarkdown().replaceAll('`','') }}", + "type": "array" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.set", + "typeVersion": 3.4, + "position": [ + -704, + 192 + ], + "id": "9bb8ccac-6131-4d66-b8b2-b896b5497e21", + "name": "dataPreparationToJSON" + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 2 + }, + "conditions": [ + { + "id": "752c5b7f-ebad-432a-885d-03920a6a299e", + "leftValue": "={{ $json.data }}", + "rightValue": "", + "operator": { + "type": "array", + "operation": "notEmpty", + "singleValue": true + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + -496, + 192 + ], + "id": "552c3b5b-e72e-4690-be7e-14e4786dd3bd", + "name": "If" + }, + { + "parameters": { + "chatId": "302560724", + "text": "={{ $input.all().map(item => \n \"Day: \" + item.json.day + \"\\n\" + \n \"Name: \" + item.json.movie + \"\\n\" + \n \"Time: \" + item.json.time + \"\\n\" +\n \"Link: \" + item.json.link + \"\\n\\n\" \n).join('') }}", + "additionalFields": {} + }, + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [ + -16, + 112 + ], + "id": "e54d58a0-0f03-41f7-84dc-dd616d98c77d", + "name": "Send a text message", + "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", + "credentials": { + "telegramApi": { + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" + } + } + }, + { + "parameters": { + "chatId": "302560724", + "text": "Keine neuen Tamil Filme in Cinemaxx Heilbronn", + "replyMarkup": "=", + "forceReply": {}, + "replyKeyboardOptions": {}, + "replyKeyboardRemove": {}, + "additionalFields": {} + }, + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [ + -16, + 288 + ], + "id": "54b134e5-4418-4a70-9390-f5d621181ecd", + "name": "Send a text message1", + "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", + "credentials": { + "telegramApi": { + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" + } + } + }, + { + "parameters": { + "chatId": "288081595", + "text": "={{ $input.all().map(item => \n \"Day: \" + item.json.day + \"\\n\" + \n \"Name: \" + item.json.movie + \"\\n\" + \n \"Time: \" + item.json.time + \"\\n\" +\n \"Link: \" + item.json.link + \"\\n\\n\" \n).join('') }}", + "additionalFields": {} + }, + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [ + 0, + 0 + ], + "id": "30ef9fae-9ee0-4b91-93f9-e473bf725939", + "name": "Send a text message2", + "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", + "executeOnce": true, + "credentials": { + "telegramApi": { + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" + } + } + }, + { + "parameters": { + "chatId": "288081595", + "text": "Keine neuen Tamil Filme in Cinemaxx Heilbronn", + "replyMarkup": "=", + "forceReply": {}, + "replyKeyboardOptions": {}, + "replyKeyboardRemove": {}, + "additionalFields": {} + }, + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [ + 0, + 448 + ], + "id": "648ccbd9-7f71-4c18-ae3c-404ccbd7623c", + "name": "Send a text message3", + "webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f", + "credentials": { + "telegramApi": { + "id": "8Xq6WZw99Bofym0I", + "name": "t.me/mydealzcmts_bot" + } + } + }, + { + "parameters": { + "rule": { + "interval": [ + { + "field": "weeks", + "triggerAtDay": [ + 4, + 5, + 6, + 0, + 2, + 3 + ], + "triggerAtHour": 9 + } + ] + } + }, + "type": "n8n-nodes-base.scheduleTrigger", + "typeVersion": 1.3, + "position": [ + -1936, + 64 + ], + "id": "0154d8e9-6f3a-4a11-8a63-caae9a150112", + "name": "Schedule Trigger" + }, + { + "parameters": { + "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nconst movies = []\nfor (const item_index of $input.first().json.data) {\n movies.push($(\"Code in JavaScript\").all().at(item_index))\n}\n\nreturn movies;" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + -288, + 96 + ], + "id": "ff6565f9-9670-4fa4-89f4-91ee547499e6", + "name": "Code in JavaScript1" + } + ], + "connections": { + "When clicking ‘Execute workflow’": { + "main": [ + [ + { + "node": "HTTP Request", + "type": "main", + "index": 0 + } + ] + ] + }, + "HTTP Request": { + "main": [ + [ + { + "node": "Split Out", + "type": "main", + "index": 0 + } + ] + ] + }, + "Split Out": { + "main": [ + [ + { + "node": "Code in JavaScript", + "type": "main", + "index": 0 + } + ] + ] + }, + "Code in JavaScript": { + "main": [ + [ + { + "node": "Message a model2", + "type": "main", + "index": 0 + } + ] + ] + }, + "Message a model2": { + "main": [ + [ + { + "node": "dataPreparationToJSON", + "type": "main", + "index": 0 + } + ] + ] + }, + "dataPreparationToJSON": { + "main": [ + [ + { + "node": "If", + "type": "main", + "index": 0 + } + ] + ] + }, + "If": { + "main": [ + [ + { + "node": "Code in JavaScript1", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Send a text message1", + "type": "main", + "index": 0 + }, + { + "node": "Send a text message3", + "type": "main", + "index": 0 + } + ] + ] + }, + "Schedule Trigger": { + "main": [ + [ + { + "node": "HTTP Request", + "type": "main", + "index": 0 + } + ] + ] + }, + "Code in JavaScript1": { + "main": [ + [ + { + "node": "Send a text message2", + "type": "main", + "index": 0 + }, + { + "node": "Send a text message", + "type": "main", + "index": 0 + } + ] + ] + } + }, + "authors": "Prasanna Ranjan", + "name": "Version 39d6f0b7", + "description": "", + "autosaved": false + }, "tags": [] } \ No newline at end of file