{"id":28498257,"url":"https://github.com/bourvill/openweatherkit","last_synced_at":"2025-10-27T05:07:31.431Z","repository":{"id":62449650,"uuid":"63778072","full_name":"bourvill/OpenWeatherKit","owner":"bourvill","description":":partly_sunny: Swift OpenWeatherMap Kit :partly_sunny:","archived":false,"fork":false,"pushed_at":"2023-07-10T15:15:09.000Z","size":175,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-22T10:12:53.240Z","etag":null,"topics":["cocoapods","ios","ios-sdk","openweathermap","swift","weather"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bourvill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-20T12:03:21.000Z","updated_at":"2022-06-08T13:09:58.000Z","dependencies_parsed_at":"2022-11-01T23:02:50.101Z","dependency_job_id":null,"html_url":"https://github.com/bourvill/OpenWeatherKit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bourvill/OpenWeatherKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourvill%2FOpenWeatherKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourvill%2FOpenWeatherKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourvill%2FOpenWeatherKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourvill%2FOpenWeatherKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bourvill","download_url":"https://codeload.github.com/bourvill/OpenWeatherKit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourvill%2FOpenWeatherKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281216687,"owners_count":26463033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","ios","ios-sdk","openweathermap","swift","weather"],"created_at":"2025-06-08T13:37:06.686Z","updated_at":"2025-10-27T05:07:31.426Z","avatar_url":"https://github.com/bourvill.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenWeatherKit \n[![Build Status](https://www.bitrise.io/app/c0f61c2208d69ebf/status.svg?token=_M8JG4myn3kxurAo6KyrQQ\u0026branch=master)](https://www.bitrise.io/app/c0f61c2208d69ebf) \n[![Build Status](https://travis-ci.org/bourvill/OpenWeatherKit.svg?branch=master)](https://travis-ci.org/bourvill/OpenWeatherKit)\n[![Version](https://img.shields.io/cocoapods/v/OpenWeatherKit.svg?style=flat)](http://cocoapods.org/pods/OpenWeatherKit)\n[![License](https://img.shields.io/cocoapods/l/OpenWeatherKit.svg?style=flat)](http://cocoapods.org/pods/OpenWeatherKit)\n[![Platform](https://img.shields.io/cocoapods/p/OpenWeatherKit.svg?style=flat)](http://cocoapods.org/pods/OpenWeatherKit)\n\nOpenWeatherKit is a library written in Swift.\n\n## Requirements\n\n- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+\n- Xcode 9.2+\n- Swift 4.0+\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.3.1+ is required to build OpenWeatherKit.\n\nTo integrate OpenWeatherKit into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'OpenWeatherKit'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n\n## Usage\n### Method available\n\t[] Weather\n\t\t[X] Latitude Longitude\n\t\t[X] OpenWeatheMap City id\n\t[] ForeCast\n\t\t[X] Latitude Longitude\n\t\t[X] OpenWeatheMap City id\n\n\n### Code Implementation\nFirst:\n```swift\nimport OpenWeatherKit\n```\n\nIn your view controller's\n```swift\nlet weatherApi = WeatherApi(key: \"YOUR_OPEN_WEATHER_API_KEY\")\nweatherApi.getWeatherFor(lat: \"5.567788\", lon: \"1.5544\") { result in\n\tswitch result {\n        case .success(let weather):\n            self.cityLabel.text = weather.name\n            self.tempLabel.text = \"\\(weather.main.temp)\"\n        case .error(_):\n            //Do something\n            break\n    }\n}\n```\n\n## License\n\nOpenWeatherKit is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourvill%2Fopenweatherkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbourvill%2Fopenweatherkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourvill%2Fopenweatherkit/lists"}