Webhook icon
OutputValues icon
Parallel icon
Download icon
Query icon
Labels icon
Log icon
If icon
SlackIncomingWebhook icon
Fail icon

Drone Mission Go/No-Go Gate with NOAA Space Weather, Open-Meteo and DuckDB

Gate drone missions on NOAA Kp storm forecasts and Open-Meteo winds at 120 m, get GO/NO-GO and the next safe window from DuckDB, and alert Slack.

Categories
Infrastructure

Wind at flight altitude, gusts, rain, visibility and daylight ground drones, and so does one input most pre-flight checks skip: the planetary Kp index. Geomagnetic storms degrade GNSS and RTK fixes. This flow gives each booked mission an explained GO or NO-GO and the next safe window. It supports, not replaces, the pilot's own checks.

How it works

  1. Trigger. The planner POSTs mission_id, site, latitude, longitude, start and duration_minutes to the on_mission_booked Webhook and gets the outputs back. Body fields override inputs.
  2. forecasts (Parallel) downloads NOAA SWPC's 3-hour Kp forecast and Open-Meteo's hourly wind at 120 m, gusts, rain, visibility and daylight.
  3. evaluate (DuckDB) unnests the hourly arrays, joins each hour to its Kp block and flags broken limits. GO needs every flight hour to pass; missing data fails. Gaps-and-islands SQL finds the next safe window.
  4. notify (If) posts the verdict and a 24-hour strip to Slack when notify_slack is true. gate fails the run on NO-GO if fail_on_no_go is set; errors reports NO-GO if a forecast is unreachable.

What you get

  • An explained GO/NO-GO per mission, also set as an execution label.
  • The next safe window instead of a bare no.
  • The forecast files behind each verdict, kept for audits.
  • Fail-closed behaviour: no forecast, no flight.

Who it's for

  • Drone operations leads and remote pilots on inspection, survey or mapping work.
  • Platform teams adding a pre-flight check to a mission planner.

Why orchestrate this with Kestra

  • One webhook answers the planner and alerts the team.
  • Parallel downloads, retries and an error branch replace glue scripts.
  • Limits are typed inputs; the rules are SQL a chief pilot can read.

Prerequisites

  • Kestra 2.0 with plugin-jdbc-duckdb and plugin-slack.
  • HTTPS to services.swpc.noaa.gov and api.open-meteo.com, both keyless. Open-Meteo's free tier is non-commercial.

Secrets

  • SLACK_WEBHOOK_URL: Slack webhook for verdicts (when notify_slack is true).
  • DRONE_GATE_WEBHOOK_KEY: key guarding the webhook URL.

Quick start

  1. Create both secrets.
  2. Click Execute to check the default Esbjerg flight at the next full hour.
  3. Set the limits to your aircraft and local rules.
  4. POST missions to /api/v1/main/executions/webhook/company.team/drone-mission-go-no-go-gate/<key>, again an hour before take-off.

How to extend

  • Add airspace restrictions as another parallel branch.
  • Call it as a Subflow before a flight plan upload, with fail_on_no_go on.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.