跳到正文
TakoAPI
返回技能列表

stormglass

由 dgorissen 提供

Coding Agents & IDEs
315下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Fetch surf-relevant ocean conditions from Stormglass by spot name or coordinates, including current snapshot.

描述

该技能的功能

Fetches ocean and surf conditions from Stormglass by spot name or coordinates. Returns a structured JSON payload covering wave height, swell, wind, gusts, tides, and water temperature. Supports current snapshots and forecast windows up to 72 hours.

The stable JSON output contract and explicit exit codes make it reliable for automated agent pipelines without additional normalization work.

何时使用

  • Check surf conditions before heading to the beach
  • Get tide timing for a specific coastal location
  • Pull wind and gust data for a kitesurfing session
  • Automate daily surf reports via cron pipeline
  • Test offline with mock data before going live

示例工作流

输入

User asks: What are the surf conditions at Highcliffe Beach for the next 48 hours?

智能体
  1. 1

    Resolve spot name to coordinates using Google Geocoding or OSM Nominatim fallback

  2. 2

    Call Stormglass API with resolved coordinates and 48h horizon

  3. 3

    Parse response into structured JSON with wave, swell, wind, and tide fields

  4. 4

    Return forecast summary including best windows and tide extremes

输出

JSON payload with waveHeightM, swellPeriodS, windGustMps, waterTemperatureC, and tide extremes for the next 48 hours

前置要求

  • STORMGLASS_API_KEY environment variable
  • GOOGLE_GEOCODING_API_KEY environment variable (optional, falls back to OpenStreetMap)

安装

clawhub install dgorissen/stormglass

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接