首页龙虾技能列表 › Weather Forecast — 技能工具

Weather Forecast — 技能工具

v1.0.0

[自动翻译] This skill should be used when users ask about weather forecasts, temperature information, or need to retrieve weather data for specific locations. It...

1· 454·1 当前·1 累计
by @alex098929·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/16
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill is internally consistent with its stated purpose: it fetches weather from the Open‑Meteo API using a bundled Python script, requests no credentials, and has no install step — though the SKILL.md leaves geocoding unspecified.
评估建议
This skill appears safe and does what it says: it runs a local Python script that queries api.open-meteo.com and prints a summary and raw JSON. Before installing, consider: (1) SKILL.md mentions geocoding but provides no provider — the agent may call an external geocoding API (causing outbound network requests) or ask the user for coordinates, so if you have privacy concerns supply coordinates yourself; (2) the script will make outbound HTTPS requests to Open‑Meteo — ensure you’re comfortable wi...
详细分析 ▾
用途与能力
Name/description match the included script and reference docs. The script calls only the Open‑Meteo API (a free, no‑auth service) and returns hourly temperature data as promised.
指令范围
SKILL.md correctly describes extracting locations and running the bundled script, but it instructs the agent to 'use geocoding' for city names without providing an implementation or naming a provider — this leaves the agent discretion to call an external geocoding service or to ask the user for coordinates.
安装机制
No install spec is present (instruction-only with a bundled script). The Python script uses only standard libraries and no external downloads or extracted archives are required.
凭证需求
The skill declares no environment variables, no credentials, and no config paths. The Open‑Meteo API requires no authentication, so requested access appears proportionate.
持久化与权限
The skill is not always‑on, does not request elevated privileges, and does not modify other skills or system settings. It runs as-needed and only performs outbound requests to the Open‑Meteo API when invoked.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/16

- Initial release of the weather-forecast skill. - Provides hourly temperature forecasts for any worldwide location using the Open-Meteo API. - Supports location extraction from city names or geographic coordinates. - Includes automatic geocoding for common cities and instructions to handle descriptive or coordinate-based queries. - Standardizes weather queries with reusable scripts, consistent error handling, and automated data extraction. - Presents weather summaries in natural language, with support for current and future forecasts.

● 无害

安装命令 点击复制

官方npx clawhub@latest install weather-forecast
镜像加速npx clawhub@latest install weather-forecast --registry https://cn.clawhub-mirror.com

技能文档

This skill enables querying weather forecasts using the Open-Meteo API, providing hourly temperature data for any location worldwide.

When to Use This Skill

Activate this skill when:

  • Users ask for weather information or forecasts
  • 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, reusable way to fetch weather data from the Open-Meteo API. This script is used instead of writing API calls from scratch each time because:

  • API endpoints and parameters need to be consistent
  • Error handling for network requests is standardized
  • JSON parsing and data extraction is automated
  • The script can be executed without loading into context

References

The references/api_response_format.md contains documentation about the Open-Meteo API response structure, including:

  • Request parameters (latitude, longitude, hourly data types)
  • Response format and field meanings
  • Time zone handling
  • Error conditions

Workflow

When this skill is activated:

  • Extract location information from the user's query. This may include:
- City names (e.g., "Beijing", "Shanghai", "New York") - Specific coordinates (latitude, longitude) - Descriptive locations (e.g., "my current location")

  • 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 (saved in memory): Beijing (39.9042, 116.4074), Shanghai (31.2304, 121.4737), New York (40.7128, -74.0060), London (51.5074, -0.1278), Tokyo (35.6762, 139.6503)

  • Execute the weather script using the coordinates:
- Run scripts/get_weather.py with latitude and longitude parameters - The script returns structured weather data including hourly temperatures

  • 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, Fahrenheit if requested)

Important Notes

  • The Open-Meteo API provides hourly forecasts, not just current weather
  • Temperature values are in Celsius by default
  • The API is free and requires no authentication
  • Coordinate precision: up to 4 decimal places for better accuracy
  • If coordinates are not available for a location, inform the user and ask for coordinates or a different location

Example Interactions

User: "What's the weather like in Beijing?" Action: Extract "Beijing", use coordinates (39.9042, 116.4074), run script, present forecast

User: "Will it be cold in Tokyo tomorrow?" Action: Extract "Tokyo" and "tomorrow", use coordinates (35.6762, 139.6503), run script, present tomorrow's temperature

User: "Get the temperature for latitude 52.52 and longitude 13.41" Action: Use provided coordinates directly, run script, present hourly data

User: "How hot will it be in Shanghai today?" Action: Extract "Shanghai", use coordinates (31.2304, 121.4737), run script, identify maximum temperature for today

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务