weather-rain-alert
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "weather-rain-alert" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-131e43bf9dda218cf135464ae7974f60c98d07e99d23990ca59738e2adc71686. Verify the upstream source and version against https://skillhub.cn/skills/user_472c28fa/weather-rain-alert before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Rain alert skill: automatically obtain local weather forecasts and send an alert if rain is expected within the next 1 hour. Supports manual latitude/longitude input or automatic location via IP.
Introduction source: third_party · user_472c28fa · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: weather-rain-alert
description: 自动获取当前位置的天气预报,如果未来1小时内有雨则发出提醒。支持手动指定经纬度或通过IP自动定位。
user-invocable: true天气预报降雨提醒
自动检测当前位置未来1小时内是否会有降雨,并在有雨时发出提醒。
触发条件
- 用户主动调用:
/weather-rain-alert - 模型可根据对话上下文自动判断是否需要调用(如用户问"会不会下雨"、"带伞吗"等)
工作流程
步骤 1:获取位置信息
按优先级尝试:
- 用户手动指定的经纬度(通过参数
--lat和--lon传入) - 通过 IP 自动定位(调用 ip-api.com 免费 API)
- 如果以上均失败,提示用户手动提供位置
步骤 2:获取天气预报
调用 Open-Meteo 免费天气 API(无需 API Key),获取未来1小时逐小时预报:
precipitation:降水量(mm)precipitation_probability:降水概率(%)rain:降雨量(mm)showers:阵雨量(mm)
步骤 3:判断是否有雨
满足以下任一条件即判定为"有雨":
- 降水概率 >= 50%
- 降水量 > 0.1mm
步骤 4:发出提醒
如果有雨,提醒包含:
- ⚠️ 降雨提醒摘要
- 📍 当前位置
- 🌧️ 预计降雨时间、降水量、概率
- 💡 建议(带伞、调整出行等)
如果无雨:
- ✅ 告知用户未来1小时无降雨风险
使用方式
命令行直接调用
# 自动定位
python scripts/check-rain.py
# 手动指定位置(深圳示例)
python scripts/check-rain.py --lat 22.5431 --lon 114.0579
# 指定城市名称
python scripts/check-rain.py --city "北京"
在 Skill 中调用
当用户触发此 skill 时,执行:
python <skill_dir>/scripts/check-rain.py [--lat <lat>] [--lon <lon>] [--city <city>]
解析脚本输出的 JSON 结果,根据 will_rain 字段判断是否需要提醒用户。
输出格式
脚本输出为 JSON:
{
"will_rain": true,
"location": {
"city": "深圳",
"country": "中国",
"lat": 22.5431,
"lon": 114.0579
},
"forecast": {
"time": "2026-06-11T16:00",
"precipitation": 2.5,
"precipitation_probability": 70,
"rain": 2.0,
"showers": 0.5
},
"message": "未来1小时内有雨!降水量约 2.5mm,降水概率 70%。建议携带雨具。"
}
依赖
- Python 3.7+
requests库:pip install requests
注意事项
- 使用 Open-Meteo 免费 API,无需注册和 API Key
- 天气数据来源于全球气象模型 GFS/ECMWF
- IP 定位精度有限,建议在移动设备上使用 GPS 定位后手动传入坐标
- 提醒仅基于未来1小时的预报数据
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决用户出行是否需要带伞的实际痛点,实用性强
- 支持自动定位与手动指定位置,覆盖多种使用场景
Highlights
- 触发条件描述完整,覆盖用户主动调用和模型自动判断
- 边界清晰,不易误触或漏触
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档中未显式设置 When to Use 章节,但触发条件已覆盖相关内容
Recommendation: 建议增加 When to Use 显式章节以提升规范性
Highlights
- 文档结构清晰,Phase/步骤划分明确
- 包含端到端示例和完整输出格式说明
- frontmatter 完整,单文件长度合理
Highlights
- 使用 Open-Meteo 免费 API,无需注册和 API Key,来源可靠
- 覆盖 IP 定位失败等异常场景,有位置获取优先级逻辑
- 输出为结构化 JSON,便于 Skill 解析与判断
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 98 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 27, 102
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.