weatherkitAccess Apple WeatherKit REST API for detailed weather forecasts using JWT authentication.
Install via ClawdBot CLI:
clawdbot install jimmcq/weatherkitWhile simpler weather tools can provide quick forecasts, the weatherkit skill leverages Apple's robust WeatherKit REST API to deliver:
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.
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).weatherkit.get_forecastRetrieves 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"
}
Generated Mar 1, 2026
Farmers can use detailed 10-day forecasts to plan irrigation schedules, pesticide applications, and harvest timing based on precipitation, humidity, and temperature data. This helps optimize crop yields and reduce water usage during dry periods.
Event organizers can access hyperlocal weather data to make contingency plans for outdoor weddings, concerts, or festivals. Detailed wind gust and precipitation forecasts help determine tent setups, sound equipment protection, and attendee safety measures.
Shipping companies can optimize delivery routes by analyzing current weather conditions and forecasts along transportation corridors. Wind data helps plan fuel-efficient routes for aviation and maritime transport, while precipitation forecasts aid ground transportation planning.
Solar and wind farm operators can use detailed weather forecasts to predict energy production levels and manage grid integration. UV index and solar radiation data help forecast solar output, while wind speed and direction data optimize wind turbine positioning.
Athletic coaches and fitness apps can recommend optimal training times based on temperature, humidity, and UV index data. Marathon organizers can use 10-day forecasts to plan race day logistics and communicate safety information to participants.
Developers can create a wrapper API that simplifies Apple WeatherKit access for clients, handling JWT authentication complexity. Offer tiered pricing based on request volume and data set access, with premium tiers including historical data analysis.
Build specialized dashboards for specific industries like agriculture or logistics, combining WeatherKit data with industry-specific metrics. Offer analytics features like weather impact reports and predictive modeling for operational decisions.
Combine WeatherKit forecasts with IoT sensor data from farms, construction sites, or smart cities. Offer hardware-software bundles that automatically adjust irrigation systems, construction schedules, or traffic management based on weather predictions.
π¬ Integration Tip
Store the private key securely using environment variables or secret management services, and implement JWT token caching to avoid generating new tokens for every API call.
Get current weather and forecasts (no API key required).
Google Weather API - accurate, real-time weather data. Get current conditions, temperature, humidity, wind, and forecasts. Powered by Google's Weather API fo...
Get current weather conditions and forecasts for any location worldwide. Returns structured data with temperature, humidity, wind, precipitation, and more. No API key required.
Monitor solar weather conditions including geomagnetic storms, solar flares, aurora forecasts, and solar wind data. Uses NOAA Space Weather Prediction Center real-time data.
Weather and pollen reports for any location using free APIs. Get current conditions, forecasts, and pollen data.
Provide current weather and forecasts using wttr.in and Open-Meteo APIs without requiring an API key.