Skip to content

A wrapper for Apple's WeatherKit API in Ruby

License

Notifications You must be signed in to change notification settings

drvn-mr/tenkit

 
 

Repository files navigation

Tenkit 天気ト

A wrapper for Apple's WeatherKit API in Ruby

A portmanteau of "tenki" the Japanese word for weather, and "kit", the end of WeatherKit.

This project is in beta, some of its API may be unstable, or possibly non-functional (like WeatherKit itself).

Installation

Add to Gemfile

gem 'tenkit'

Usage

Tenkit.configure do |c|
  c.team_id = "APPLE DEVELOPER TEAM ID"
  c.service_id = "APPLE DEVELOPER SERVICE ID"
  c.key_id = "APPLE DEVELOPER KEY ID"
  c.key =  "APPLE DEVELOPER PRIVATE KEY"
end

client = Tenkit::Client.new

lat = '37.323'
lon = '122.032'

client.weather(lat, lon)

Maintained by: Super Basic

About

A wrapper for Apple's WeatherKit API in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 99.9%
  • Shell 0.1%