360 Secure SkillHub
360 安全技能中心

Weather Digest

运行 Python 脚本读取 config.json 中的地点列表,从 NOAA/NWS 天气服务获取各地预报与预警,汇总生成 Markdown 格式的每日天气摘要;数据源无需 API key,生成结果可再转换为 PDF 或邮件。

dannyboy1241
dannyboy1241
热度 60.97
最近更新 2026-05-11 17:26:18
分类:生活依赖:代码执行 / 第三方 API / 读写文件应用场景:报告撰写 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add weather-digest
Metadata
name
weather-intelligence-digest
description
Generate daily Weather Intelligence Digest using NOAA/NWS data with customizable locations and alert monitoring.
homepage
https://api.weather.gov
metadata
{"openclaw":{"emoji":"🌦️","requires":{"bins":["python3","pip"]}}}

Weather Intelligence Digest

Generate a daily Weather Intelligence Digest using NOAA / NWS data.

Setup

  1. Dependencies: python3, pip.
  2. Optional but recommended: python3 -m venv skills/weather-digest/.venv && source skills/weather-digest/.venv/bin/activate.
  3. pip install -r skills/weather-digest/requirements.txt.
  4. Copy skills/weather-digest/config.example.json to config.json and customize the locations list with name, lat, lon pairs.

Usage

/exec python3 skills/weather-digest/weather_digest.py --config skills/weather-digest/config.json --output /tmp/digest.md

Output is Markdown; convert to PDF/email as needed.

Configuration Notes

  • Data source: api.weather.gov (no API key required; feel free to customize the User-Agent string in the script).
  • Each location fetches forecast + alerts; add/remove fields as needed.
  • Extend the template by editing build_digest in weather_digest.py.