모든 Strava 활동 데이터를 Google Sheets에 내보내기
중급
이것은Other분야의자동화 워크플로우로, 13개의 노드를 포함합니다.주로 Set, Code, Sort, Limit, Strava 등의 노드를 사용하며. 모든 Strava 활동 데이터를 Google Sheets에 내보내기
사전 요구사항
- •Google Sheets API 인증 정보
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"nodes": [
{
"id": "fc128eed-1666-46b8-8feb-e6ddf05e85d1",
"name": "일정 트리거",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
380,
240
],
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 2
}
]
}
},
"typeVersion": 1.2
},
{
"id": "830708eb-197b-4bf7-95da-893d78329ab2",
"name": "Strava",
"type": "n8n-nodes-base.strava",
"position": [
380,
480
],
"parameters": {
"limit": 10,
"operation": "getAll"
},
"typeVersion": 1.1
},
{
"id": "de776ebf-3ad5-4c4c-b0c8-7bc74cba5446",
"name": "코드",
"type": "n8n-nodes-base.code",
"position": [
380,
740
],
"parameters": {
"jsCode": "// Obtén los items del nodo \"Strava\"\nconst stravaItems = $('strava_last').all();\n\n// Obtén los items del nodo \"ultimas_id\"\nconst ultimasGuardadasItems = $('saved_last').all();\n\n// Extrae las referencias guardadas en un Set, asegurando el formato como cadena\nconst referenciasGuardadas = new Set(\n ultimasGuardadasItems.map(item => String(item.json.id))\n);\n\n// Filtra los items de \"Strava\" cuyos IDs no estén en las referencias guardadas\nconst filteredItems = stravaItems.filter(item => {\n // Convertir el ID actual de Strava a cadena para comparar correctamente\n return !referenciasGuardadas.has(String(item.json.id));\n});\n\n// Depuración: imprime las referencias y los resultados\nconsole.log('Referencias guardadas:', [...referenciasGuardadas]);\nconsole.log('Items filtrados:', filteredItems);\n\n// Devuelve los items filtrados\nreturn filteredItems;\n\n\n"
},
"typeVersion": 2
},
{
"id": "c8a93e6e-67fc-4f6d-bcde-83d3a885c622",
"name": "Google 스프레드시트",
"type": "n8n-nodes-base.googleSheets",
"position": [
900,
740
],
"parameters": {
"columns": {
"value": {
"Kms": "={{ $json.distancia }}",
"Ref": "={{ $json.id }}",
"Fecha": "={{ $json.fecha }}",
"Track": "=http://www.strava.com/activities/{{ $json.id }}",
"Tiempo": "={{ $json.tiempo }}",
"Desnivel": "={{ $json.elevacion }}"
},
"schema": [
{
"id": "Fecha",
"type": "string",
"display": true,
"required": false,
"displayName": "Fecha",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Kms",
"type": "string",
"display": true,
"required": false,
"displayName": "Kms",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Tiempo",
"type": "string",
"display": true,
"required": false,
"displayName": "Tiempo",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Ref",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Ref",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Track",
"type": "string",
"display": true,
"required": false,
"displayName": "Track",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Bicicleta",
"type": "string",
"display": true,
"required": false,
"displayName": "Bicicleta",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Terreno",
"type": "string",
"display": true,
"required": false,
"displayName": "Terreno",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Desnivel",
"type": "string",
"display": true,
"required": false,
"displayName": "Desnivel",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": []
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 419561402,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/159k8cDL8hZooz-dsHE6ueWf68mBkHhxVCKnWm-lYLqs/edit#gid=419561402",
"cachedResultName": "n8n"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "159k8cDL8hZooz-dsHE6ueWf68mBkHhxVCKnWm-lYLqs",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/159k8cDL8hZooz-dsHE6ueWf68mBkHhxVCKnWm-lYLqs/edit?usp=drivesdk",
"cachedResultName": "Sherlo_Bike"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "tyg7FJlIITkSazyi",
"name": "Nik's Google"
}
},
"typeVersion": 4.5
},
{
"id": "0ce07d54-97af-4e88-9d27-452191a0b3ba",
"name": "strava_last",
"type": "n8n-nodes-base.set",
"position": [
1420,
480
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "423ae4b8-287c-4dc1-b32b-d1b6f1f45efa",
"name": "id",
"type": "number",
"value": "={{ $json.id }}"
},
{
"id": "595802d2-17d0-40be-9e43-d655ffbf4ce0",
"name": "fecha",
"type": "string",
"value": "={{ DateTime.fromISO($json.start_date_local).toFormat('d/M/yyyy') }}"
},
{
"id": "4b39d783-19f2-4a7e-b0e6-dbe2b98f1ae0",
"name": "distancia",
"type": "number",
"value": "={{ Math.round($json.distance / 100) / 10 }}"
},
{
"id": "2f321dc0-435f-4b4d-866c-091ff9eaf9df",
"name": "elevacion",
"type": "number",
"value": "={{ Math.round($json.total_elevation_gain) }}"
},
{
"id": "ba1bb089-5ae7-4e42-ac65-07323c4e1842",
"name": "tiempo",
"type": "string",
"value": "={{ `${Math.floor($json.moving_time / 3600)}:${Math.floor(($json.moving_time % 3600) / 60).toString().padStart(2, '0')}:${($json.moving_time % 60).toString().padStart(2, '0')}` }}\n"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "490f7be9-73c9-4431-8b83-fcdbbcc283eb",
"name": "중복 제거",
"type": "n8n-nodes-base.removeDuplicates",
"position": [
900,
480
],
"parameters": {
"compare": "selectedFields",
"options": {},
"fieldsToCompare": "id"
},
"typeVersion": 2
},
{
"id": "2d1c4dc5-2baa-4c89-a312-4b40381d4e5d",
"name": "activities",
"type": "n8n-nodes-base.googleSheets",
"position": [
660,
240
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 419561402,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/159k8cDL8hZooz-dsHE6ueWf68mBkHhxVCKnWm-lYLqs/edit#gid=419561402",
"cachedResultName": "n8n"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "159k8cDL8hZooz-dsHE6ueWf68mBkHhxVCKnWm-lYLqs",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/159k8cDL8hZooz-dsHE6ueWf68mBkHhxVCKnWm-lYLqs/edit?usp=drivesdk",
"cachedResultName": "Sherlo_Bike"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "tyg7FJlIITkSazyi",
"name": "Nik's Google"
}
},
"typeVersion": 4.5
},
{
"id": "2c7b7939-4ca1-4868-92bf-5fd7384a1103",
"name": "sort_saved",
"type": "n8n-nodes-base.sort",
"position": [
900,
240
],
"parameters": {
"options": {},
"sortFieldsUi": {
"sortField": [
{
"fieldName": "Ref"
}
]
}
},
"typeVersion": 1
},
{
"id": "4e1d9064-6dda-4a01-af48-f278792f8b6b",
"name": "last_saved",
"type": "n8n-nodes-base.limit",
"position": [
1160,
240
],
"parameters": {
"keep": "lastItems",
"maxItems": 10
},
"typeVersion": 1
},
{
"id": "6eb2053a-1101-477b-86e9-113813be2d92",
"name": "saved_last",
"type": "n8n-nodes-base.set",
"position": [
1420,
240
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "50097932-ab91-4af7-9412-925fab1982f0",
"name": "id",
"type": "string",
"value": "={{ $json.Ref }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "afd986f1-0c49-4a69-b948-aefcbff1010f",
"name": "sort_strava",
"type": "n8n-nodes-base.sort",
"position": [
660,
480
],
"parameters": {
"options": {},
"sortFieldsUi": {
"sortField": [
{
"fieldName": "id"
}
]
}
},
"typeVersion": 1
},
{
"id": "16094d29-f35b-492c-9d93-3145dab30cd3",
"name": "last_strava",
"type": "n8n-nodes-base.limit",
"position": [
1160,
480
],
"parameters": {
"keep": "lastItems",
"maxItems": 10
},
"typeVersion": 1
},
{
"id": "9986360b-fcd3-42f4-ad13-aea69f6d1a80",
"name": "sort_results",
"type": "n8n-nodes-base.sort",
"position": [
660,
740
],
"parameters": {
"options": {},
"sortFieldsUi": {
"sortField": [
{
"fieldName": "id"
}
]
}
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Code": {
"main": [
[
{
"node": "9986360b-fcd3-42f4-ad13-aea69f6d1a80",
"type": "main",
"index": 0
}
]
]
},
"830708eb-197b-4bf7-95da-893d78329ab2": {
"main": [
[
{
"node": "afd986f1-0c49-4a69-b948-aefcbff1010f",
"type": "main",
"index": 0
}
]
]
},
"2d1c4dc5-2baa-4c89-a312-4b40381d4e5d": {
"main": [
[
{
"node": "2c7b7939-4ca1-4868-92bf-5fd7384a1103",
"type": "main",
"index": 0
}
]
]
},
"4e1d9064-6dda-4a01-af48-f278792f8b6b": {
"main": [
[
{
"node": "6eb2053a-1101-477b-86e9-113813be2d92",
"type": "main",
"index": 0
}
]
]
},
"6eb2053a-1101-477b-86e9-113813be2d92": {
"main": [
[
{
"node": "830708eb-197b-4bf7-95da-893d78329ab2",
"type": "main",
"index": 0
}
]
]
},
"2c7b7939-4ca1-4868-92bf-5fd7384a1103": {
"main": [
[
{
"node": "4e1d9064-6dda-4a01-af48-f278792f8b6b",
"type": "main",
"index": 0
}
]
]
},
"16094d29-f35b-492c-9d93-3145dab30cd3": {
"main": [
[
{
"node": "0ce07d54-97af-4e88-9d27-452191a0b3ba",
"type": "main",
"index": 0
}
]
]
},
"afd986f1-0c49-4a69-b948-aefcbff1010f": {
"main": [
[
{
"node": "Remove Duplicates",
"type": "main",
"index": 0
}
]
]
},
"0ce07d54-97af-4e88-9d27-452191a0b3ba": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"9986360b-fcd3-42f4-ad13-aea69f6d1a80": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "2d1c4dc5-2baa-4c89-a312-4b40381d4e5d",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates": {
"main": [
[
{
"node": "16094d29-f35b-492c-9d93-3145dab30cd3",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 기타
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
시각화 참조 라이브러리에서 n8n 노드를 탐색
可视化 참조 라이브러리에서 n8n 노드를 탐색
If
Ftp
Set
+
If
Ftp
Set
113 노드I versus AI
기타
Google 업로드至 YouTube
AI 생성 Google Drive 메타데이터 포함 YouTube 자동 음악 동영상 생성 및 게시
If
Set
Code
+
If
Set
Code
73 노드danejw
기타
YT 잠자리 이야기 - 짧은 비디오 - N8N 시장
OpenAI를 사용하여 YouTube 잠자리 이야기 생성
Set
Code
Wait
+
Set
Code
Wait
43 노드Samautomation.work
기타
시리즈 고해상도 Olimpo와 TorrentLand
여러 RSS 소스를 합쳐서 Telegram으로 전송합니다.
Set
Code
Sort
+
Set
Code
Sort
13 노드Sherlockes
마케팅
Mistral AI, LinkedIn 및 Google Sheets를 사용한 구직 활동 및 이력서 맞춤화 자동화
Mistral AI, LinkedIn 및 Google Sheets를 사용한 채용 공고 검색 및 이력서 맞춤화 자동화
Set
Code
Html
+
Set
Code
Html
46 노드Jordan Hoyle
개인 생산성
RSS 피드 스마트 허브 및 매일 Slack 요약
Gemini AI를 사용한 RSS 피드 뉴스 인텔리전스 자동화, Notion 및 Slack으로 푸시
Set
Code
Sort
+
Set
Code
Sort
29 노드Takuya Ojima
시장 조사