Install
openclaw skills install stormglassFetch surf-relevant ocean conditions from Stormglass by spot name or coordinates, including current snapshot and 1-3 day forecast windows with tides, gusts,...
openclaw skills install stormglassProduce machine-readable surf condition data for cron-driven agent pipelines.
This skill resolves a surf spot name with Google Geocoding (or uses direct coordinates), queries Stormglass, and returns a stable JSON payload for downstream interpretation/rendering.
Provide exactly one location mode:
--location "Spot name" (optional country/region in string), or--lat <float> --lon <float>Optional controls:
--horizon now|24h|48h|72h (default 72h)--output json|pretty (default json, recommended for automation)--source <comma-separated provider list>--mock (offline deterministic data; useful for tests)STORMGLASS_API_KEY for Stormglass requestsGOOGLE_GEOCODING_API_KEY optional for --location (if absent, script falls back to OpenStreetMap Nominatim)In --mock mode, no API keys are required.
| Mode | STORMGLASS_API_KEY | GOOGLE_GEOCODING_API_KEY |
|---|---|---|
--mock | not required | not required |
live --lat/--lon | required | not required |
live --location with Google | required | optional (preferred when set) |
live --location with OSM fallback | required | not required |
Primary credential is STORMGLASS_API_KEY.
JSON output for cron:
python scripts/surf_report.py --location "Highcliffe Beach" --horizon 72h --output json
Direct coordinates:
python scripts/surf_report.py --lat 50.735 --lon -1.705 --horizon 24h --output json
Offline test run:
python scripts/surf_report.py --location "Highcliffe Beach" --horizon now --mock --output json
Top-level keys are stable:
meta: request metadata, timestamps, input mode, optional warningslocation: resolved place details and coordinatesnow: instantaneous surf-relevant metricsforecast: horizon summaries and best windowstides: tide extremes and inferred current tide trendExpected metric coverage (null if unavailable):
waveHeightMswellHeightMswellPeriodSswellDirectionDegwindSpeedMpswindDirectionDegwindGustMpswaterTemperatureC0: success2: invalid CLI usage/arguments3: missing API keys/configuration4: external API failure (geocoding/Stormglass)5: response parsing/normalization failure--output json for downstream agents.reference.md.examples.md for prompt and command patterns.scripts/test_surf_report.py before cron rollout.scripts/normalize_surf_data.py to enforce strict schema defaults before rendering.