{"id":17600196,"url":"https://github.com/robb-randall/owmo","last_synced_at":"2026-03-04T18:31:30.077Z","repository":{"id":56887170,"uuid":"93351496","full_name":"robb-randall/owmo","owner":"robb-randall","description":"Ruby openweathermap.org API","archived":false,"fork":false,"pushed_at":"2023-01-16T20:19:29.000Z","size":81,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T15:13:31.928Z","etag":null,"topics":["openweathermap","openweathermap-api","ruby","ruby-gem","rubygems"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/robb-randall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.MD","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-05T01:01:12.000Z","updated_at":"2023-01-09T18:05:54.000Z","dependencies_parsed_at":"2023-02-10T06:01:09.319Z","dependency_job_id":null,"html_url":"https://github.com/robb-randall/owmo","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/robb-randall/owmo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb-randall%2Fowmo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb-randall%2Fowmo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb-randall%2Fowmo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb-randall%2Fowmo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robb-randall","download_url":"https://codeload.github.com/robb-randall/owmo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb-randall%2Fowmo/sbom","scorecard":{"id":779781,"data":{"date":"2025-08-18","repo":{"name":"github.com/robb-randall/owmo","commit":"ec414a033c83a317d81855c8d5dbb9d7d4f60fe4"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":4.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rake-release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/robb-randall/owmo/rake-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rake-release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/robb-randall/owmo/rake-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rake.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/robb-randall/owmo/rake.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rake-release.yml:1","Warn: no topLevel permission defined: .github/workflows/rake.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T04:37:59.676Z","repository_id":56887170,"created_at":"2025-08-23T04:37:59.676Z","updated_at":"2025-08-23T04:37:59.676Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30089324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T18:31:08.343Z","status":"ssl_error","status_checked_at":"2026-03-04T18:31:07.708Z","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":["openweathermap","openweathermap-api","ruby","ruby-gem","rubygems"],"created_at":"2024-10-22T11:09:40.330Z","updated_at":"2026-03-04T18:31:30.059Z","avatar_url":"https://github.com/robb-randall.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OWMO - OpenWeatherMap.Org Client API\n\nRuby client for openweathermap.org client API.  Currently only for current and forecast information.\n\n[![Gem Version](https://badge.fury.io/rb/owmo.svg)](https://badge.fury.io/rb/owmo)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'owmo'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install owmo\n\n## Usage\n\nYou'll need and API key from [OpenWeatherMap.org](http://openweathermap.org/appid).\n\nComplete examples can be found under owmo/examples.\n\n----\n### Quick Start\n\n```ruby\nrequire 'owmo'\napi_key = \"\u003capi key here\u003e\"\nputs OWMO::weather(api_key).get :current, city_name: \"London,UK\"\n```\n\n```ruby\nrequire 'owmo'\napi_key = \"\u003capi key here\u003e\"\nweather = OWMO::weather api_key\nputs weather.get :current, city_name: \"London,UK\"\n```\n\n```ruby\nrequire 'owmo'\napi_key = \"\u003capi key here\u003e\"\nOWMO::weather(api_key) { |weather| puts weather.get :current, city_name: \"London,UK\" }\n```\n----\n### Weather Information\n#### [Current weather data](http://openweathermap.org/current)\n```ruby\nOWMO::weather(api_key).get :current, city_name: \"London,UK\"\n```\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/current.rb)\n\n### [Current weather data for multiple cities](http://openweathermap.org/current#severalid)\n```ruby\nOWMO::weather(api_key).get :group, city_id: [4850751,4887398,2643743,4164138,5368361].join(\",\")\n```\n\n#### [5 day weather forecast](http://openweathermap.org/forecast5)\n```ruby\nOWMO::weather(api_key).get :forecast5, city_name: \"London,UK\"\n```\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/forecast5.rb)\n\n#### [16 day weather forecast](http://openweathermap.org/forecast16)\n```ruby\nOWMO::weather(api_key).get :forecast16, city_name: \"London,UK\"\n```\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/forecast16.rb)\n\n----\n### Query parameters\n\n#### Geocode (required)\n```ruby\n# Geocode by City ID\nOWMO::weather(api_key).get :current, city_id: 5328041\nOWMO::weather(api_key).get :current, id: 5328041\n\n# Geocode by City Name\nOWMO::weather(api_key).get :current, city_name: \"Beverly Hills\"\nOWMO::weather(api_key).get :current, q: \"Beverly Hills\"\n\n# Geocode by Zip Code\nOWMO::weather(api_key).get :current, zip: 90210\nOWMO::weather(api_key).get :current, zip_code: 90210\n\n# Geocode by Coordinance\nOWMO::weather(api_key).get :current, lon: -118.41, lat: 34.09\n```\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/query_geocode.rb)\n\n#### Mode\n```ruby\n# Response in JSON format (default)\nOWMO::weather(api_key).get :current, city_name: \"London,UK\"\nOWMO::weather(api_key).get :current, city_name: \"London,UK\", mode: :json\n\n# Response in XML format\nOWMO::weather(api_key).get :current, city_name: \"London,UK\", mode: :xml\n\n# Response in HTML format\nOWMO::weather(api_key).get :current, city_name: \"London,UK\", mode: :html\n```\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/query_mode.rb)\n\n#### Units\n```ruby\n# Kelvin (default)\nOWMO::weather(api_key).get :current, city_name: \"London,UK\"\n\n# Imperial\nOWMO::weather(api_key).get :current, city_name: \"London,UK\", units: :imperial\n\n# Metric\nOWMO::weather(api_key).get :current, city_name: \"London,UK\", units: :metric\n```\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/query_units.rb)\n\n#### All\n```ruby\nquery = {\n  city_name: \"London,UK\",\n  mode: 'json',\n  units: 'imperial',\n  lang: 'fr'\n}\n\nOWMO::weather(api_key).get :current, query\n```\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/query_all.rb)\n\n----\n### Working example using Sinatra\n\n```ruby\nrequire 'owmo'\nrequire 'sinatra' # Need to install, not included in gemspec\nrequire 'uri'\n\nget '/current/:name' do\n    api_key = '\u003cAPI Key\u003e'\n    weather = OWMO::Weather.new api_key\n    weather.get :current, city_name: params[:name], mode: :html\nend\n```\n\nThen navigate to: http://localhost:4567/current/London,UK\n\n[Full example](https://github.com/robb-randall/owmo/blob/master/examples/sinatra_example.rb)\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobb-randall%2Fowmo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobb-randall%2Fowmo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobb-randall%2Fowmo/lists"}