Stormglass
Fetch surf-relevant ocean conditions from Stormglass by spot name or coordinates, including current
- Rating
- 4.1 (37 reviews)
- Downloads
- 6,842 downloads
- Version
- 1.0.0
Overview
Fetch surf-relevant ocean conditions from Stormglass by spot name or coordinates, including current snapshot.
Complete Documentation
View Source →
Stormglass Surf Skill
Purpose
Produce 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.
Inputs
Provide exactly one location mode:
--location "Spot name"(optional country/region in string), or--lat--lon
--horizon now|24h|48h|72h(default72h)--output json|pretty(defaultjson, recommended for automation)--source--mock(offline deterministic data; useful for tests)
Required Environment Variables
STORMGLASS_API_KEYfor Stormglass requestsGOOGLE_GEOCODING_API_KEYoptional for--location(if absent, script falls back to OpenStreetMap Nominatim)
--mock mode, no API keys are required.Credential Matrix
| 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 |
STORMGLASS_API_KEY.Execution Commands
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
Output Contract (JSON-first)
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 trend
waveHeightMswellHeightMswellPeriodSswellDirectionDegwindSpeedMpswindDirectionDegwindGustMpswaterTemperatureC
Exit Codes
0: success2: invalid CLI usage/arguments3: missing API keys/configuration4: external API failure (geocoding/Stormglass)5: response parsing/normalization failure
Agent Handoff Rules
- Prefer
--output jsonfor downstream agents. - Treat null metrics as "not provided by source", not zero.
- Read field-level details in
reference.md. - Use
examples.mdfor prompt and command patterns. - Use
scripts/test_surf_report.pybefore cron rollout. - Optional: use
scripts/normalize_surf_data.pyto enforce strict schema defaults before rendering.
Installation
openclaw install stormglass
Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.