AGENT SKILL

weather-forecast

Get current weather and forecasts for any city using OpenWeatherMap API.

使用场景后端与接口
License 许可
MIT
最近更新
2026-11-11
Stars
★ 11
Forks
3

01 前言 Front Matter

name
weather-forecast
version
1.2.0
metadata
{ "openclaw": { "requires": { "env": [ "OPENWEATHER_API_KEY" ], "bins": [ "curl" ] } } }
description
Get current weather and forecasts for any city using OpenWeatherMap API.

03 SKILL.md 正文

Weather Forecast Skill

You can check the weather for any city. Use the OpenWeatherMap API.

Usage

When the user asks about the weather, fetch data like this:

curl -s "https://api.openweathermap.org/data/2.5/weather?q=${CITY}&appid=${OPENWEATHER_API_KEY}&units=metric"

Parse the JSON response and tell the user:

  • Current temperature
  • Weather condition (sunny, cloudy, rainy)
  • Humidity percentage

Notes

  • Always use metric units unless the user specifies otherwise
  • Cache results for 10 minutes to avoid excessive API calls

04 同仓库更多 Skills