{"id":16485371,"url":"https://github.com/morganconrad/noaa-weather","last_synced_at":"2025-05-02T03:30:38.996Z","repository":{"id":9356623,"uuid":"11209343","full_name":"MorganConrad/NOAA-weather","owner":"MorganConrad","description":"Java / Android code for dealing with data collected from NOAA's REST API","archived":false,"fork":false,"pushed_at":"2017-11-02T17:40:06.000Z","size":249,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T21:42:57.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MorganConrad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-05T22:12:40.000Z","updated_at":"2021-01-12T01:56:05.000Z","dependencies_parsed_at":"2022-09-22T16:22:34.970Z","dependency_job_id":null,"html_url":"https://github.com/MorganConrad/NOAA-weather","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganConrad%2FNOAA-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganConrad%2FNOAA-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganConrad%2FNOAA-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganConrad%2FNOAA-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MorganConrad","download_url":"https://codeload.github.com/MorganConrad/NOAA-weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251981009,"owners_count":21675059,"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-10-11T13:25:39.182Z","updated_at":"2025-05-02T03:30:38.560Z","avatar_url":"https://github.com/MorganConrad.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"NOAA-weather\r\n============\r\n\r\nJava / Android code for collecting, parsing, and organizing weather data collected from [NOAA](http://www.noaa.gov/), \r\nspecifically, the [NOAA REST API](http://graphical.weather.gov/xml/rest.php)\r\n\r\nUsage\r\n=====\r\n\r\n[JavaDocs are here](http://morganconrad.github.io/NOAA-weather/)\r\n\r\nGetting and parsing the data\r\n----------------------------\r\n\r\n1. Create a NOAAWeather\r\n\t\tNOAAWeather weather = new NOAAWeather();\r\n2. Set the dates of interest using one form of setDates\r\n\t\tweather.setDates(new Date(), 10);      // next 10 days\r\n3. Set the location\r\n\t\tweather.setLocation(39.096, -94.595);  // Kansas City here I come\r\n4. By default, this will obtain data for min and maximum temperature, temperature, and general conditions.\r\n   If you want more, e.g. wind direction and wind gusts, call addNDFDParameters.\r\n\t\tweather.addNDFDParameters(\"wdir\", \"wgust\");\r\n5. You are ready to call().  This may take a few seconds so you might want to use an Executor etc.\r\n\t\tweather.call();\r\n\r\n\r\nUsing the results\r\n-----------------\r\n\r\n1. There is some \"metadata\" in a Map\u003cString, String\u003e.  Current keys are enumerated in \u003cNOAAWeather.MoreInfoKeys\u003e\r\n\t\tString theirURL = weather.getMoreInfo().get(NOAAWeather.MoreInfoKeys.OUT_URL.name());\r\n2. You can obtain all data for the time period, for a certain measurement, as an NDFDSeries\r\n\t\tNDFDSeries allMaxTs = weather.getNDFDSeries(NDFD.maxt);\r\n3. More to come...\r\n\t\t\r\n\r\nExample Code\r\n----------\r\n\r\n    NOAAWeather weather = new NOAAWeather();\r\n    weather.setDates(new Date(), 10);      // next 10 days\r\n    weather.setLocation(39.096, -94.595);  // Kansas City here I come, YMMV\r\n    weather.addNDFDParameters(\"wdir\", \"wgust\");\r\n    weather.call();\r\n     ... more needed on what to do here ...\r\n    String theURL = weather.getMoreInfo().get(NOAAWeather.MoreInfoKeys.OUT_URL.name());\r\n    NDFDSeries allMaxTs = weather.getNDFDSeries(NDFD.maxt);\r\n\r\n\r\nDeveloped By\r\n============\r\n\r\n* Morgan Conrad - \u003cflyingspaniel@gmail.com\u003e\r\n\r\nLicense\r\n=======\r\n\r\n    Copyright 2013 Morgan Conrad\r\n\r\n    Licensed under the LGPL (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n       http://www.gnu.org/copyleft/lesser.html\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganconrad%2Fnoaa-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorganconrad%2Fnoaa-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganconrad%2Fnoaa-weather/lists"}