{"id":19319840,"url":"https://github.com/hyperoslo/yr","last_synced_at":"2025-06-27T02:36:09.309Z","repository":{"id":22621839,"uuid":"25964310","full_name":"hyperoslo/yr","owner":"hyperoslo","description":"Yr makes it easy to get weather forecast from Yr.no.","archived":false,"fork":false,"pushed_at":"2014-11-25T08:53:35.000Z","size":34580,"stargazers_count":5,"open_issues_count":4,"forks_count":0,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-02-24T05:13:38.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperoslo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-30T09:45:24.000Z","updated_at":"2017-02-09T19:57:27.000Z","dependencies_parsed_at":"2022-08-20T21:50:39.679Z","dependency_job_id":null,"html_url":"https://github.com/hyperoslo/yr","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hyperoslo/yr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fyr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fyr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fyr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fyr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperoslo","download_url":"https://codeload.github.com/hyperoslo/yr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fyr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262178919,"owners_count":23271141,"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":[],"created_at":"2024-11-10T01:25:27.447Z","updated_at":"2025-06-27T02:36:09.235Z","avatar_url":"https://github.com/hyperoslo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yr\n\n[![Gem Version](https://img.shields.io/gem/v/yr.svg?style=flat)](https://rubygems.org/gems/yr)\n[![Build Status](https://img.shields.io/travis/hyperoslo/yr.svg?style=flat)](https://travis-ci.org/hyperoslo/yr)\n[![Dependency Status](https://img.shields.io/gemnasium/hyperoslo/yr.svg?style=flat)](https://gemnasium.com/hyperoslo/yr)\n[![Code Climate](https://img.shields.io/codeclimate/github/hyperoslo/yr.svg?style=flat)](https://codeclimate.com/github/hyperoslo/yr)\n[![Coverage Status](https://img.shields.io/coveralls/hyperoslo/yr.svg?style=flat)](https://coveralls.io/r/hyperoslo/yr)\n\nYr makes it easy to get weather forecast from Yr.no.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'yr'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install yr\n\n## Usage\n\n```\noslo = Yr::Place.find \"Oslo\"\noslo.forecast.days.each do |day|\n  p day.name\n  p day.date\n  p day.temperature.value\nend\n```\n\nIf you are using Rails, all the weather symbols are included in the assets\npipeline, both svg and png formats. This means you can do something like this\nif you want to display an icon `\u003c%= image_tag day.symbol.svg %\u003e` or\n`\u003c%= image_tag day.symbol.png %\u003e`.\n\nPNG files are included in several sizes, which you can specify like this\n`\u003c%= image_tag day.symbol.png(size: 100) %\u003e`.\n\nThe supported png sizes are:\n\n* 30px\n* 38px\n* 48px (default)\n* 100px\n* 200px\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Credits\n\nHyper made this. We're a digital communications agency with a passion for good code,\nand if you're using this library we probably want to hire you.\n\nAlso thanks to https://github.com/Hakon/yr_api for inspiration and some code.\n\n## License\n\nYr is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fyr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperoslo%2Fyr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fyr/lists"}