{"id":19310590,"url":"https://github.com/sepppenner/openweathermapapi","last_synced_at":"2026-06-13T06:31:23.945Z","repository":{"id":82869300,"uuid":"199798870","full_name":"SeppPenner/OpenWeatherMapAPI","owner":"SeppPenner","description":"OpenWeatherMapAPI","archived":false,"fork":false,"pushed_at":"2019-03-22T14:07:12.000Z","size":1801,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T03:30:51.187Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"eliseev-ev/OpenWeatherMapAPI","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeppPenner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-31T07:01:16.000Z","updated_at":"2019-07-31T07:01:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f789654-a772-4d2a-91a6-00e35d091946","html_url":"https://github.com/SeppPenner/OpenWeatherMapAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SeppPenner/OpenWeatherMapAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FOpenWeatherMapAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FOpenWeatherMapAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FOpenWeatherMapAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FOpenWeatherMapAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeppPenner","download_url":"https://codeload.github.com/SeppPenner/OpenWeatherMapAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FOpenWeatherMapAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34275065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":[],"created_at":"2024-11-10T00:24:55.829Z","updated_at":"2026-06-13T06:31:23.928Z","avatar_url":"https://github.com/SeppPenner.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenWeatherMapAPI for free servises\nMy release of openweathermap api for net framework 4.6.1\n-----\n\n\u003cdel\u003e# Download dll https://eliseevtech.ru/files/openweathermap/OpenWeatherMapApi.dll\n    \nNow avalible on nuget\n    \n        Install-Package ET.OpenWeatherMap -Version 0.0.1\n    \n# Usage\nFirst - get your api key from openweathermap.org\n\u003c/br\u003eNext add OpenWeatherMapApi.dll to your project\n\n## Create api class:\n\u003c/br\u003eOpenWeatherMap(YOU_API_KEY);\n\u003c/br\u003e   or \n\u003c/br\u003e    OpenWeatherMap(YOU_API_KEY, UNITS, LANG) \n\u003e        UNITS can be: OpenWeatherMap.Units.imperial, OpenWeatherMap.Units.metric, OpenWeatherMap.Units.kelvin\n\u003e        LANG can be: \"ru\", \"us\" , \"pl\", \"zh_cn\" and other, you can find it on openweathermap.org\nexample(there is not work random key, change it on your key!): \n\n    OpenWeatherMap weather = new OpenWeatherMap(\"d312d32131d314fcd4214d124d14\"); \n    //or \n    OpenWeatherMap weather = new OpenWeatherMap(\"d312d32131d314fcd4214d124d14\", OpenWeatherMap.Units.metric, \"ru\"); \n\n   \n \n## Get current weather\n\n    var moscowCurrent =  weather.Current(\"Moscow\"); //cache data\n    Console.WriteLine(@\"{0} : {1} {2} C°\", moscowCurrent.name ,moscowCurrent.weather.First().description , moscowCurrent.main.temp);\n\n## Get forecast weather\n\n    string cityName = \"London\";\n        foreach (var list in weather.Forecast(cityName).list)\n        {\n            // (*) new DateTime(1970, 1, 1, 0, 0, 0, 0).AddSeconds(list.dt) it is convert unixtime to datetime\n            Console.WriteLine( @\"{0} {1} : {2}C°, {3}\", cityName, new DateTime(1970, 1, 1, 0, 0, 0, 0).AddSeconds(list.dt), list.main.temp , list.weather.First().description);\n        }\n\n## Additionally functions \n GenerateRequestLink(RequestType requestType, string _location) - return you http request link\n \u003c/br\u003e RequestType can be = OpenWeatherMap.RequestType.current , OpenWeatherMap.RequestType.forecast \n \n example:\n \n     GenerateRequestLink(OpenWeatherMap.RequestType.current,\"Moscow\"));\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepppenner%2Fopenweathermapapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsepppenner%2Fopenweathermapapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepppenner%2Fopenweathermapapi/lists"}