Workflow: HTTP Kafka Update

Workflow Details

Download Workflow
{
    "id": "98",
    "name": "Send updates about the position of the ISS every minute to a topic in Kafka",
    "nodes": [
        {
            "name": "Cron",
            "type": "n8n-nodes-base.cron",
            "position": [
                510,
                300
            ],
            "parameters": {
                "triggerTimes": {
                    "item": [
                        {
                            "mode": "everyMinute"
                        }
                    ]
                }
            },
            "typeVersion": 1
        },
        {
            "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
        },
        {
            "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
        },
        {
            "name": "Kafka",
            "type": "n8n-nodes-base.kafka",
            "position": [
                1110,
                300
            ],
            "parameters": {
                "topic": "iss-position",
                "options": []
            },
            "credentials": {
                "kafka": "kafka"
            },
            "typeVersion": 1
        }
    ],
    "active": false,
    "settings": [],
    "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
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

HTTP Slack Create Webhook
View
Automation Triggered
View
Splitout Code Send Triggered
View
Discord AI bot
View
Postgrestool Stickynote Send Triggered
View
Create, update and get a subscriber using the MailerLite node
View
Create a new contact in Agile CRM
View
Splitout Schedule Create Scheduled
View
GoogleSheets Webhook Automate Webhook
View
SEO Blog Generator with GPT-4o, Perplexity, and Telegram Integration
View