← 返回
未分类

天气

Get current weather and forecasts (no API key required).
user_c73fb2fe
未分类 community v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 91
下载
💾 0
安装
2
版本
#latest

概述

version:"1.0.0"

author:jm-jsjkxyjs02-hxr-806


name: weather

description: Get current weather and forecasts (no API key required).

homepage: https://wttr.in/:help

metadata: {"clawdbot":{"emoji":"🌤️","requires":{"bins":["curl"]}}}


Weather

Two free services, no API keys needed.

wttr.in (primary)

Quick one-liner:

curl -s "wttr.in/London?format=3"
# Output: London: ⛅️ +8°C

Compact format:

curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w"
# Output: London: ⛅️ +8°C 71% ↙5km/h

Full forecast:

curl -s "wttr.in/London?T"

Format codes: %c condition · %t temp · %h humidity · %w wind · %l location · %m moon

Tips:

  • URL-encode spaces: wttr.in/New+York
  • Airport codes: wttr.in/JFK
  • Units: ?m (metric) ?u (USCS)
  • Today only: ?1 · Current only: ?0
  • PNG: curl -s "wttr.in/Berlin.png" -o /tmp/weather.png

Open-Meteo (fallback, JSON)

Free, no key, good for programmatic use:

curl -s "https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12&current_weather=true"

Find coordinates for a city, then query. Returns JSON with temp, windspeed, weathercode.

Docs: https://open-meteo.com/en/docs

版本历史

共 2 个版本

  • v1.0.1 Initial release 当前
    2026-05-23 09:21 安全 安全
  • v1.0.0 Initial release
    2026-05-23 08:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 459 📥 229,661
knowledge-management

文件整理助手

user_c73fb2fe
★ 0 📥 243
life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 244 📥 30,712