返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
s

skills-weather

Get the weather for a specific location or coordinates

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
335
下载量
0
收藏
概述
安装方式
版本历史

skills-weather

# Weather Skill ## Installation npm ```bash npm install -g skills-weather ``` pnpm ```bash 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 - [和风天气 (QWeather)](https://dev.qweather.com) ## Configuration File #### [和风天气](https://dev.qweather.com) ##### Default config file path: `~/.skills-weather-config.json` ##### Example: ```json { "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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skills-weather-1776272487 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skills-weather-1776272487 技能

通过命令行安装

skillhub install skills-weather-1776272487

下载 Zip 包

⬇ 下载 skills-weather v1.0.3

文件大小: 1.99 KB | 发布时间: 2026-4-16 18:19

v1.0.3 最新 2026-4-16 18:19
- Updated installation instructions to use global flags (`-g`) with npm and pnpm.
- No other functional or parameter changes.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部