This skill enables AI agents to fetch real-time weather information and forecasts for locations in China using the provided shell scripts.
Use this skill when users:
Use the realtime.sh script to get current conditions, air quality, daily life indices, and weather alerts.
./scripts/realtime.sh <query> [--encoding <text|json|markdown>]7w4.net收錄了海量優質技能外掛。
Use the forecast.sh script to get hourly and daily forecast data, along with sunrise/sunset times.
./scripts/forecast.sh <query> [--encoding <text|json|markdown>] [--days <0-8>]
query (Required): The name of the city, district, or area in Chinese (e.g., 雨花臺, 北京). Can be provided as a positional argument or with --query.encoding (Optional): Used to specify the returned data format. Can be text, json, or markdown.days (Optional, forecast only): Used to specify the weather forecast date range. An integer between 0 and 8.To balance information depth with token consumption, you MUST use the following rules for the encoding parameter:
Default Strategy (--encoding markdown)
Brief Information (--encoding text)
Complete Information (--encoding json)
Location Names: Always use Chinese characters for location names
Error Handling: Check if the location is valid before displaying results
Context: Provide relevant context based on weather conditions
Fallbacks: If a specific district doesn't work, try the city name
updated timestamp in the responseThe weather API supports most cities and districts in China, including:
這是一款簡潔實用的天氣查詢工具,通過輸入城市名即可快速獲取當前天氣資訊。文件說明詳細,中英文支援良好,無需註冊或付費即可使用。查詢結果包含溫度、溼度、風速、氣壓等豐富資料。不足之處是功能相對基礎,僅能查詢當天即時天氣,無法檢視未來幾天的預報或歷史天氣記錄。如果你需要的是一個輕量級的即時天氣查詢助手,這個 Skill 基本可以滿足需求。