360 Secure SkillHub
360 安全技能中心

Discord Weather Reporter

该 Skill 通过 curl 调用外部天气服务,按城市查询当前天气、体感温度、风速、湿度、降水概率和 3 天预报,并给出适配 Discord 的简洁展示格式。无需 API 密钥,支持全球多数城市与机场代码;实际发送 Discord 消息的集成未包含,且请求受服务端限流约束。

fuzzyb33s
fuzzyb33s
热度 16.36
最近更新 2026-06-16 19:36:26
分类:生活依赖:代码执行 / 第三方 API应用场景:旅行

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add discord-weather-reporter
Metadata
name
discord-weather-reporter
version
1.0.0
description
Fetch weather forecasts and current conditions, formatted for Discord display. Use when asked about weather, temperature, rain forecasts, or travel planning weather checks. Triggers: 'weather', 'temperature in [city]', 'will it rain', 'forecast for [city]', 'is it going to snow', weather alerts for a location.

Discord Weather Reporter

Fetch current conditions and forecasts, formatted as clean Discord embeds.

Quick Use

# Current weather for a city (one-liner)
curl -s "wttr.in/{city}?format=%l:+%c+%t+(feels+like+%f),+%w+wind,+%h+humidity"

# 3-day forecast
curl -s "wttr.in/{city}?format=v2"

# Will it rain?
curl -s "wttr.in/{city}?format=%l:+%c+%p"

Commands

Current Conditions (one-liner)

curl -s "wttr.in/{city}?format=%l:+%c+%t+(feels+like+%f),+%w+wind,+%h+humidity"

3-Day Forecast

curl -s "wttr.in/{city}"

Precipitation Check

curl -s "wttr.in/{city}?format=%l:+%c+%p"

Week Forecast

curl -s "wttr.in/{city}?format=v2"

Format Codes

  • %c — Condition emoji
  • %t — Temperature
  • %f — "Feels like"
  • %w — Wind speed
  • %h — Humidity
  • %p — Precipitation
  • %l — Location name

Examples

"Weather in London?"

London: ☀️ +18°C (feels like +17°C), 12 km/h wind, 65% humidity

"Will it rain in Tokyo?"

Tokyo: 🌦 Light rain, 4mm expected

"3-day Paris forecast" Full 3-day forecast with daily highs/lows

Notes

  • No API key needed (uses wttr.in)
  • Rate limited; don't spam requests
  • Works for most global cities and airport codes
  • Supports airport codes: curl wttr.in/JFK