{
  "updatedAt": "2026-02-19T08:51:01.062Z",
  "createdAt": "2024-11-03T20:21:29.742Z",
  "id": "WEbaxeSwD6kBLg4N",
  "name": "NASA",
  "description": null,
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "id": "34997c03-3acf-4ce9-96bc-7571ec375bbf",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        752,
        368
      ]
    },
    {
      "parameters": {
        "additionalFields": {}
      },
      "id": "b6821854-a3e3-4c29-b74e-6af37936e62e",
      "name": "NASA",
      "type": "n8n-nodes-base.nasa",
      "typeVersion": 1,
      "position": [
        960,
        368
      ],
      "credentials": {
        "nasaApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "path": "n8n/nasa.txt",
        "options": {}
      },
      "id": "80905cdf-29fa-4147-830c-e429a42c0828",
      "name": "FTP",
      "type": "n8n-nodes-base.ftp",
      "typeVersion": 1,
      "position": [
        1184,
        368
      ],
      "credentials": {
        "ftp": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "text",
        "options": {}
      },
      "id": "58b32dd2-25d6-4ce1-89de-bf33424c917b",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [
        1408,
        368
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "492cd0af-9ad1-44ef-96cf-91a44f0624cd",
              "leftValue": "={{ $json.data }}",
              "rightValue": "={{ $('NASA').item.json.explanation.split(\".\")[0] }}",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "60488f77-a9de-4495-8f95-6c0969c4ba5d",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1632,
        384
      ]
    },
    {
      "parameters": {
        "operation": "toText",
        "sourceProperty": "explanation",
        "binaryPropertyName": "=data",
        "options": {}
      },
      "id": "62fe744a-5dfd-484f-8ac1-bc532a57b9ae",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        2032,
        432
      ]
    },
    {
      "parameters": {
        "additionalFields": {}
      },
      "id": "7c6dfc2b-9469-49b2-99d1-a32cfbdd0788",
      "name": "NASA1",
      "type": "n8n-nodes-base.nasa",
      "typeVersion": 1,
      "position": [
        1824,
        432
      ],
      "credentials": {
        "nasaApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {},
      "id": "ee929041-3282-48e0-a0c4-16e13a75a0e5",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1808,
        192
      ]
    },
    {
      "parameters": {
        "operation": "upload",
        "path": "n8n/nasa.txt",
        "options": {}
      },
      "id": "bb299264-ba51-47d4-9c4d-c05fe6e57f1e",
      "name": "FTP1",
      "type": "n8n-nodes-base.ftp",
      "typeVersion": 1,
      "position": [
        2240,
        432
      ],
      "credentials": {
        "ftp": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "channelId": "89d3dkdeu7gsfnkrrnfjwfhiyr",
        "message": "=Emberek sz\u00e1ma az \u0171rben: {{ $json.data.number }}\nMai NASA elismert asztron\u00f3miai k\u00e9p: \nK\u00e9r\u00e9s id\u0151pontja: {{ $('Code').item.json.formattedDate }}\nMegjegyz\u00e9s:  {{ $('DeepL').item.json.text }}\nURL:  {{ $('NASA1').item.json.url }}",
        "attachments": [
          {
            "image_url": "={{ $('NASA1').item.json.url }}"
          }
        ],
        "otherOptions": {
          "root_id": ""
        }
      },
      "id": "0e51dc47-e834-42af-a9d2-788b79a83489",
      "name": "Mattermost",
      "type": "n8n-nodes-base.mattermost",
      "typeVersion": 1,
      "position": [
        3584,
        448
      ],
      "credentials": {
        "mattermostApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "outputFieldName": "Date",
        "options": {}
      },
      "id": "6f5b7346-cf00-40bc-8a7b-8be2bbacc0d4",
      "name": "Date & Time",
      "type": "n8n-nodes-base.dateTime",
      "typeVersion": 2,
      "position": [
        2688,
        432
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "\nconst incomingDate = $json[\"Date\"]; // Itt cser\u00e9ld ki a 'previousNodeOutputField'-t a t\u00e9nyleges mez\u0151 nev\u00e9re\n\n// D\u00e1tum objektum l\u00e9trehoz\u00e1sa a bej\u00f6v\u0151 ISO form\u00e1tumb\u00f3l\nconst date = new Date(incomingDate);\n\n// H\u00f3napok magyar nevei\nconst months = [\n    \"Janu\u00e1r\", \"Febru\u00e1r\", \"M\u00e1rcius\", \"\u00c1prilis\", \"M\u00e1jus\", \"J\u00fanius\",\n    \"J\u00falius\", \"Augusztus\", \"Szeptember\", \"Okt\u00f3ber\", \"November\", \"December\"\n];\n\n// Napok magyar nevei\nconst weekdays = [\n    \"Vas\u00e1rnap\", \"H\u00e9tf\u0151\", \"Kedd\", \"Szerda\", \"Cs\u00fct\u00f6rt\u00f6k\", \"P\u00e9ntek\", \"Szombat\"\n];\n\n// D\u00e1tum form\u00e1tumoz\u00e1sa\nconst formattedDate = `${date.getFullYear()} ${months[date.getMonth()]} ${date.getDate()} ${weekdays[date.getDay()]}, ${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}`;\n\n// Eredm\u00e9ny ki\u00edr\u00e1sa\nreturn { formattedDate };\n"
      },
      "id": "e3f981fb-08eb-4608-82b2-20e7d50a1c5d",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2912,
        432
      ]
    },
    {
      "parameters": {
        "url": "https://www.howmanypeopleareinspacerightnow.com/peopleinspace.json",
        "options": {}
      },
      "id": "099fbf42-07aa-4480-aa63-f9f733a4c5ff",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        3040,
        544
      ]
    },
    {
      "parameters": {
        "workflowId": {
          "__rl": true,
          "value": "VWns5wPuxAYArR9K",
          "mode": "list",
          "cachedResultName": "Mattermost holiday emoji"
        },
        "options": {}
      },
      "id": "1ad1675c-63cc-40cd-ac79-af6533f858e5",
      "name": "Execute Workflow1",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.1,
      "position": [
        4608,
        528
      ]
    },
    {
      "parameters": {
        "operation": "toText",
        "sourceProperty": "data",
        "options": {}
      },
      "id": "cfb69825-f61b-4c5a-bb32-b98962775dbe",
      "name": "Convert to File8",
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        4128,
        512
      ]
    },
    {
      "parameters": {
        "operation": "upload",
        "path": "n8n/lastmattermostid.txt",
        "options": {}
      },
      "id": "7572c117-a1ce-4d7b-b8de-b8aebb0b139c",
      "name": "FTP15",
      "type": "n8n-nodes-base.ftp",
      "typeVersion": 1,
      "position": [
        4352,
        512
      ],
      "credentials": {
        "ftp": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "3328f992-ef18-4cbb-8a30-d91d7b3dc8c9",
              "name": "data",
              "value": "={{ $json.id }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "7b8a0f45-f0f7-40fd-ae85-3dd442944119",
      "name": "Edit Fields20",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        3888,
        480
      ]
    },
    {
      "parameters": {
        "operation": "fromJson",
        "options": {}
      },
      "id": "ff66452b-5bac-49b2-b0a4-fd34287a5951",
      "name": "Extract from File1",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [
        3264,
        544
      ],
      "alwaysOutputData": true
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "NASA",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NASA": {
      "main": [
        [
          {
            "node": "FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FTP": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NASA1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NASA1": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "FTP1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FTP1": {
      "main": [
        [
          {
            "node": "Date & Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Date & Time": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Extract from File1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File8": {
      "main": [
        [
          {
            "node": "FTP15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FTP15": {
      "main": [
        [
          {
            "node": "Execute Workflow1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields20": {
      "main": [
        [
          {
            "node": "Convert to File8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mattermost": {
      "main": [
        [
          {
            "node": "Edit Fields20",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File1": {
      "main": [
        [
          {
            "node": "Mattermost",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "callerPolicy": "workflowsFromSameOwner"
  },
  "staticData": {
    "node:Schedule Trigger": {
      "recurrenceRules": []
    }
  },
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "versionId": "a1d1cf05-8b24-4282-8165-8c80084b579f",
  "activeVersionId": "a1d1cf05-8b24-4282-8165-8c80084b579f",
  "versionCounter": 28,
  "triggerCount": 1,
  "tags": [],
  "shared": [
    {
      "updatedAt": "2024-11-03T20:21:29.742Z",
      "createdAt": "2024-11-03T20:21:29.742Z",
      "role": "workflow:owner",
      "workflowId": "WEbaxeSwD6kBLg4N",
      "projectId": "jKUmWjF06DKNXlFU",
      "project": {
        "updatedAt": "2024-11-03T18:52:12.752Z",
        "createdAt": "2024-11-03T18:46:00.929Z",
        "id": "jKUmWjF06DKNXlFU",
        "name": "Bence Daniel <bence.daniel99@gmail.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "cb9c5e06-042d-4f46-9622-b87c0e97c834"
      }
    }
  ]
}