{"id":16102568,"url":"https://github.com/abbe98/yr-py","last_synced_at":"2025-07-04T18:10:55.987Z","repository":{"id":62590760,"uuid":"68298692","full_name":"Abbe98/yr-py","owner":"Abbe98","description":"Wrapper for the YR.no API, for near time weather prediction.","archived":false,"fork":false,"pushed_at":"2016-10-01T14:14:24.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T03:48:35.234Z","etag":null,"topics":["weather-prediction","yr"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Abbe98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-15T13:57:35.000Z","updated_at":"2022-01-09T14:38:29.000Z","dependencies_parsed_at":"2022-11-03T22:34:20.961Z","dependency_job_id":null,"html_url":"https://github.com/Abbe98/yr-py","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Abbe98/yr-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abbe98%2Fyr-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abbe98%2Fyr-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abbe98%2Fyr-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abbe98%2Fyr-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abbe98","download_url":"https://codeload.github.com/Abbe98/yr-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abbe98%2Fyr-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263594623,"owners_count":23485877,"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":["weather-prediction","yr"],"created_at":"2024-10-09T18:54:08.491Z","updated_at":"2025-07-04T18:10:55.967Z","avatar_url":"https://github.com/Abbe98.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YR.no API wrapper\n\n*Wrapper for the YR.no API, for near time weather prediction.*\n\n## Installing\n\n```\npip install yr\n```\n\n## Using\n\n### Locations\nLocations are defined by Geonames, not coordinates:\n\n**Example**\n\n - `United_States/California/San_Jose`\n - `Sweden/Södermanland/Himlinge`\n\n### Periods\n\nEach 24 hours consists of four periods(0-3):\n - 0: 00-06\n - 1: 06-12\n - 2: 12-18\n - 3: 18-24\n\n### Code\n\nRetrieving the weather description for a specific period:\n```\nw = YR('Sweden/Södermanland/Himlinge')\nprint(w.getPeriodWeather(1))\n```\n`partly cloudy`\n\nRetrieving the weather description for the current period:\n```\nw = YR('Sweden/Södermanland/Himlinge')\nprint(w.getCurrentWeather())\n```\n`partly cloudy`\n\nRetrieving temperature for a specific period:\n```\nt = YR('Sweden/Södermanland/Himlinge')\nprint(t.getPeriodTemperature(1))\n```\n`17`\n\nRetrieving temperature for the current period:\n```\nt = YR('Sweden/Södermanland/Himlinge')\nprint(t.getCurrentTemperature())\n```\n`22`\n\n## Attribution and Terms of Use\n\nYou should read and understand the [YR.no terms of use](http://om.yr.no/verdata/vilkar/) which is only available in Norwegian...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbe98%2Fyr-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabbe98%2Fyr-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbe98%2Fyr-py/lists"}