Create a solar event-based schedule that executes a webhook or workflow based on sunrise, sunset, or other solar events
| Field | Type | Required | Description |
|---|---|---|---|
solar_event | string | Yes | Solar event type: "sunrise", "sunset", "civil_dawn", "civil_dusk", "nautical_dawn", "nautical_dusk", "astronomical_dawn", "astronomical_dusk" |
solar_lat | string | Yes | Latitude in decimal degrees (e.g., "40.7128" for New York) |
solar_long | string | Yes | Longitude in decimal degrees (e.g., "-74.0060" for New York) |
solar_offset_seconds | integer | No | Offset in seconds to adjust timing (e.g., 5 for 5 seconds after, -300 for 5 minutes before) |
is_one_off_task | boolean | Yes | Set to true if the schedule should run only once, false for recurring execution |
schedule_to | string | Yes | Target type: "webhook" or "workflow" |
model_to_schedule_uuid | string | Yes | UUID of the webhook or workflow template to schedule (as per schedule_to) |
initial_context_template | object | No | Key-value pairs passed as {{ initial.key }} variables to the webhook/workflow |
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the schedule was created successfully |
details | string | Success message |
| Event | Description |
|---|---|
"sunrise" | When the sun appears above the horizon |
"sunset" | When the sun disappears below the horizon |
"civil_dawn" | Morning when the sun is 6° below the horizon (bright enough for most activities) |
"civil_dusk" | Evening when the sun is 6° below the horizon (still bright enough for most activities) |
"nautical_dawn" | Morning when the sun is 12° below the horizon (horizon visible at sea) |
"nautical_dusk" | Evening when the sun is 12° below the horizon (horizon visible at sea) |
"astronomical_dawn" | Morning when the sun is 18° below the horizon (dark enough for astronomical observations) |
"astronomical_dusk" | Evening when the sun is 18° below the horizon (dark enough for astronomical observations) |
"40.7128", "-74.0060")| Location | Latitude | Longitude |
|---|---|---|
| New York, USA | 40.7128 | -74.0060 |
| London, UK | 51.5074 | -0.1278 |
| Tokyo, Japan | 35.6762 | 139.6503 |
| Mumbai, India | 19.0760 | 72.8777 |
| Sydney, Australia | -33.8688 | 151.2093 |
solar_offset_seconds field allows you to adjust the execution time relative to the solar event:
1800 = 30 minutes after sunrise)-300 = 5 minutes before sunset)initial_context_template object allows you to pass variables to your webhook or workflow that can be accessed using {{ initial.key }} syntax:
{{ initial.key }} will be replaced with the value{{ initial.key }} can be used in header values{{ initial.key }} can be used in query parameters{{ initial.key }} can be used in URL paths{{ #secret_key }} for vault secrets{{ step.response.variable }} in workflowsAPI key for authentication. Get this from your dashboard by selecting a brand and going to API Keys section.
Brand UUID for authentication. Get this from your dashboard after adding a brand - it will be displayed in the UI.
Solar schedule configuration
Solar event type
sunrise, sunset, civil_dawn, civil_dusk, nautical_dawn, nautical_dusk, astronomical_dawn, astronomical_dusk Latitude in decimal degrees
Longitude in decimal degrees
Target type: 'webhook' or 'workflow'
webhook, workflow UUID of the webhook or workflow template to schedule
Offset in seconds to adjust timing (e.g., 5 for 5 seconds after, -300 for 5 minutes before)
Key-value pairs passed as {{ initial.key }} variables to the webhook/workflow