{"id":16078856,"url":"https://github.com/roman-developer/open_weather_aemet","last_synced_at":"2026-02-09T10:33:16.515Z","repository":{"id":235824052,"uuid":"790825811","full_name":"roman-developer/open_weather_aemet","owner":"roman-developer","description":"This gem provides weather info from the spanish AEMET agency (Agencia Estatal de Meteorología)","archived":false,"fork":false,"pushed_at":"2024-05-03T04:43:24.000Z","size":45,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T19:52:39.159Z","etag":null,"topics":["aemet","forecast","ruby","weather","weather-api"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/open_weather_aemet","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/roman-developer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-23T15:45:35.000Z","updated_at":"2024-05-03T04:43:27.000Z","dependencies_parsed_at":"2024-04-25T20:46:29.432Z","dependency_job_id":"4e868bab-46dd-4bef-b2bb-0b2f24b6a3fa","html_url":"https://github.com/roman-developer/open_weather_aemet","commit_stats":null,"previous_names":["roman-developer/open_weather_aemet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roman-developer/open_weather_aemet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fopen_weather_aemet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fopen_weather_aemet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fopen_weather_aemet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fopen_weather_aemet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roman-developer","download_url":"https://codeload.github.com/roman-developer/open_weather_aemet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fopen_weather_aemet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29261951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["aemet","forecast","ruby","weather","weather-api"],"created_at":"2024-10-09T10:22:44.600Z","updated_at":"2026-02-09T10:33:16.496Z","avatar_url":"https://github.com/roman-developer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenWeatherAemet\n\n**OpenWeatherAemet** is a Ruby gem implemented to access to the [Aemet Open Data](https://opendata.aemet.es/centrodedescargas/inicio).\n\nThe AEMET (es: *Agencia Estatal de Meteorología*) provides some open resources in API format to get meterologic information, like the weather forecasting for Spain teritories.\n\n![AEMET](https://i.ibb.co/t3mhrhH/quienes-somos.gif[/img])\n\nThis API is accesible via AEMET [API key](https://opendata.aemet.es/centrodedescargas/altaUsuario?), and you could get which endpoints to use in this [swagger](https://opendata.aemet.es/dist/index.html?) documentation. So, you need to create an API key in the AEMET web page before starting to use this gem in your project.\n\n:es: --\u003e *Este README está disponible en Español [aquí](https://github.com/roman-developer/open_weather_aemet/blob/main/README_ES.md)*\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'open_weather_aemet'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install open_weather_aemet\n\n## Usage\n\n:exclamation: Previous requirements:\n\n- Get an [API key](https://opendata.aemet.es/centrodedescargas/altaUsuario?) from AEMET (we would recommend to store in an ENV variable for your project).\n\nIf you have installed the gem (see [previous section](##Installation)) in your ruby project:\n\n1. Require the library:\n    \n    ```ruby\n    require 'open_weather_aemet'\n    ```\n    \n2. Use some of the following methods\n    \n    ```ruby\n    # Get forecast results from any endpoint.\n    # api_url is the endpoint URL\n    # api_key is the AEMET api key\n    OpenWeatherAemet::Weather.forecast_by_api_url(api_url, api_key)\n    \n    # Get forecast results from a city.\n    # city_code is the official INE code from any spanish city\n    # api_key is the AEMET api key\n    OpenWeatherAemet::Weather.forecast_by_city(city_code, api_key)\n    ```\n\n    :round_pushpin: You can get **INE codes** from the [INE website](https://www.ine.es/daco/daco42/codmun/codmun11/11codmunmapa.htm). In the future, we will try to implement a method by city name instead of city code.\n\n    \n3. Use the JSON returned as you want. Example of output for *forecast by city*:\n```\n[{:date=\u003e\"2024-04-29T00:00:00\", :max_temperature=\u003e18, :min_temperature=\u003e6, :sky_state=\u003e\"very_cloudy\"},\n {:date=\u003e\"2024-04-30T00:00:00\", :max_temperature=\u003e21, :min_temperature=\u003e4, :sky_state=\u003e\"partly_cloudy_intervals\"},\n {:date=\u003e\"2024-05-01T00:00:00\", :max_temperature=\u003e16, :min_temperature=\u003e4, :sky_state=\u003e\"partly_cloudy_intervals_with_rain\"}]\n```\n\n## Contributing\n\nAny contribution to improve this gem is welcome in this repo https://github.com/roman-developer/open_weather_aemet. If you want to collaborate, adding a new implementation or fixing a bug, please open an issue and a PR associate to this issue to be reviewed by the repository owners.\n\nFollow these **rules** when you add your code:\n\n- Start commit name with `chore:` if you are doing a maintenance task.\n- Start commit name with `feat:` if you are implementing a new feature (if is not existing in the project).\n- Start commit name with `doc:` if you are adding documentation\n- Start commit name with `bug:` if you are fixing a bug.\n\n:warning: DON'T try to merge directly on `main` branch, please open a PR for contributing, if not your code could be reverted.\n\nThis project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/open_weather_aemet/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the **OpenWeatherAemet** project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/open_weather_aemet/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman-developer%2Fopen_weather_aemet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froman-developer%2Fopen_weather_aemet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman-developer%2Fopen_weather_aemet/lists"}