Open Weather Kit banner
jagreenwood jagreenwood

Open Weather Kit

Development community

Description

An open implementation of Apple's WeatherKit for Swift.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

OpenWeatherKit

[![Linux Swift](https://github.com/jagreenwood/OpenWeatherKit/actions/workflows/swift-ubuntu.yml/badge.svg)](https://github.com/jagreenwood/OpenWeatherKit/actions?query=workflow%3Aswift-ubuntu) [![macOS](https://github.com/jagreenwood/OpenWeatherKit/actions/workflows/swift-macos.yml/badge.svg)](https://github.com/jagreenwood/OpenWeatherKit/actions?query=workflow%3Aswift-macos) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fjagreenwood%2Fopen-weather-kit%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/jagreenwood/open-weather-kit) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fjagreenwood%2Fopen-weather-kit%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/jagreenwood/open-weather-kit)

This package is Swift wrapper around the [WeatherKit REST API](https://developer.apple.com/documentation/weatherkitrestapi). Its intention is to bring a native Swift WeatherKit alternative to platforms Apple does not currently support. The API of this package is nearly identical to Apple's [WeatherKit](https://developer.apple.com/documentation/weatherkit).

💻 Supported Platforms

Minimum Swift version of 5.9

  • iOS 13+
  • watchOS 6+
  • tvOS 13+
  • visionOS 1+
  • macOS 11+
  • Ubuntu 18.04+

⚙️ Setup

The REST API requires a signed JWT to be sent with each request. To set this up you need:

  • A paid developer account
  • A Service Identifier
  • A key

Apple Developer Portal Setup

App Identifier

  1. Go to Identifiers
  2. On the top left, click the add button (+), select Services IDs, then click Continue.
  3. Register a Service ID.
  4. Make note of the Identifier (you'll need it later)
  5. Click Continue, review the registration information, and click Register.

Key

  1. Go to Keys
  2. On the top left, click the add