{"id":15592962,"url":"https://github.com/kasvith/openweathermap-ballerina","last_synced_at":"2026-01-07T22:36:36.343Z","repository":{"id":94243654,"uuid":"173399757","full_name":"kasvith/openweathermap-ballerina","owner":"kasvith","description":"Open Weather Map connector for ballerina","archived":false,"fork":false,"pushed_at":"2019-04-08T11:52:32.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T04:14:23.280Z","etag":null,"topics":["api","api-client","ballerina","ballerina-connector","ballerina-lang","connector","openweathermap","openweathermap-api","weather","weather-api"],"latest_commit_sha":null,"homepage":null,"language":"Ballerina","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/kasvith.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-02T03:43:22.000Z","updated_at":"2019-03-20T04:52:04.000Z","dependencies_parsed_at":"2023-03-11T00:16:11.393Z","dependency_job_id":null,"html_url":"https://github.com/kasvith/openweathermap-ballerina","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"fc349eb036d683712716434578882cd09e01806f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fopenweathermap-ballerina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fopenweathermap-ballerina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fopenweathermap-ballerina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fopenweathermap-ballerina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasvith","download_url":"https://codeload.github.com/kasvith/openweathermap-ballerina/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246170410,"owners_count":20734813,"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","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":["api","api-client","ballerina","ballerina-connector","ballerina-lang","connector","openweathermap","openweathermap-api","weather","weather-api"],"created_at":"2024-10-03T00:03:28.435Z","updated_at":"2026-01-07T22:36:36.298Z","avatar_url":"https://github.com/kasvith.png","language":"Ballerina","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Weather Map API for Ballerina\n\n[![Build Status](https://travis-ci.com/kasvith/openweathermap-ballerina.svg?branch=master)](https://travis-ci.com/kasvith/openweathermap-ballerina) ![GitHub](https://img.shields.io/github/license/kasvith/openweathermap-ballerina.svg)\n\nThe Open Weather Maps connector allows you to fetch data from Open Weather Maps based on city name, zip, id etc.\nIt also allows to fetch data over a circle or a box of coordinates.\n\n## Sample\n\nImport the libary from `kasvith/openweathermaps` to your project\n\n```ballerina\nimport kasvith/openweathermap\n```\n\n### Obtain app id from Open Weather Maps\n\nVisit [Open Weather Maps](https://openweathermap.org/api) and Grab a **APPID** by registering.\n\n### Initializing Client\n\nTo initialize client after obtaining APPID you need to select language and metrics. They are defaulted to English and Kelvin(for temperature).\n\n```ballerina\nopenweathermap:OpenWeatherMapClient owmClient =  new({\n\tappid: \"YOUR_APP_ID\"\n});\n```\n\n### Use client to obtain weather of a city by Name\n```ballerina\nvar result = owmClient-\u003egetWeatherByCityName(\"Colombo\");\nio:println(result);\n```\n\n### Use client to obtain weather of a location\n```ballerina\nvar result = owmClient-\u003egetWeatherByCityCoordinates({lat: 10, lon: 10});\nio:println(result);\n```\n\n## Developer Guide\n\nYou need Ballerina 0.990.3 for development\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasvith%2Fopenweathermap-ballerina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasvith%2Fopenweathermap-ballerina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasvith%2Fopenweathermap-ballerina/lists"}