current_weather

v1.0.0

获取用户当前位置和当前时间,通过浏览器访问天气网站查询天气信息。 支持查询今天、明天、后天等不同日期的天气情况。

0· 141·0 current·0 all-time
byuwvwko@uwvwko-zzz

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for uwvwko-zzz/uwvwko-current-weather.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "current_weather" (uwvwko-zzz/uwvwko-current-weather) from ClawHub.
Skill page: https://clawhub.ai/uwvwko-zzz/uwvwko-current-weather
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install uwvwko-current-weather

ClawHub CLI

Package manager switcher

npx clawhub@latest install uwvwko-current-weather
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill's name/description match the instructions: it locates the user (via explicit user input, conversation history, or IP geolocation) and scrapes weather websites for forecasts. The externally referenced sites (weather.com.cn, moji.com, nmc.cn, ip138.com, ip-api.com) are consistent with a weather/location skill.
Instruction Scope
Instructions remain focused on weather lookup, but they include optional IP-based geolocation (calling ip138.com or ip-api.com). This reaches out to external services and infers the user's location from IP — a privacy-relevant action. The SKILL.md does not explicitly require asking the user for permission before performing IP-based lookups; consider prompting the user first.
Install Mechanism
No install spec or code is present (instruction-only), so nothing is written to disk or fetched during install. This is the lowest-risk install model.
Credentials
The skill declares no environment variables, credentials, or config paths. The external network calls it describes are proportionate to weather/location lookup and do not request unrelated secrets.
Persistence & Privilege
always:false and no special privileges are requested. The skill is user-invocable and may be autonomously invoked by the agent (platform default), which is expected for a utility skill.
Assessment
This skill appears coherent for fetching weather, but be aware it may perform IP-based geolocation by contacting ip138.com or ip-api.com if the user doesn't supply a location — that reveals the user's public IP-derived city to external services. Before enabling automatic location lookup, make sure you (or your users) consent to that network access. Also confirm the agent platform's 'browser' action behaves as you expect (it will visit third-party weather sites and extract page content) and consider whether you prefer an API-based weather source (which may require an API key) for more stable results and clearer privacy controls.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🌤️ Clawdis
latestvk975ed2k944z77nkf35dx0zfzx836w56
141downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

查询天气

当用户询问天气相关问题时,使用本技能获取天气信息。

触发条件

用户询问以下问题时触发:

  • "今天天气怎么样"
  • "明天天气如何"
  • "后天会下雨吗"
  • "今天多少度"
  • "天气好不好"
  • 其他天气相关询问

使用流程

步骤 1:获取当前时间和用户位置

首先需要确定:

  1. 当前时间:用户问的是"今天"、"明天"还是"后天"
  2. 用户位置:用户所在的城市/地区

获取位置的方式(按优先级):

  1. 用户直接告知(如"北京天气")
  2. 从对话历史中获取用户之前提供的城市
  3. 通过浏览器访问 ip138.com 或 ip-api.com 获取用户 IP 地址对应的城市

步骤 2:访问天气网站查询

使用浏览器打开天气网站,以下是推荐的网站:

网站网址特点
中国天气网https://www.weather.com.cn国内天气准确
墨迹天气https://www.moji.com界面美观
中央气象台https://nmc.cn官方数据

查询方式

# 访问天气网站并搜索城市天气
browser url="https://www.weather.com.cn/城市名称"

例如查询北京天气:

browser url="https://www.weather.com.cn/101010100"

步骤 3:解析天气信息

从页面中提取以下信息:

  • 温度(最高/最低)
  • 天气状况(晴、多云、雨、雪等)
  • 风力风向
  • 空气湿度
  • 空气质量(如果有)

步骤 4:组织回复

根据查询结果,用友好的方式回复用户:

📅 日期:[今天/明天/后天]
🌍 城市:[城市名]
🌡️ 温度:[最高温]°C / [最低温]°C
🌤️ 天气:[天气状况]
💨 风力:[风力等级]
💧 湿度:[湿度]%

时间词转换

用户说的时间实际日期
今天今日
明天明日
后天后天
大后天第四天
下周具体日期需计算

示例对话

用户:明天天气怎么样?

回复流程

  1. 确定用户位置(假设是北京)
  2. 确定日期是明天
  3. 打开 https://www.weather.com.cn/101010100
  4. 提取明天天气预报
  5. 回复:
    🌤️ 明天北京天气预报
    
    🌡️ 温度:15°C / 8°C
    🌤️ 天气:多云转晴
    💨 风力:北风3-4级
    💧 湿度:45%
    
    总体来说明天天气不错,适合外出~
    

注意事项

  1. 首次询问位置:如果不知道用户在哪里,必须先询问用户所在城市
  2. 多日查询:用户问"这一周天气"时,可以连续查询多天
  3. 特殊天气:如台风、暴雨、寒潮等极端天气,需特别提醒用户
  4. 数据时效:天气数据有时效性,尽量使用最新数据
  5. 备用网站:如果主网站无法访问,尝试备用网站

常用城市代码

城市天气网代码
北京101010100
上海101020100
广州101280101
深圳101280601
成都101270101
杭州101210101
南京101190101
武汉101200101
西安101110101
重庆101040100

Comments

Loading comments...