Install
openclaw skills install skills-weatherGet the weather for a specific location or coordinates
openclaw skills install skills-weathernpm
npm install -g skills-weather
pnpm
pnpm add -g skills-weather
-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 commandParameter 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.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.Get real-time weather:
skills-weather -l "New York"skills-weather -c "-74.0060,40.7128"skills-weather -l "London" -f "/path/to/config.json"Get daily weather forecasts:
skills-weather -l "futian" -d 1skills-weather -l "北京" -d 3skills-weather -c "116.4074,39.9042" -d 30skills-weather -l "上海" -d 2 -f "/path/to/config.json"Get hourly weather forecasts:
skills-weather -l "广州" -h 12skills-weather -c "121.4737,31.2304" -h 6skills-weather -l "深圳" -h 24 -f "/path/to/config.json"~/.skills-weather-config.json{
"privateKey": "G7refSYx9TWAPADGuOdyGycWVNr0POaebYddeNtDjxSSN01b0165TITV9fA=",
"appId": "BB9A36BAB1",
"credentialId": "3207A9092A",
"apiHost": "0dfe03a7c3.re.qweatherapi.com"
}
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.