Weather Pulse
简介
Weather Pulse
原始描述
Get real-time weather, 3-30 day forecasts, hourly forecasts, AQI/PM2.5, wind, humidity, UV, weather indices & life tips. Powered by QWeather (50k/mo) and WAQI (1k/hr) APIs. Supports Chinese/English city names, coordinates, CityId.
通过你的 Agent 添加
安装目录:weather-pulse/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: weather-pulse version: "1.3.2" description: "Weather + air quality via QWeather (50k/mo) and WAQI (1k/hr). Real-time, forecasts (3-30 days / 24-168 hours), indices, AQI, PM2.5. Supports city names, coordinates, CityId." summary: "Weather and AQI using free APIs. Fast, multilingual input." tags: weather: "1.3.2" forecast: "1.3.2" air-quality: "1.3.2" aqi: "1.3.2" qweather: "1.3.2" trigger_patterns:
- "天气"
- "weather"
- "forecast"
- "AQI"
- "空气质量"
- "PM25" requiredEnvs:
- name: QWEATHER_API_HOST description: "QWeather API Host (from console settings, e.g. xxxxxxx.re.qweatherapi.com)" required: false
- name: QWEATHER_API_KEY description: "QWeather API Key (32-char string from project credentials)" required: false
- name: WAQI_API_TOKEN description: "WAQI token from https://aqicn.org/data-platform/token/" required: false
weather-pulse (optimized)
Weather and air quality with QWeather + WAQI. Minimal footprint, same features.
APIs
- QWeather: now/3d/7d/10d/15d/30d/24h/72h/168h/indices (50k/mo free)
- WAQI: aqi + PM2.5 forecast (1k/hr free)
Setup
- Get free credentials:
- QWeather: https://console.qweather.com → create project → API Host + API Key
- WAQI: https://aqicn.org/data-platform/token → confirm email → token
- Set environment variables (recommended):
- Linux/macOS: export QWEATHER_API_HOST=...; export QWEATHER_API_KEY=...; export WAQI_API_TOKEN=...
- Windows PowerShell: $env:QWEATHER_API_HOST="..."; $env:QWEATHER_API_KEY="..."; $env:WAQI_API_TOKEN="..."
Usage python scripts/weather.py [--endpoint ENDPOINT] [--json]
Location formats
- CityId (101010100)
- Coordinates (lon,lat or lat,lon) auto-corrected
- City name (English/Chinese) auto-resolved to CityId for weather endpoints
- WAQI formats for aqi: city name, @ID, geo:lat;lon, here
Endpoints now | 3d | 7d | 10d | 15d | 30d | 24h | 72h | 168h | indices | aqi
Examples python scripts/weather.py Shanghai # current python scripts/weather.py 101180301 --endpoint 7d # 7-day python scripts/weather.py 113.92,35.30 -e 15d # coords python scripts/weather.py xinxiang -e aqi # AQI python scripts/weather.py 101180301 -j # JSON output
Notes
- For weather endpoints, only QWeather credentials are needed.
- For AQI, only WAQI token is needed.
- Outputs concise text; use -j for raw JSON.
- Includes automatic retry (3 attempts) on network failures.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。