360 Secure SkillHub
360 安全技能中心

Surfline (public)

无登录调用 Surfline 公开接口:用脚本检索冲浪点 spot ID、获取指定点的预报与当前海况,并按 ~/.config/surfline/favorites.json 汇总多个收藏点,默认输出文本与 JSON,脚本含基础缓存。

分类:生活
miguelcarranza
miguelcarranza
热度 55.59
最近更新 2026-05-11 15:50:52

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add miguelcarranza/surfline
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
surfline
description
Get surf forecasts and current conditions from Surfline public endpoints (no login). Use to look up Surfline spot IDs, fetch forecasts/conditions for specific spots, and summarize multiple favorite spots.

Surfline (public, no login)

This skill uses Surfline public endpoints (no account, no cookies).

Quick start

  1. Find a spot id:
python3 scripts/surfline_search.py "Cardiff Reef"
python3 scripts/surfline_search.py "D Street"
  1. Get a report for a spot id (prints text + JSON by default):
python3 scripts/surfline_report.py <spotId>
# or only one format:
python3 scripts/surfline_report.py <spotId> --text
python3 scripts/surfline_report.py <spotId> --json
  1. Favorites summary (multiple spots) (prints text + JSON by default):

Create ~/.config/surfline/favorites.json (see references/favorites.json.example).

python3 scripts/surfline_favorites.py

Notes

  • Keep requests gentle: don’t hammer endpoints. Scripts include basic caching.
  • Spot IDs are stable; store them once.
  • If Surfline changes endpoints/fields, update scripts/surfline_client.py.