{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "fb92c5b8-f965-483b-84ca-c286969b3ccd",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        672,
        544
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "d8171a8a-a78e-486e-aed5-02bf72137c3e",
              "name": "place_id",
              "type": "string",
              "value": "london"
            },
            {
              "id": "ffdd0b58-8f4c-43b7-9f9e-efbbfbd537c3",
              "name": "send_to_email",
              "type": "string",
              "value": "user@example.com"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "ccb217ac-a6dc-4a3e-ab5c-f75a1efde030",
      "name": "Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        448,
        544
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 7
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "5050181f-b7ce-47dc-a782-fe8c1c638861",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        896,
        544
      ],
      "parameters": {
        "url": "https://www.meteosource.com/api/v1/free/point?&sections=all&timezone=UTC&language=en&units=metric",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpQueryAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "place_id",
              "value": "={{ $json.place_id }}"
            }
          ]
        }
      },
      "credentials": {
        "httpQueryAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5289038a-6007-4241-a4f2-11ee0f921d0f",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1120,
        544
      ],
      "parameters": {
        "sendTo": "={{ $('Config').item.json.send_to_email }}",
        "message": "=Tomorrow:  {{ $json.daily.data[1].summary }}\n\nPowered by Meteosource",
        "options": {
          "appendAttribution": false
        },
        "subject": "=Weather today:  {{ $json.daily.data[0].summary }}",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "contact-note-1759910018487",
      "name": "Creator Contact Info",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -252,
        -176
      ],
      "parameters": {
        "color": 5,
        "width": 600,
        "height": 440,
        "content": "# Contact Us:\n## Milan @ SmoothWork - [Book a Free Consulting Call](https://smoothwork.ai/book-a-call/)\n![Milan](https://gravatar.com/avatar/95700d17ba300a9f14c1b8cacf933df7720027b3adda9cbe6183d89142925422?r=pg&d=retro&size=100)\n\n\n### We help businesses eliminate busywork by building compact business tools tailored to your process.\n### Contact us for customizing this, or building similar automations.\n\n\ud83d\udce7 hello@smoothwork.ai\n\u25b6\ufe0f [Check us on YouTube](https://www.youtube.com/@vasarmilan)\n\ud83d\udcde [Book a Free Consulting Call](https://smoothwork.ai/book-a-call/)\n\ud83d\udcbc [Add me on Linkedin](https://www.linkedin.com/in/mil%C3%A1n-v%C3%A1s%C3%A1rhelyi-3a9985123/)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "doc-note-1759910018487",
      "name": "Workflow Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -252,
        264
      ],
      "parameters": {
        "width": 600,
        "height": 1000,
        "content": "## Workflow Overview\n\nThis workflow automatically sends you a daily weather forecast email every morning. It fetches current and next-day weather summaries from Meteosource and delivers them directly to your inbox at 7:00 AM, helping you start your day prepared.\n\n### First Setup\n\n1. **Meteosource API Account**: Sign up for a free account at [Meteosource](https://www.meteosource.com/) to get your API key (400 free calls per day)\n2. **Credentials needed**:\n   - **Meteosource credentials**: Create an HTTP Query Auth credential in n8n with the parameter name `key` and your Meteosource API key as the value\n   - **Gmail OAuth2**: Connect your Gmail account to n8n for sending emails\n\n### Configuration\n\nOpen the **Config - place_id and recipient** node to personalize:\n- **place_id**: Change from \"london\" to your desired location (use Meteosource place ID format)\n- **send_to_email**: Update with your preferred recipient email address\n\n### How It Works\n\nThe workflow runs daily at 7:00 AM, retrieves weather data from Meteosource for your configured location, and sends an email with today's weather in the subject line and tomorrow's forecast in the body."
      },
      "typeVersion": 1
    },
    {
      "id": "video-note-1759912267935",
      "name": "Video Walkthrough",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        358,
        -176
      ],
      "parameters": {
        "width": 420,
        "height": 340,
        "content": "# Video Walkthrough\n[![image.png](https://vasarmilan-public.s3.us-east-1.amazonaws.com/blog_thumbnails/thumbnail_recux4gNImLpzqvyd.jpg)](https://youtu.be/mMEX4Zsz4XY)"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Config": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}