Install
openclaw skills install shuzhi-weatherThis skill should be used when users need to query weather information via the Shuzhi Weather API with HMAC-SHA256 authentication. It provides hourly weather forecasts based on latitude and longitude coordinates. Users must configure app_key and app_secret in ~/.openclaw/skills/shuzhi-weather/config.json before using this skill.
openclaw skills install shuzhi-weatherThis skill enables querying weather forecasts using the Shuzhi Weather API with HMAC-SHA256 authentication, providing hourly weather data for any location.
IMPORTANT: Before using this skill, you must configure your API credentials:
Create the configuration file at ~/.openclaw/skills/shuzhi-weather/config.json with the following content:
{
"app_key": "your_app_key_here",
"app_secret": "your_app_secret_here"
}
Replace your_app_key_here and your_app_secret_here with your actual Shuzhi API credentials.
The skill follows this configuration priority order:
~/.openclaw/skills/shuzhi-weather/config.json (highest priority)Activate this skill when:
The scripts/get_weather.py script provides a reliable way to fetch weather data from the Shuzhi Weather API with HMAC-SHA256 authentication. This script:
The references/api_response_format.md contains documentation about the Shuzhi Weather API, including:
When this skill is activated:
Check configuration - Verify that ~/.openclaw/skills/shuzhi-weather/config.json exists and contains valid credentials. If not, prompt the user to configure it.
Extract location information from the user's query. This may include:
Convert location to coordinates:
Execute the weather script using the coordinates:
scripts/get_weather.py with longitude and latitude parametersPresent results to the user in a natural, readable format:
~/.openclaw/skills/shuzhi-weather/config.json before useUser: "What's the weather like in Beijing?" Action: Check config exists, extract "Beijing", use coordinates (39.9042, 116.4074), run script, present forecast
User: "Will it be cold in Shanghai tomorrow?" Action: Extract "Shanghai" and "tomorrow", use coordinates (31.2304, 121.4737), run script, present tomorrow's temperature
User: "Get the temperature for longitude 116.4074 and latitude 39.9042" Action: Use provided coordinates directly, run script, present hourly data
User: "How hot will it be in Guangzhou today?" Action: Extract "Guangzhou", use coordinates (23.1291, 113.2644), run script, identify maximum temperature for today
If configuration is missing:
~/.openclaw/skills/shuzhi-weather/config.jsonIf API request fails: