360 Secure SkillHub
360 安全技能中心

DC Weather

通过 curl 调用 Open-Meteo 当前天气接口,并用 jq 解析输出华盛顿特区的温度、风速与天气代码,附天气代码对照表与美化排版示例,无需 API 密钥。

vital1188
vital1188
热度 83.16
最近更新 2026-05-11 16:23:40
分类:生活依赖:代码执行 / 第三方 API应用场景:旅行

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add dc-weather
Metadata
name
dc-weather
description
Check Washington DC weather using Open-Meteo API. Use when user asks about DC weather, current conditions, or needs a weather report for Washington DC.

DC Weather Skill

Get Washington DC weather without API keys using Open-Meteo.

Quick Check

curl -s "https://api.open-meteo.com/v1/forecast?latitude=38.9072&longitude=-77.0369&current_weather=true&temperature_unit=fahrenheit" | jq -r '"DC: \(.current_weather.temperature)°F, wind \(.current_weather.windspeed) mph, code \(.current_weather.weathercode)"'

Weather Codes

Code Condition
0 Clear
1-3 Partly cloudy
45-48 Fog
51-57 Drizzle
61-67 Rain
71-77 Snow
95-99 Thunderstorm

Pretty Format

curl -s "https://api.open-meteo.com/v1/forecast?latitude=38.9072&longitude=-77.0369&current_weather=true&temperature_unit=fahrenheit" | jq -r '"\n🌤️ Washington, DC\n━━━━━━━━━━━━━━\n🌡️  \(.current_weather.temperature)°F\n💨  Wind: \(.current_weather.windspeed) mph\n🌪️  Code: \(.current_weather.weathercode)\n"'