Files
n8n-workspace/CinemaxxTrack.json
2001-01-01 00:00:00 +00:00

647 lines
21 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"updatedAt": "2026-01-04T22:53:44.000Z",
"createdAt": "2026-01-04T21:51:46.836Z",
"id": "gkgv22mxUGzKIMZj",
"name": "CinemaxxTrack",
"active": true,
"isArchived": false,
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
],
"id": "65f10d3a-ac66-4187-b87d-cca0319a9ee3",
"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": [
208,
0
],
"id": "41ded5c0-565c-4c44-9e5f-e2cadeed0903",
"name": "HTTP Request"
},
{
"parameters": {
"fieldToSplitOut": "showtimes",
"options": {}
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
416,
0
],
"id": "cb3c6ba1-9f2b-4bc2-b83a-fbc5171814c8",
"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\": today_weekday,\n \"movie\": movie.name,\n \"time\": alleZeiten\n }\n );\n }\n\n }\n \n}\n\nreturn showtimes_weekends;"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
624,
0
],
"id": "f91cfd4f-03dd-471a-916a-7cc1e5fede55",
"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": [
848,
0
],
"id": "ed9fb215-82a6-418a-b8bd-d3cb33c3f966",
"name": "Message a model2",
"retryOnFail": true,
"waitBetweenTries": 5000,
"alwaysOutputData": false,
"executeOnce": true,
"credentials": {
"googlePalmApi": {
"id": "6aXxUOlrkR5WFZf4",
"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": [
1232,
0
],
"id": "016cbcc0-1e6b-4e8a-9864-bb51a0cede7c",
"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": [
1440,
0
],
"id": "0983d518-3253-41bf-ac1a-9cb62d182a09",
"name": "If"
},
{
"parameters": {
"chatId": "302560724",
"text": "={{ $json.data }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1920,
-80
],
"id": "835f77b2-cf3c-494b-8baa-69d0330edec7",
"name": "Send a text message",
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
"credentials": {
"telegramApi": {
"id": "jGxFCFCy4GyzHcVQ",
"name": "Uptime-Kuma"
}
}
},
{
"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": [
1920,
96
],
"id": "3352db71-a213-4ad6-8717-854b1114790d",
"name": "Send a text message1",
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
"credentials": {
"telegramApi": {
"id": "jGxFCFCy4GyzHcVQ",
"name": "Uptime-Kuma"
}
}
},
{
"parameters": {
"chatId": "288081595",
"text": "={{ $json.data }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1936,
-192
],
"id": "978140b7-59b2-433f-8c6d-44d69f05afaf",
"name": "Send a text message2",
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
"credentials": {
"telegramApi": {
"id": "jGxFCFCy4GyzHcVQ",
"name": "Uptime-Kuma"
}
}
},
{
"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": [
1936,
256
],
"id": "28c9b01d-acb0-4de5-b089-0e3b61c20d25",
"name": "Send a text message3",
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
"credentials": {
"telegramApi": {
"id": "jGxFCFCy4GyzHcVQ",
"name": "Uptime-Kuma"
}
}
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "weeks",
"triggerAtDay": [
4,
5,
6,
0
],
"triggerAtHour": 9
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.3,
"position": [
0,
-128
],
"id": "8352cfc0-3d07-4319-bd2b-9e48a9916eef",
"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": [
1648,
-96
],
"id": "cb28d9df-4814-4832-9f3d-dbb8e1b0dc2c",
"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
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": {
"node:Schedule Trigger": {
"recurrenceRules": []
}
},
"meta": null,
"pinData": {
"Code in JavaScript": [
{
"json": {
"day": "So",
"movie": "Anaconda",
"time": "22:40"
}
},
{
"json": {
"day": "So",
"movie": "Kaantha",
"time": "23:10"
}
},
{
"json": {
"day": "So",
"movie": "Billa",
"time": "22:50"
}
},
{
"json": {
"day": "So",
"movie": "Idhayam Murali",
"time": "19:00 | 10:50, 11:30, 13:00, 15:00, 17:30, 20:30, 22:00 | 16:00"
}
},
{
"json": {
"day": "So",
"movie": "Zootopia 2",
"time": "11:00, 13:50, 17:30, 19:30, 22:20"
}
},
{
"json": {
"day": "So",
"movie": "The SpongeBob Movie: Search for SquarePants",
"time": "10:40, 12:50, 15:10, 16:40"
}
},
{
"json": {
"day": "So",
"movie": "Anaconda",
"time": "17:20, 20:20, 23:00"
}
},
{
"json": {
"day": "So",
"movie": "Stromberg Wieder alles wie immer",
"time": "20:00"
}
},
{
"json": {
"day": "So",
"movie": "Checker Tobi 3 - Die heimliche Herrscherin der Erde",
"time": "14:40"
}
},
{
"json": {
"day": "So",
"movie": "Wicked: For Good",
"time": "11:20"
}
},
{
"json": {
"day": "So",
"movie": "Five Nights at Freddy's 2",
"time": "23:10"
}
},
{
"json": {
"day": "So",
"movie": "A PAW Patrol Christmas",
"time": "10:30"
}
},
{
"json": {
"day": "So",
"movie": "Now You See Me: Now You Don't",
"time": "22:40"
}
},
{
"json": {
"day": "So",
"movie": "Avatar: Fire and Ash",
"time": "19:00 | 10:10, 11:00, 13:00, 14:30, 15:30, 17:30, 20:00"
}
},
{
"json": {
"day": "So",
"movie": "Zootopia 2",
"time": "10:20, 10:50, 13:40, 15:40, 17:40"
}
},
{
"json": {
"day": "So",
"movie": "The SpongeBob Movie: Search for SquarePants",
"time": "10:30, 12:40, 15:10, 16:30"
}
},
{
"json": {
"day": "So",
"movie": "Anaconda",
"time": "18:30, 20:30"
}
},
{
"json": {
"day": "So",
"movie": "Checker Tobi 3 - Die heimliche Herrscherin der Erde",
"time": "13:10"
}
},
{
"json": {
"day": "So",
"movie": "Wicked: For Good",
"time": "19:10"
}
},
{
"json": {
"day": "So",
"movie": "A PAW Patrol Christmas",
"time": "10:30"
}
},
{
"json": {
"day": "So",
"movie": "Avatar: Fire and Ash",
"time": "19:20 | 13:00, 13:50, 15:30, 17:30 | 20:00"
}
},
{
"json": {
"day": "So",
"movie": "Zootopia 2",
"time": "13:10, 15:00, 16:00, 18:20"
}
},
{
"json": {
"day": "So",
"movie": "The SpongeBob Movie: Search for SquarePants",
"time": "13:10, 16:50, 18:50"
}
},
{
"json": {
"day": "So",
"movie": "Anaconda",
"time": "17:50, 20:30, 21:20"
}
},
{
"json": {
"day": "So",
"movie": "Stromberg Wieder alles wie immer",
"time": "21:10"
}
},
{
"json": {
"day": "So",
"movie": "Checker Tobi 3 - Die heimliche Herrscherin der Erde",
"time": "14:20"
}
}
]
},
"versionId": "afed6ca9-9ba9-458c-8adf-17bb9d218f54",
"triggerCount": 1,
"shared": [
{
"updatedAt": "2026-01-04T21:51:46.839Z",
"createdAt": "2026-01-04T21:51:46.839Z",
"role": "workflow:owner",
"workflowId": "gkgv22mxUGzKIMZj",
"projectId": "S4tmpzSj6JlGFOze"
}
],
"tags": []
}