{
  "name": "AstroLogics: daily panchang",
  "nodes": [
    {
      "parameters": {},
      "id": "11111111-0000-4000-8000-000000000001",
      "name": "Run by hand",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        -100
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "daysInterval": 1,
              "triggerAtHour": 6,
              "triggerAtMinute": 0
            }
          ]
        }
      },
      "id": "11111111-0000-4000-8000-000000000002",
      "name": "Every morning",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        100
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a0",
              "name": "lat",
              "value": "28.6139",
              "type": "number"
            },
            {
              "id": "a1",
              "name": "lon",
              "value": "77.209",
              "type": "number"
            },
            {
              "id": "a2",
              "name": "lang",
              "value": "en",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "11111111-0000-4000-8000-000000000003",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "url": "https://api.astrologics.in/v1/panchang",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "date",
              "value": "={{ $now.setZone('Asia/Kolkata').toFormat('yyyy-MM-dd') }}"
            },
            {
              "name": "lat",
              "value": "={{ $json.lat }}"
            },
            {
              "name": "lon",
              "value": "={{ $json.lon }}"
            },
            {
              "name": "lang",
              "value": "={{ $json.lang }}"
            }
          ]
        }
      },
      "id": "11111111-0000-4000-8000-000000000004",
      "name": "Get panchang",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a0",
              "name": "message",
              "value": "={{ $json.data.date + ': ' + $json.data.tithi.label + ', ' + $json.data.nakshatra.label + '. Rahu kaal ' + $json.data.rahu_kaal.start.slice(11, 16) + ' to ' + $json.data.rahu_kaal.end.slice(11, 16) + '.' }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "11111111-0000-4000-8000-000000000005",
      "name": "Write the message",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Run by hand": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every morning": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Settings": {
      "main": [
        [
          {
            "node": "Get panchang",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get panchang": {
      "main": [
        [
          {
            "node": "Write the message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "Asia/Kolkata",
    "saveDataSuccessExecution": "none"
  },
  "pinData": {}
}
