n8n
Workflow
Send Updates About The Position Of The Iss Every Minute To A Topic In Kafka
This n8n workflow sends tasks and integrates with various services. Send Updates About The Position Of The Iss Every Minute To A Topic In Kafka - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow sends tasks and integrates with various services. Send Updates About The Position Of The Iss Every Minute To A Topic In Kafka - ready to import and run in your n8n instance.
Features:
- Scheduled automation with cron triggers
- Makes HTTP requests to external APIs
- Scheduled execution
- Sends notifications or updates
Source Code
{
"nodes": [
{
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
510,
300
],
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"typeVersion": 1,
"id": "52112962-4b8a-44a6-9eb1-c070345619ef"
},
{
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"position": [
710,
300
],
"parameters": {
"url": "https://api.wheretheiss.at/v1/satellites/25544/positions",
"options": [],
"queryParametersUi": {
"parameter": [
{
"name": "timestamps",
"value": "={{Date.now();}}"
}
]
}
},
"typeVersion": 1,
"id": "68e4efd4-d788-46af-92de-c9e132b03156"
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
910,
300
],
"parameters": {
"values": {
"number": [],
"string": [
{
"name": "Name",
"value": "={{$node[\"HTTP Request\"].json[\"0\"][\"name\"]}}"
},
{
"name": "Latitude",
"value": "={{$node[\"HTTP Request\"].json[\"0\"][\"latitude\"]}}"
},
{
"name": "Longitude",
"value": "={{$node[\"HTTP Request\"].json[\"0\"][\"longitude\"]}}"
},
{
"name": "Timestamp",
"value": "={{$node[\"HTTP Request\"].json[\"0\"][\"timestamp\"]}}"
}
]
},
"options": [],
"keepOnlySet": true
},
"typeVersion": 1,
"id": "d963e661-1236-48fe-936c-2574c060b02e"
},
{
"name": "Kafka",
"type": "n8n-nodes-base.kafka",
"position": [
1110,
300
],
"parameters": {
"topic": "iss-position",
"options": []
},
"credentials": {
"kafka": "kafka"
},
"typeVersion": 1,
"id": "efb81eb8-ed2d-4671-86f9-90d78e90ee8d"
}
],
"connections": {
"Set": {
"main": [
[
{
"node": "Kafka",
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, Kafka API credentials
Tags
#n8n
#automation
#workflow