{"id":23600228,"url":"https://github.com/timharek/d-yr","last_synced_at":"2026-01-30T01:04:03.039Z","repository":{"id":41342511,"uuid":"467244164","full_name":"timharek/d-yr","owner":"timharek","description":"Access Yr's weather API and Nominatim's API with Deno","archived":false,"fork":false,"pushed_at":"2024-06-01T18:54:19.000Z","size":166,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T07:16:40.905Z","etag":null,"topics":["deno","deno-cli","metno-locationforecast","weather","weather-api","yrno"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/timharek.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,"zenodo":null}},"created_at":"2022-03-07T20:11:07.000Z","updated_at":"2024-06-08T02:28:00.000Z","dependencies_parsed_at":"2023-09-21T15:34:01.802Z","dependency_job_id":"7b7209a4-9c40-499d-affe-c86883951827","html_url":"https://github.com/timharek/d-yr","commit_stats":{"total_commits":121,"total_committers":2,"mean_commits":60.5,"dds":"0.14049586776859502","last_synced_commit":"3a8040a0495af77ef5127a1f7951f92137c3c132"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/timharek/d-yr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fd-yr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fd-yr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fd-yr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fd-yr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timharek","download_url":"https://codeload.github.com/timharek/d-yr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fd-yr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28892889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","deno-cli","metno-locationforecast","weather","weather-api","yrno"],"created_at":"2024-12-27T11:49:11.530Z","updated_at":"2026-01-30T01:04:03.024Z","avatar_url":"https://github.com/timharek.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest version](https://deno.land/badge/dyr/version)](https://deno.land/x/dyr)\n[![JSR](https://jsr.io/badges/@timharek/d-yr)](https://jsr.io/@timharek/d-yr)\n[![sourcehut](https://img.shields.io/badge/repository-sourcehut-lightgrey.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSINCiAgICB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+DQogIDxkZWZzPg0KICAgIDxmaWx0ZXIgaWQ9InNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSJibGFjayIgLz4NCiAgICA8L2ZpbHRlcj4NCiAgICA8ZmlsdGVyIGlkPSJ0ZXh0LXNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSIjQUFBIiAvPg0KICAgIDwvZmlsdGVyPg0KICA8L2RlZnM+DQogIDxjaXJjbGUgY3g9IjUwJSIgY3k9IjUwJSIgcj0iMzglIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjQlIg0KICAgIGZpbGw9Im5vbmUiIGZpbHRlcj0idXJsKCNzaGFkb3cpIiAvPg0KICA8Y2lyY2xlIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjM4JSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSI0JSINCiAgICBmaWxsPSJub25lIiBmaWx0ZXI9InVybCgjc2hhZG93KSIgLz4NCjwvc3ZnPg0KCg==)](https://sr.ht/~timharek/d-yr)\n[![GitHub mirror](https://img.shields.io/badge/mirror-GitHub-black.svg?logo=github)](https://github.com/timharek/d-yr)\n[![Codeberg mirror](https://img.shields.io/badge/mirror-Codeberg-blue.svg?logo=codeberg)](https://codeberg.org/timharek/d-yr)\n\n[![builds.sr.ht status](https://builds.sr.ht/~timharek/d-yr.svg)](https://builds.sr.ht/~timharek/d-yr)\n\n# d-yr\n\nAccess Yr's weather API and Nominatim's names API for getting weather details\nabout a specific location.\n\nYou can read more about the API's on [met.yr.no](https://api.met.no/weatherapi/locationforecast/2.0/documentation) and [Nominatim](https://nominatim.org/).\n\nThis project has both a CLI and functions to access Yr.no's API.\n\n## Usage\n\n### Example for current weather\n\n```ts\nimport { getCurrent } from \"jsr:@timharek/d-yr\";\n\nconst currentWeather = getCurrent(\"Bergen\");\n// do what you need to do with the weather data.\n```\n\n### Example for forecasted weather\n\n```ts\nimport { getForecast } from \"jsr:@timharek/d-yr\";\n\nconst location = \"Bergen\";\nconst hoursAhead = 5;\n\nconst currentWeather = getForecast(location, hoursAhead);\n// do what you need to do with the weather data.\n```\n\n## CLI\n\n### Installation\n\n```sh\ndeno install --allow-net=api.met.no,nominatim.openstreetmap.org \\\n  -n yr jsr:@timharek/d-yr/cli\n```\n\nYou have now installed d-yr as `yr`.\n\n### Usage\n\nRun the CLI with:\n\n```sh\n# Current weather forecast for location\nyr current Bergen\n# OR forecast for location\nyr forecast Bangkok 5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimharek%2Fd-yr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimharek%2Fd-yr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimharek%2Fd-yr/lists"}