{"id":15036232,"url":"https://github.com/shingzhanho/hkosharp","last_synced_at":"2025-04-09T23:21:14.699Z","repository":{"id":180163887,"uuid":"288741916","full_name":"ShingZhanho/HKOSharp","owner":"ShingZhanho","description":"Unofficial C# Library of Hong Kong Observatory API","archived":false,"fork":false,"pushed_at":"2020-09-08T07:07:30.000Z","size":3775,"stargazers_count":37,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T01:11:42.119Z","etag":null,"topics":["api","cross-platform","csharp","csharp-library","hong-kong","open-source","unofficial","weather","weather-api","weather-data","weather-forecast"],"latest_commit_sha":null,"homepage":"https://hkosharp.shingzh.eu.org/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShingZhanho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2020-08-19T13:39:36.000Z","updated_at":"2025-01-16T10:23:41.000Z","dependencies_parsed_at":"2024-05-05T17:31:59.815Z","dependency_job_id":null,"html_url":"https://github.com/ShingZhanho/HKOSharp","commit_stats":null,"previous_names":["shingzhanho/hkosharp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShingZhanho%2FHKOSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShingZhanho%2FHKOSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShingZhanho%2FHKOSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShingZhanho%2FHKOSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShingZhanho","download_url":"https://codeload.github.com/ShingZhanho/HKOSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248126363,"owners_count":21051910,"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","cross-platform","csharp","csharp-library","hong-kong","open-source","unofficial","weather","weather-api","weather-data","weather-forecast"],"created_at":"2024-09-24T20:30:34.824Z","updated_at":"2025-04-09T23:21:14.667Z","avatar_url":"https://github.com/ShingZhanho.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"ReadmeImages/HKOSharp_Logo.png\" height=200/\u003e\u003cbr\u003e\n\u003ch1 align=\"center\"\u003e\nC# Library of Hong Kong Observatory Open Data API\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/ShingZhanho/HKOSharp/workflows/Build/badge.svg\" alt=\"Build Status\"\u003e\n  \u003ca href=\"https://codecov.io/gh/ShingZhanho/HKOSharp\"\u003e\u003cimg src=\"https://codecov.io/gh/ShingZhanho/HKOSharp/branch/master/graph/badge.svg\" alt=\"codecov\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/nuget/v/HKOSharp?color=blue\u0026amp;label=nuget\" alt=\"Nuget version\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/v/release/ShingZhanho/HKOSharp?include_prereleases\u0026amp;label=latest%20release\" alt=\"GitHub latest version\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/ShingZhanho/HKOSharp\" alt=\"License\"\u003e\u003c/p\u003e\n\n\n# What is HKOSharp?\n\nHKOSharp is a C# library which allows you to access the Hong Kong Observatory Open Data API without handling bunches of Http requests, responses or JSON.\n\n# Todo list\n\n1. Update documentation for a recent rewrite.\n2. Translate document into Chinese Traditional and Chinese Simplified.\n3. Finish Weather class.\n4. ~Move from CircleCI to Travis CI.~ (Succeesfully moved to GitHub Workflow)\n5. Increase Code Coverage\n\n# Build\n\nTo build the project, you need to:\n\n1. Clone the repo to your machine.\n2. Open the `.sln` file with your favourite IDE.\n3. That's it!\n\n# Installation\n\nTo use HKOSharp in your project, there are several ways to do so:\n\n* Build the project and import the `.dll` files manually;\n* Install from [NuGet Package Manager](https://www.nuget.org/packages/HKOSharp/);\n\n# Usage\n\nFor the full usage of HKOSharp, you should check [HKOSharp Documentations](https://hkosharp.shingzh.eu.org).\n\u003e **WARNING: Library were rewritten recently and documentation may not be up-to-date.**\n\nHere are some examples of usages of HKOSharp:\n\n```c#\n// Imports namespace\nusing HKOSharp.LibHKOSharp;\n```\n\n```c#\n// Gets today's Local Weather Forecast\nvar localForecast = Weather.GetLocalForecast(Language.English);\nConsole.Write(\"Description of today's forecast: \");\nConsole.Write(localForecast.ForecastDesc);\n// Output:\n// Description of today's forecast: Under the influence of an anticyclone aloft, the weather is ...\n```\n\n```c#\n// Gets latest Earthquake information\nvar eqInfo = Earthquake.GetLatestEqInfoAsnyc(Language.TraditionalChinese);\nConsole.Write(\"Latest Earthquake Report Region: \");\nConsole.Write(eqInfo.Region);\n// Output:\n// Latest Earthquake Report Region: 班達海\n```\n\n# Dependencies\n\n* [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)\n* .NET Standard 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshingzhanho%2Fhkosharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshingzhanho%2Fhkosharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshingzhanho%2Fhkosharp/lists"}