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.

3,891 stars

Best use case

shuzhi-weather is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using shuzhi-weather should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/shuzhi-weather/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/alex098929/shuzhi-weather/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/shuzhi-weather/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How shuzhi-weather Compares

Feature / Agentshuzhi-weatherStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Shuzhi 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:

```json
{
  "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:
1. User's config.json at `~/.openclaw/skills/shuzhi-weather/config.json` (highest priority)
2. Platform environment variables (if available)
3. 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:

1. **Check configuration** - Verify that `~/.openclaw/skills/shuzhi-weather/config.json` exists and contains valid credentials. If not, prompt the user to configure it.

2. **Extract location information** from the user's query. This may include:
   - City names (e.g., "Beijing", "Shanghai", "Guangzhou")
   - Specific coordinates (latitude, longitude)
   - Descriptive locations

3. **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)

4. **Execute the weather script** using the coordinates:
   - Run `scripts/get_weather.py` with longitude and latitude parameters
   - The script loads credentials from config.json
   - Returns structured weather data including hourly temperatures

5. **Present results** to the user in a natural, readable format:
   - Summarize key information (current temperature, high/low, forecast)
   - Include relevant time information (next 24 hours or specific times mentioned)
   - Use units appropriate to the context (Celsius by default)

## Important Notes

- The Shuzhi Weather API requires HMAC-SHA256 authentication with dual signatures
- Credentials must be configured in `~/.openclaw/skills/shuzhi-weather/config.json` before use
- Coordinate format: longitude first, then latitude
- The API endpoint uses POST method with JSON body
- Response code 200 indicates success
- If credentials are missing or invalid, inform the user to check their config.json file

## Example Interactions

User: "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

## Error Handling

If configuration is missing:
- Inform the user that credentials need to be configured
- Provide instructions on creating `~/.openclaw/skills/shuzhi-weather/config.json`
- Show the required JSON format

If API request fails:
- Check if credentials are valid
- Verify network connectivity
- Display error message from the API response
- Suggest checking the configuration file

Related Skills

weather-plus

3891
from openclaw/skills

获取全球城市天气信息和预报。使用场景包括查询当前天气、未来7天预报、空气质量、穿衣建议等。适用于用户问天气、温度、预报等。

weather-checker

3891
from openclaw/skills

Get current weather information for any city

weather-openmeteo

3891
from openclaw/skills

Get current weather and forecasts using Open-Meteo API (no API key required). Optimized for PowerShell environments with Chinese support.

Weather&Webcam

3891
from openclaw/skills

Fetches current weather from Open-Meteo API and automatically captures a live webcam image from Meteoblue or Windy for the requested location. Use it when the user asks for the weather and wants to see a real image of the current conditions.

weather-forecast

3891
from openclaw/skills

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

3891
from openclaw/skills

数秦开放平台统一接口封装,支持区块链API服务、自动化取证、保管单组件、电子签章

polymarket-weather-trader

3891
from openclaw/skills

Trade Polymarket weather markets using NOAA (US) and Open-Meteo (international) forecasts via Simmer API. Inspired by gopfan2's $2M+ strategy. Use when user wants to trade temperature markets, automate weather bets, check forecasts, or run gopfan2-style trading.

soaring-weather

3891
from openclaw/skills

Segelflug- und Thermikvorhersage mit Thermik-Score (0-10). Nutze diesen Skill wenn der User nach Segelflugwetter, Thermik, Streckenflugbedingungen, Flugwetter fuer Segelflieger oder Gleitschirmflieger fragt - auch indirekt wie "lohnt sich Samstag fliegen?", "wie wird die Thermik?", "Segelflugwetter Wochenende?" oder "kann ich am Sonntag einen Streckenflug machen?" oder "Wettercheck Werdenfels". Der Skill ruft Open-Meteo (ICON-D2) ab und liefert eine Profi-Einschaetzung mit Tagesablauf, Steigwerten, Basishöhe, Alpen-Besonderheiten (Foehn, Hangflug) und Warnungen.

weather — 天气查询技能

3891
from openclaw/skills

Get current weather and forecasts (no API key required).

kalshi-weather-trader

3880
from openclaw/skills

Trade Kalshi weather markets using NOAA forecasts via Simmer SDK and DFlow on Solana. Port of the popular polymarket-weather-trader. Use when user wants to trade temperature markets on Kalshi, automate weather bets, or check NOAA forecasts.

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation