diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index f7465d2..ce5c428 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -107,6 +107,20 @@ "title": "n8n" } }, + { + "id": "1ab72107b1a8a7e9", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "Temporary/n8n - journaler.md", + "mode": "source", + "source": false + }, + "icon": "lucide-file", + "title": "n8n - journaler" + } + }, { "id": "be6b5d9342950966", "type": "leaf", @@ -136,7 +150,7 @@ } } ], - "currentTab": 8 + "currentTab": 7 } ], "direction": "vertical" @@ -268,13 +282,13 @@ "state": { "type": "outline", "state": { - "file": "0 Journal/0 Daily/2025-07-18.md", + "file": "Temporary/n8n - journaler.md", "followCursor": false, "showSearch": false, "searchQuery": "" }, "icon": "lucide-list", - "title": "Outline of 2025-07-18" + "title": "Outline of n8n - journaler" } }, { @@ -383,11 +397,13 @@ "periodic-notes:Open today": false } }, - "active": "9080c9fd3a4f2e8d", + "active": "1ab72107b1a8a7e9", "lastOpenFiles": [ + "Temporary/n8n.md", + "Temporary/n8n - journaler.md", + "0 Journal/0 Daily/2025-07-18.md", "0 Journal/0 Daily/2025-07-25.md", "0 Journal/0 Daily/2025-07-17.md", - "Temporary/n8n.md", "0 Journal/0 Daily/2025-07-23.md", "Temporary/n8n - ideas.md", "Temporary/n8n - ideas.sync-conflict-20250721-214225-LIUMLEB.md", @@ -398,7 +414,6 @@ "0 Journal/0 Daily/2025-07-22.md", "Temporary/Pandas.md", "2 Personal/Lists/Business Ideas.md", - "0 Journal/0 Daily/2025-07-18.md", "Attachments/Pasted image 20250721142129.png", "Attachments/Pasted image 20250721140942.png", "Attachments/Pasted image 20250721140924.png", @@ -416,7 +431,6 @@ "0 Journal/0 Daily/2025-07-07.md", "0 Journal/1 Weekly/2025-W28.md", "0 Journal/0 Daily/2025-07-04.md", - "Temporary/Madgwick Filter.md", "2 Personal/Projects/Robotics/Untitled", "2 Personal/Projects/Robotics", "Attachments/Pasted image 20250630155216.png", diff --git a/Temporary/n8n - journaler.md b/Temporary/n8n - journaler.md new file mode 100644 index 0000000..6bc59fc --- /dev/null +++ b/Temporary/n8n - journaler.md @@ -0,0 +1,685 @@ + +{ + "nodes": [ + { + "parameters": { + "updates": [ + "message" + ], + "additionalFields": {} + }, + "id": "7b99935b-01eb-453d-9ad1-40e8d708ea6a", + "name": "Telegram Trigger", + "type": "n8n-nodes-base.telegramTrigger", + "typeVersion": 1.2, + "position": [ + -1872, + 448 + ], + "webhookId": "your-webhook-id", + "credentials": { + "telegramApi": { + "id": "gk9MVoPsOO4QNHcj", + "name": "Telegram account" + } + } + }, + { + "parameters": { + "chatId": "={{ $json.message.chat.id }}", + "text": "This bot is private and does not work with your credentials", + "additionalFields": {} + }, + "id": "6dd4c673-06b1-4cc0-9d3c-876736c07dff", + "name": "Send Denial", + "type": "n8n-nodes-ba5se.telegram", + "typeVersion": 1.2, + "position": [ + -1712, + 656 + ], + "webhookId": "0d2acfc6-8c65-49be-9132-0228bb2f5805", + "credentials": { + "telegramApi": { + "id": "gk9MVoPsOO4QNHcj", + "name": "Telegram account" + } + } + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 2 + }, + "conditions": [ + { + "id": "41d06a9b-2038-4a3c-9f17-3ed05859cee3", + "leftValue": "={{ $json.message.from.username }}", + "rightValue": "Ecuashungo", + "operator": { + "type": "string", + "operation": "equals", + "name": "filter.operator.equals" + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + -1664, + 448 + ], + "id": "b7bcc023-e329-4e15-8c33-bffc708b4523", + "name": "FilterEcuashungoMsg" + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 2 + }, + "conditions": [ + { + "id": "ed301093-c007-4aea-a304-d5598fd2b08f", + "leftValue": "={{ $json.message.voice }}", + "rightValue": "", + "operator": { + "type": "object", + "operation": "exists", + "singleValue": true + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + -1440, + 432 + ], + "id": "109ef9c4-2776-4218-b67f-38d51a7866a2", + "name": "IsVoice" + }, + { + "parameters": { + "chatId": "={{ $json.message.chat.id }}", + "text": "Voice received", + "additionalFields": {} + }, + "id": "46d202a7-6c12-48e6-9079-29d0cbc966c7", + "name": "VoiceConfirmation", + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [ + -1168, + 672 + ], + "webhookId": "0d2acfc6-8c65-49be-9132-0228bb2f5805", + "credentials": { + "telegramApi": { + "id": "gk9MVoPsOO4QNHcj", + "name": "Telegram account" + } + } + }, + { + "parameters": { + "chatId": "={{ $json.message.chat.id }}", + "text": "Text Received", + "additionalFields": {} + }, + "id": "78676ac3-b8c7-49b7-965e-7bb4855dbf40", + "name": "TextConfirmation", + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [ + -1472, + 672 + ], + "webhookId": "0d2acfc6-8c65-49be-9132-0228bb2f5805", + "credentials": { + "telegramApi": { + "id": "gk9MVoPsOO4QNHcj", + "name": "Telegram account" + } + } + }, + { + "parameters": { + "resource": "file", + "fileId": "={{ $json.message.voice.file_id }}" + }, + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [ + -1120, + 416 + ], + "id": "fbd2aff4-a9b7-4d5f-bde4-0e9d6ab9b42a", + "name": "DownloadVoiceMessage", + "webhookId": "4ed3df7a-63c3-43e4-96c7-9c89ca030c99", + "credentials": { + "telegramApi": { + "id": "gk9MVoPsOO4QNHcj", + "name": "Telegram account" + } + } + }, + { + "parameters": { + "operation": "write", + "fileName": "=voice_{{ $runIndex }}_{{ Date.now() }}.oga", + "options": { + "append": false + } + }, + "id": "1e957662-0f66-42ca-81a8-fbaf9fae5640", + "name": "Save OGA File", + "type": "n8n-nodes-base.readWriteFile", + "typeVersion": 1, + "position": [ + -592, + 240 + ] + }, + { + "parameters": { + "command": "=ffmpeg -y -i \"{{ $json.fileName }}\" \"{{ $json.fileName.replace('.oga', '.wav') }}\"" + }, + "id": "b69d8dbc-3668-4183-beb7-3040dc69b245", + "name": "Convert OGA to WAV", + "type": "n8n-nodes-base.executeCommand", + "typeVersion": 1, + "position": [ + -384, + 240 + ] + }, + { + "parameters": { + "fileSelector": "={{ $('Save OGA File').item.json.fileName.replace('.oga', '.wav') }}", + "options": {} + }, + "id": "b5584d4b-dd6c-4af1-96a4-3d22633b3365", + "name": "Read WAV File", + "type": "n8n-nodes-base.readWriteFile", + "typeVersion": 1, + "position": [ + -192, + 240 + ] + }, + { + "parameters": { + "url": "= https://api.telegram.org/file/bot{{$env.TELEGRAM_BOT_TOKEN}}/{{ $json.result.file_path }}", + "options": {} + }, + "id": "54ee092e-100b-480e-8fae-f68589dbc9d7", + "name": "Download Voice File", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.2, + "position": [ + -784, + 240 + ] + }, + { + "parameters": { + "method": "POST", + "url": "http://speaches:8080/v1/audio/transcriptions", + "sendBody": true, + "contentType": "multipart-form-data", + "bodyParameters": { + "parameters": [ + { + "name": "model", + "value": "=Systran/faster-whisper-small" + }, + { + "name": "response_format", + "value": "json" + }, + { + "parameterType": "formBinaryData", + "name": "file", + "inputDataFieldName": "data" + } + ] + }, + "options": { + "timeout": 600000 + } + }, + "id": "079cbad2-bff9-4de3-b9cf-21ad50731982", + "name": "Transcribe Audio", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.2, + "position": [ + 16, + -16 + ] + }, + { + "parameters": { + "url": "http://speaches:8080/v1/models", + "options": { + "timeout": 600000 + } + }, + "id": "c6bced5d-1fcb-4624-ac01-6ae717435d80", + "name": "GetModels", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.2, + "position": [ + -368, + 0 + ] + } + ], + "connections": { + "Telegram Trigger": { + "main": [ + [ + { + "node": "FilterEcuashungoMsg", + "type": "main", + "index": 0 + } + ] + ] + }, + "FilterEcuashungoMsg": { + "main": [ + [ + { + "node": "IsVoice", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Send Denial", + "type": "main", + "index": 0 + } + ] + ] + }, + "IsVoice": { + "main": [ + [ + { + "node": "VoiceConfirmation", + "type": "main", + "index": 0 + }, + { + "node": "DownloadVoiceMessage", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "TextConfirmation", + "type": "main", + "index": 0 + } + ] + ] + }, + "DownloadVoiceMessage": { + "main": [ + [ + { + "node": "Download Voice File", + "type": "main", + "index": 0 + } + ] + ] + }, + "Save OGA File": { + "main": [ + [ + { + "node": "Convert OGA to WAV", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convert OGA to WAV": { + "main": [ + [ + { + "node": "Read WAV File", + "type": "main", + "index": 0 + } + ] + ] + }, + "Read WAV File": { + "main": [ + [ + { + "node": "Transcribe Audio", + "type": "main", + "index": 0 + } + ] + ] + }, + "Download Voice File": { + "main": [ + [ + { + "node": "Save OGA File", + "type": "main", + "index": 0 + } + ] + ] + }, + "GetModels": { + "main": [ + [ + { + "node": "Transcribe Audio", + "type": "main", + "index": 0 + } + ] + ] + } + }, + "pinData": { + "Telegram Trigger": [ + { + "update_id": 99466293, + "message": { + "message_id": 29, + "from": { + "id": 515490296, + "is_bot": false, + "first_name": "Claudio", + "last_name": "Fritsche", + "username": "Ecuashungo", + "language_code": "en" + }, + "chat": { + "id": 515490296, + "first_name": "Claudio", + "last_name": "Fritsche", + "username": "Ecuashungo", + "type": "private" + }, + "date": 1753689139, + "voice": { + "duration": 2, + "mime_type": "audio/ogg", + "file_id": "AwACAgQAAxkBAAMdaIcsM5S3OFPr6B3-PDawHmmlrrIAAq4bAAK_BDlQASdK_yV7rlk2BA", + "file_unique_id": "AgADrhsAAr8EOVA", + "file_size": 11359 + } + } + } + ], + "DownloadVoiceMessage": [ + { + "ok": true, + "result": { + "file_id": "AwACAgQAAxkBAAMdaIcsM5S3OFPr6B3-PDawHmmlrrIAAq4bAAK_BDlQASdK_yV7rlk2BA", + "file_unique_id": "AgADrhsAAr8EOVA", + "file_size": 11359, + "file_path": "voice/file_1.oga" + } + } + ], + "GetModels": [ + { + "data": [ + { + "id": "Systran/faster-whisper-large-v3", + "created": 1753777798, + "object": "model", + "owned_by": "Systran", + "language": [ + "en", + "zh", + "de", + "es", + "ru", + "ko", + "fr", + "ja", + "pt", + "tr", + "pl", + "ca", + "nl", + "ar", + "sv", + "it", + "id", + "hi", + "fi", + "vi", + "he", + "uk", + "el", + "ms", + "cs", + "ro", + "da", + "hu", + "ta", + "no", + "th", + "ur", + "hr", + "bg", + "lt", + "la", + "mi", + "ml", + "cy", + "sk", + "te", + "fa", + "lv", + "bn", + "sr", + "az", + "sl", + "kn", + "et", + "mk", + "br", + "eu", + "is", + "hy", + "ne", + "mn", + "bs", + "kk", + "sq", + "sw", + "gl", + "mr", + "pa", + "si", + "km", + "sn", + "yo", + "so", + "af", + "oc", + "ka", + "be", + "tg", + "sd", + "gu", + "am", + "yi", + "lo", + "uz", + "fo", + "ht", + "ps", + "tk", + "nn", + "mt", + "sa", + "lb", + "my", + "bo", + "tl", + "mg", + "as", + "tt", + "haw", + "ln", + "ha", + "ba", + "jw", + "su", + "yue" + ], + "task": "automatic-speech-recognition" + }, + { + "id": "Systran/faster-whisper-small", + "created": 1753777738, + "object": "model", + "owned_by": "Systran", + "language": [ + "en", + "zh", + "de", + "es", + "ru", + "ko", + "fr", + "ja", + "pt", + "tr", + "pl", + "ca", + "nl", + "ar", + "sv", + "it", + "id", + "hi", + "fi", + "vi", + "he", + "uk", + "el", + "ms", + "cs", + "ro", + "da", + "hu", + "ta", + "no", + "th", + "ur", + "hr", + "bg", + "lt", + "la", + "mi", + "ml", + "cy", + "sk", + "te", + "fa", + "lv", + "bn", + "sr", + "az", + "sl", + "kn", + "et", + "mk", + "br", + "eu", + "is", + "hy", + "ne", + "mn", + "bs", + "kk", + "sq", + "sw", + "gl", + "mr", + "pa", + "si", + "km", + "sn", + "yo", + "so", + "af", + "oc", + "ka", + "be", + "tg", + "sd", + "gu", + "am", + "yi", + "lo", + "uz", + "fo", + "ht", + "ps", + "tk", + "nn", + "mt", + "sa", + "lb", + "my", + "bo", + "tl", + "mg", + "as", + "tt", + "haw", + "ln", + "ha", + "ba", + "jw", + "su" + ], + "task": "automatic-speech-recognition" + } + ], + "object": "list" + } + ] + }, + "meta": { + "templateCredsSetupCompleted": true, + "instanceId": "843cd4f62b22d87ed2523ea5a6f75c812336bacfdaeced3bc07d05264621f131" + } +} \ No newline at end of file