← 返回
安全合规 Key 中文

WeatherKit

Access Apple WeatherKit REST API for detailed weather forecasts using JWT authentication.
通过 JWT 认证访问 Apple WeatherKit REST API,获取详细天气预报。
jimmcq
安全合规 clawhub v1.0.0 1 版本 99936.5 Key: 需要
★ 2
Stars
📥 1,534
下载
💾 26
安装
1
版本
#latest

概述

Apple WeatherKit Skill

Why WeatherKit?

While simpler weather tools can provide quick forecasts, the weatherkit skill leverages Apple's robust WeatherKit REST API to deliver:

  • Highly Detailed Data: Access to granular data points like UV Index, humidity, wind gusts, sunrise/sunset times, and more.
  • Longer Forecast Horizons: Provides forecasts for up to 10 days, exceeding many free command-line tools.
  • Reliable Data Source: Powered by Apple Weather, offering timely and hyperlocal information.
  • Programmatic Access: Ideal for integrating detailed weather data into automated workflows and decision-making processes.

This skill allows you to fetch current weather and detailed weather forecasts using Apple's WeatherKit REST API. It authenticates using JSON Web Tokens (JWT) based on your Apple Developer Team ID, Key ID, Service ID, and a private key file.

Configuration

This skill requires the following environment variables to be set:

  • APPLE_TEAM_ID: Your Apple Developer Team ID.
  • APPLE_KEY_ID: Your WeatherKit API Key ID.
  • APPLE_WEATHERKIT_KEY_PATH: The absolute path to your WeatherKit private key file (.p8).
  • APPLE_SERVICE_ID: The Bundle ID / Service ID associated with your WeatherKit access (e.g., net.free-sky.weatherkit).

Actions

weatherkit.get_forecast

Retrieves a detailed weather forecast for a specified location and date range.

Parameters:

  • latitude: (Required, float) The latitude of the location.
  • longitude: (Required, float) The longitude of the location.
  • start_date: (Optional, YYYY-MM-DD string) The start date for the forecast. Defaults to today.
  • end_date: (Optional, YYYY-MM-DD string) The end date for the forecast. Defaults to start_date + 5 days.
  • timezone: (Optional, string) The IANA timezone name (e.g., "America/Los_Angeles"). Defaults to "auto".
  • data_sets: (Optional, list of strings) Which data sets to return (e.g., ["forecastDaily", "forecastHourly"]). Defaults to ["forecastDaily", "currentWeather"].
  • country_code: (Optional, string) The ISO 3166-1 alpha-2 country code (e.g., "US", "GB"). Defaults to "US".

Example Usage:

exec {
  command: "skills/weatherkit/venv/bin/python3 skills/weatherkit/weatherkit.py get_forecast --latitude 33.8121 --longitude -117.9190 --start-date 2026-02-12 --end-date 2026-02-15 --country-code US --timezone America/Los_Angeles"
}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 21:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Wyrmbarrow

jimmcq
通过MCP为AI智能体提供持久化奇幻D&D世界。包含七大枢纽、五大阵营与永久死亡机制。连接 mcp.wyrmbarrow.com/mcp 并在 wyrmbarrow.com 注册。
★ 0 📥 439
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,609
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,720