{"id":26678947,"url":"https://github.com/alakra/dwml","last_synced_at":"2025-03-26T05:17:44.305Z","repository":{"id":17072010,"uuid":"19836900","full_name":"alakra/dwml","owner":"alakra","description":"An opinionated parser for NOAA's Digital Weather Markup Language (DWML)","archived":false,"fork":false,"pushed_at":"2021-04-29T21:11:32.000Z","size":23,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:49:12.638Z","etag":null,"topics":["dwml","noaa","ruby","xml"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jhipster/generator-jhipster","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alakra.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}},"created_at":"2014-05-15T22:08:21.000Z","updated_at":"2020-03-19T00:08:31.000Z","dependencies_parsed_at":"2022-09-09T07:50:27.340Z","dependency_job_id":null,"html_url":"https://github.com/alakra/dwml","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alakra%2Fdwml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alakra%2Fdwml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alakra%2Fdwml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alakra%2Fdwml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alakra","download_url":"https://codeload.github.com/alakra/dwml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591496,"owners_count":20640692,"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":["dwml","noaa","ruby","xml"],"created_at":"2025-03-26T05:17:43.750Z","updated_at":"2025-03-26T05:17:44.293Z","avatar_url":"https://github.com/alakra.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dwml [![Gem Version](https://badge.fury.io/rb/dwml.svg)](http://badge.fury.io/rb/dwml) [![Build Status](https://secure.travis-ci.org/alakra/dwml.svg?branch=master)](http://travis-ci.org/alakra/dwml) [![Code Climate](https://codeclimate.com/github/alakra/dwml/badges/gpa.svg)](https://codeclimate.com/github/alakra/dwml)\n\nAn opinionated parser for NOAA's Digital Weather Markup Language (DWML).\n\n## Requirements\n\n* ruby \u003e= `2.5.x`\n\n## Usage\n\nIn your `Gemfile`:\n\n```ruby\ngem 'dwml', '~\u003e1.2'\n```\n\nIn your application:\n\n```ruby\noutput = DWML.new(nokogiri_xml_doc).process\n```\n\nThe output will look something like this:\n\n```ruby\n    {:product=\u003e\n      {:title=\u003e\"NOAA's National Weather Service Forecast Data\",\n       :field=\u003e\"meteorological\",\n       :category=\u003e\"forecast\",\n       :creation_date=\u003eThu, 05 Mar 2020 18:49:42 UTC +00:00},\n     :source=\u003e\n      {:product_center=\u003e\n        \"Meteorological Development Laboratory - Product Generation Branch\",\n       :more_information=\u003e\"https://graphical.weather.gov/xml/\",\n       :disclaimer=\u003e\"http://www.nws.noaa.gov/disclaimer.html\",\n       :credit=\u003e\"https://www.weather.gov/\",\n       :credit_logo=\u003e\"https://www.weather.gov/logorequest\",\n       :feedback=\u003e\"https://www.weather.gov/contact\"},\n     :parameters=\u003e\n      {\"point1\"=\u003e\n        {:latitude=\u003e38.99,\n         :longitude=\u003e-77.01,\n         :temperature=\u003e\n          {:maximum=\u003e\n            {:name=\u003e\"Daily Maximum Temperature\",\n             :values=\u003e\n              [{:value=\u003e48.0,\n                :start_time=\u003eSat, 07 Mar 2020 12:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eSun, 08 Mar 2020 00:00:00 UTC +00:00},\n               {:value=\u003e59.0,\n                :start_time=\u003eSun, 08 Mar 2020 12:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eMon, 09 Mar 2020 00:00:00 UTC +00:00},\n               {:value=\u003e68.0,\n                :start_time=\u003eMon, 09 Mar 2020 12:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eTue, 10 Mar 2020 00:00:00 UTC +00:00},\n               {:value=\u003e66.0,\n                :start_time=\u003eTue, 10 Mar 2020 12:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eWed, 11 Mar 2020 00:00:00 UTC +00:00},\n               {:value=\u003e62.0,\n                :start_time=\u003eWed, 11 Mar 2020 12:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eThu, 12 Mar 2020 00:00:00 UTC +00:00}]},\n           :minimum=\u003e\n            {:name=\u003e\"Daily Minimum Temperature\",\n             :values=\u003e\n              [{:value=\u003e35.0,\n                :start_time=\u003eSat, 07 Mar 2020 00:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eSat, 07 Mar 2020 13:00:00 UTC +00:00},\n               {:value=\u003e31.0,\n                :start_time=\u003eSun, 08 Mar 2020 01:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eSun, 08 Mar 2020 13:00:00 UTC +00:00},\n               {:value=\u003e40.0,\n                :start_time=\u003eMon, 09 Mar 2020 00:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eMon, 09 Mar 2020 13:00:00 UTC +00:00},\n               {:value=\u003e51.0,\n                :start_time=\u003eTue, 10 Mar 2020 00:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eTue, 10 Mar 2020 13:00:00 UTC +00:00},\n               {:value=\u003e48.0,\n                :start_time=\u003eWed, 11 Mar 2020 00:00:00 UTC +00:00,\n                :unit=\u003e\"Fahrenheit\",\n                :end_time=\u003eWed, 11 Mar 2020 13:00:00 UTC +00:00}]}}}}}\n```\n\n## FAQ\n\n### Where do I get DWML documents from?\n\nYou can download them directly from the [National Digital Forecast Database (NDFD) Digital Weather Markup Language (DWML) Generator](https://graphical.weather.gov/xml/SOAP_server/ndfdXML.htm).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falakra%2Fdwml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falakra%2Fdwml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falakra%2Fdwml/lists"}