n8n
Workflow
Receive Updates For The Position Of The Iss And Push It To A Firbase
This n8n workflow updates tasks and integrates with various services. Receive Updates For The Position Of The Iss And Push It To A Firbase - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow updates tasks and integrates with various services. Receive Updates For The Position Of The Iss And Push It To A Firbase - ready to import and run in your n8n instance.
Features:
- Scheduled automation with cron triggers
- Makes HTTP requests to external APIs
Source Code
{
"nodes": [
{
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
550,
300
],
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"typeVersion": 1,
"id": "323636f6-bc5a-4e1f-a8d6-fb2a502f00f5"
},
{
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"position": [
750,
300
],
"parameters": {
"url": "https://api.wheretheiss.at/v1/satellites/25544/positions",
"options": [],
"queryParametersUi": {
"parameter": [
{
"name": "timestamps",
"value": "={{Date.now();}}"
}
]
}
},
"typeVersion": 1,
"id": "704758c9-63c1-4bf4-83cd-ef90056646c2"
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
950,
300
],
"parameters": {
"values": {
"number": [
{
"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\"]}}"
}
],
"string": []
},
"options": [],
"keepOnlySet": true
},
"typeVersion": 1,
"id": "cbb7dc01-8527-47b0-a72b-1b2b5697dd34"
},
{
"name": "Google Cloud Realtime Database",
"type": "n8n-nodes-base.googleFirebaseRealtimeDatabase",
"position": [
1150,
300
],
"parameters": {
"path": "iss",
"operation": "push",
"projectId": "",
"attributes": "latitude, longitude, timestamp"
},
"credentials": {
"googleFirebaseRealtimeDatabaseOAuth2Api": "firebase realtime credentials"
},
"typeVersion": 1,
"id": "b8b65aeb-6701-44de-82f1-8ad9d7f2c775"
}
],
"connections": {
"Set": {
"main": [
[
{
"node": "Google Cloud Realtime Database",
"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, API credentials for connected services
Tags
#n8n
#automation
#workflow