返回顶部
p

pollen-forecast花粉预报

Fetch pollen forecasts for Swedish locations from Pollenrapporten (Swedish Museum of Natural History). Use when Boss asks about pollen levels, pollen forecast, or allergy conditions in Sweden. Covers alder, hazel, birch, grass, and other pollen types with severity levels.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
210
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

pollen-forecast

花粉预报(瑞典)

从瑞典花粉报告(Pollenrapporten)API获取当前花粉预报。

快速开始

bash

基础预报


python3 $OPENCLAWHOME/workspace/skills/pollen-forecast/scripts/getforecast.py <城市名称>

带牧草花粉警报(适用于过敏患者)

python3 $OPENCLAWHOME/workspace/skills/pollen-forecast/scripts/getforecast.py <城市名称> --alert

示例城市:哥德堡、斯德哥尔摩、马尔默、延雪平、乌普萨拉

工作原理

  1. 1. 位置映射:脚本将您的城市匹配到瑞典花粉报告网络中最接近的区域ID
  2. 获取预报:从api.pollenrapporten.se获取当前花粉水平和文本摘要
  3. 获取花粉类型:将花粉ID映射为带阈值的人类可读名称
  4. 获取等级定义:从API获取严重等级的瑞典语名称
  5. 返回格式化输出:严重等级 + 文本预报 + 牧草花粉警报(如果使用了--alert标志)

严重等级

  • - 0:无(Inga halter)
  • 1:低(Låga halter)
  • 2:中等(Måttliga halter)
  • 3:高(Höga halter)
  • 4:非常高(Mycket höga halter)

牧草花粉警报

使用--alert标志获取关于牧草花粉(Gräs)的增强警告,这是引发严重过敏的最常见诱因。

警报触发条件:

等级警报建议
2 - 中等💊 开始服用过敏药物长时间户外活动考虑佩戴口罩
3 - 高
😷 需要口罩 + 👓 眼镜 | 关闭窗户,使用空气净化器 |
| 4 - 非常高 | 🚨 危急 | 尽量减少户外暴露,外出后淋浴 |

过敏患者使用方法:
bash
python3 $OPENCLAWHOME/workspace/skills/pollen-forecast/scripts/getforecast.py 哥德堡 --alert

使用方法

命令行

bash

获取哥德堡的预报


python3 $OPENCLAWHOME/workspace/skills/pollen-forecast/scripts/getforecast.py 哥德堡

获取斯德哥尔摩的预报并带牧草花粉警报

python3 $OPENCLAWHOME/workspace/skills/pollen-forecast/scripts/getforecast.py 斯德哥尔摩 --alert

列出可用城市

python3 $OPENCLAWHOME/workspace/skills/pollen-forecast/scripts/getforecast.py --help

从SKILL.md使用

该技能自动:

  1. 1. 读取references/regions.json中的区域映射
  2. 为请求的城市找到最匹配的区域
  3. 调用Pollenrapporten API
  4. 使用花粉类型和严重等级格式化响应

数据来源

  • - API:https://api.pollenrapporten.se/v1/
  • 来源:瑞典自然历史博物馆(Naturhistoriska riksmuseet)
  • 覆盖范围:瑞典24个区域
  • 更新频率:花粉季节期间每日更新

输出格式

标准输出:

🌿 哥德堡花粉预报
📅 2026-03-10 至 2026-03-11

📝 摘要:
周二至周三预计榛树花粉将达到中等至高等水平...

📊 当前水平:
• 榛树:低 / Låga
• 桤木:非常高 / Måttliga till höga
• 柳树:无 / Inga halter
• 牧草:无 / Inga halter

带--alert标志(牧草花粉警告模式):

🌿 哥德堡花粉预报
📅 2026-03-10 至 2026-03-11

📝 摘要:
...

📊 当前水平:
• 牧草:高 / Höga halter
...

⚠️ 牧草花粉警报 ⚠️
🌾 牧草处于高水平。
💊 立即服用过敏药物。
😷 外出时佩戴口罩 + 👓 眼镜。
🚪 关闭窗户。如有条件请使用空气净化器。

区域覆盖

参见references/regions.json获取完整的24个监测区域列表,包括:

  • - 哥德堡
  • 斯德哥尔摩
  • 马尔默
  • 延雪平
  • 乌普萨拉(最近:斯德哥尔摩)
  • 林雪平(最近:诺尔雪平)
  • 隆德(最近:马尔默)

备注

  • - 预报为瑞典语;API返回瑞典语文本摘要。您必须同时发送瑞典语和英语版本。
  • 花粉季节通常为2月至9月
  • 部分小城镇会映射到最近的主要监测站

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pollen-rapporten-1776124296 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pollen-rapporten-1776124296 技能

通过命令行安装

skillhub install pollen-rapporten-1776124296

下载

⬇ 下载 pollen-forecast v1.0.0(免费)

文件大小: 5.73 KB | 发布时间: 2026-4-15 13:56

v1.0.0 最新 2026-4-15 13:56
Initial release of pollen-forecast skill (version 1.0.0):

- Fetches current pollen forecasts for Swedish locations from Pollenrapporten (Swedish Museum of Natural History).
- Supports alder, hazel, birch, grass, and other pollen types with severity levels.
- Provides option for enhanced grass pollen alerts for allergy sufferers (with --alert flag).
- Includes detailed usage instructions and output formatting examples.
- Covers 24 monitored regions across Sweden, auto-mapping cities to nearest reporting region.
- Fetches and displays forecast summaries, severity levels, and actionable recommendations.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部