shuzhi-weather
This 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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alex098929/shuzhi-weatherShuzhi Weather Skill
This skill enables querying weather forecasts using the Shuzhi Weather API with HMAC-SHA256 authentication, providing hourly weather data for any location.
Configuration Requirements
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.
Configuration Priority
The skill follows this configuration priority order:
- User's config.json at
~/.openclaw/skills/shuzhi-weather/config.json(highest priority) - Platform environment variables (if available)
- Default values (if any exist)
When to Use This Skill
Activate this skill when:
- Users ask for weather forecasts or weather information
- Users inquire about temperatures at specific locations
- Users mention weather-related queries that require current or future data
- Users provide location names and expect weather details
Skill Components
Scripts
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:
- Loads credentials from the user's config.json file
- Generates dual HMAC-SHA256 signatures (URL signature + body signature)
- Makes authenticated POST requests to the Shuzhi API
- Returns structured weather data including hourly temperatures
References
The references/api_response_format.md contains documentation about the Shuzhi Weather API, including:
- Request parameters (longitude, latitude, hourly data types)
- Response format and field meanings
- HMAC-SHA256 authentication mechanism
- Error handling and response codes
Workflow
When this skill is activated:
-
Check configuration - Verify that
~/.openclaw/skills/shuzhi-weather/config.jsonexists and contains valid credentials. If not, prompt the user to configure it. -
Extract location information from the user's query. This may include:
- City names (e.g., "Beijing", "Shanghai", "Guangzhou")
- Specific coordinates (latitude, longitude)
- Descriptive locations
-
Convert location to coordinates:
- If city name is provided, use geocoding to get latitude and longitude
- If coordinates are provided directly, use them as-is
- Common city coordinates: Beijing (39.9042, 116.4074), Shanghai (31.2304, 121.4737), Guangzhou (23.1291, 113.2644)
-
Execute the weather script using the coordinates:
- Run
scripts/get_weather.pywith longitude and latitude parameters - The script loads credentials from config.json
- Returns structured weather data including hourly temperatures
- Run
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alex098929-shuzhi-weather": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
feishu-notify
This skill should be used when users need to send notifications to Feishu (Lark) via webhook. It supports multiple message types including text, rich text, interactive cards, and images. Users must configure webhook URLs in ~/.openclaw/skills/feishu-notify/config.json before using this skill.
weather-forecast
This skill should be used when users ask about weather forecasts, temperature information, or need to retrieve weather data for specific locations. It provides access to the Open-Meteo weather API for getting hourly temperature forecasts based on latitude and longitude coordinates.
shuzhi-open
数秦开放平台统一接口封装,支持区块链API服务、自动化取证、保管单组件、电子签章