Skip to content

sandammeer/OpenWeatherMapClient

Repository files navigation

OpenWeatherMapClient

Swift Version PackageManager Platforms License

Description

Basic Client for OpenWeatherMap Api written in Swift 5 based on AsyncHttpClient

Usage

Create client with apikey and settings

let client = OpenWeatherMapClient(apiKey: "your_api_key)
client.unit = .celsius
client.languageCode = "de"

Settings

Units:

  • Fahrenheit (default)
  • Celsius
  • Kelvin

Languages:

Default is english (en)

Language Codes can be found here

Testing

Add apiKey as environment variable in Xcode.

Need Help?

Please submit an issue on GitHub.

License

This project is licensed under the terms of the MIT license. See the LICENSE file.

About

Basic Client for OpenWeatherMap written in Swift 5 based on AsyncHttpClient

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages