skills-weather

Get the weather for a specific location or coordinates

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skills-weather" with this command: npx skills add mangonob/skills-weather

Weather Skill

Installation

npm

npm install -g skills-weather

pnpm

pnpm add -g skills-weather

Parameters

  • -V, --version: output the version number
  • -l, --location <string>: Location to get the weather for
  • -d, --days <number>: Specify the number of days to get the weather forecast for.
  • -h, --hours <number>: Specify the number of hours to get the weather forecast for.
  • -f, --config <string>: Path to the config file
  • -c, --coordinates <string>: Latitude and longitude to get the weather for (format: lon,lat)
  • --help: display help for command

Parameter constraints:

  • --location and --coordinates cannot be used together. You must provide at least one of them.
  • --days and --hours cannot be used together. If neither is provided, real-time weather will be returned.

Environment variables:

  • SKILLS_WEATHER_CONFIG_FILE_PATH: Optional environment variable to specify the path to the configuration file. If not provided, the skill will look for a default config file in the current directory.

Examples

Get real-time weather:

  • Get real-time weather for New York: skills-weather -l "New York"
  • Get real-time weather for specific coordinates: skills-weather -c "-74.0060,40.7128"
  • Get real-time weather for London (with a specified config file): skills-weather -l "London" -f "/path/to/config.json"

Get daily weather forecasts:

  • Get today's weather forecast for Futian District, Shenzhen: skills-weather -l "futian" -d 1
  • Get Beijing's weather forecast for the next 3 days: skills-weather -l "北京" -d 3
  • Get a one-month weather forecast for specific coordinates: skills-weather -c "116.4074,39.9042" -d 30
  • Get Shanghai's weather forecast for the next 2 days (with a specified config file): skills-weather -l "上海" -d 2 -f "/path/to/config.json"

Get hourly weather forecasts:

  • Get Guangzhou's weather forecast for the next 12 hours: skills-weather -l "广州" -h 12
  • Get a 6-hour weather forecast for specific coordinates: skills-weather -c "121.4737,31.2304" -h 6
  • Get Shenzhen's weather forecast for the next 24 hours (with a specified config file): skills-weather -l "深圳" -h 24 -f "/path/to/config.json"

Supported Weather Data Providers

Configuration File

和风天气

Default config file path: ~/.skills-weather-config.json
Example:
{
	"privateKey": "G7refSYx9TWAPADGuOdyGycWVNr0POaebYddeNtDjxSSN01b0165TITV9fA=",
	"appId": "BB9A36BAB1",
	"credentialId": "3207A9092A",
	"apiHost": "0dfe03a7c3.re.qweatherapi.com"
}
Field Descriptions
  • privateKey: A private key provided by QWeather for authentication.
  • appId: The application ID provided by QWeather to identify the app.
  • credentialId: A credential ID provided by QWeather for authentication.
  • apiHost: The host address of the QWeather API.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

weather-cn-pro

中国天气网增强版 - 查询中国城市的实时天气、逐小时预报、7天预报和生活指数。 相比基础版增加:逐小时预报、7天预报、更好的格式化输出。 作者: Jeremy

Registry SourceRecently Updated
2680Profile unavailable
General

weather-cn-fixed

中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)

Registry SourceRecently Updated
2660Profile unavailable
General

QWeather China

基于中国气象局数据的完整天气服务,通过和风天气API提供实时天气、天气预报、生活指数、空气质量等全方位天气信息。专为中国用户优化,数据更准确,功能更全面。

Registry SourceRecently Updated
3820Profile unavailable
General

天气查询 - 即刻数据

天气查询。根据省份、城市、区县查询当前天气实况、未来7天和未来15天天气预报。适用场景:用户说“查一下深圳南山区天气”“广州未来7天天气怎么样”“北京未来15天会不会下雨”等。数据由即刻数据(jikeapi.cn)开放接口提供。

Registry SourceRecently Updated
630Profile unavailable