Fetch weather forecasts from the Norwegian Meteorological Institute (MET) using the yr.no API. Use when the user asks for weather information, forecasts, temperature, precipitation, wind conditions, or any weather-related queries for specific locations. Supports coordinates-based lookups and returns current conditions plus forecasts. REQUIRES latitude/longitude - no defaults. See common locations table.
通过yr.no API获取挪威气象研究所的天气预报(免费,无需密钥)。
bash
| 城市 | 纬度 | 经度 |
|---|---|---|
| 开普敦 | -33.9288 | 18.4174 |
| 约翰内斯堡 |
scripts/
├── yr_service.py # API调用(已测试/模拟)
├── utils.py # 表情符号/图标辅助工具
├── weather.py # 当前天气+预报命令行工具
├── tomorrow.py # 明日天气摘要命令行工具
└── tests/data/ # 示例JSON数据
tests/
├── test_weather.py
└── test_service.py
通过pip安装:pip install git+https://github.com/brandoncrabpi/yr-weather.git
为生产环境重构:无默认值、包含测试、模块化服务。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 yr-weather-1776299239 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 yr-weather-1776299239 技能
skillhub install yr-weather-1776299239
文件大小: 8.61 KB | 发布时间: 2026-4-16 18:15