
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This library provides API client access to NOAA's NDFD database for access to weather forecast information via Ruby.
You can see the available forecast information that is accessible via the API on the NDFD technical description page.
In general, you can get the following:
The client offers a easy to use query interface and will hand back data to you in hashes, arrays and XML documents. Validates requests and data types on execution of requests (will raise contextual errors on poorly formed data in queries)
Ruby versions supported:
Ruby versions not supported (but will be):
Ruby versions that will not be supported:
Libraries used:
gem install weather-forecasts
WeatherForecasts.client
is the top-level start point from whence all API calls are executed.
Most calls follow the form of:
WeatherForecasts.client.
select(:maxt, :mint, :temp, etc.).
where(conditions).
execute
This will return an Array
or Hash
containing the data from the
response depending on the type of the request.
NOTE: Dates and times passed to the where
must be
ActiveSupport::TimeWithZone objects.
NOTE: NDFDgen
and NDFDgenByDay
are not implemented in favor of
using the equivalent collection-based functions.
NOTE: GmlLatLonList
, GmlTimeSeries
are not implemented because
of their limited use (and my inability to figure out what parameters
to use to make a valid request). It appears to be discontinued.
Query Method | API server function | Description |
---|---|---|
select_hourly | DigitalDWML from tabular data feed on [NWS](http://www.weather.gov/) | Returns a Hash of hourly (1-hour) forecast metrics for a single latitude/longitude out to 7 days. |
select | NDFDgenLatLonList | Returns a Hash of forecast metrics for multiple latitudes/longitudes. |
select_by_days | NDFDgenByDayLatLonList | Returns a Hash of forecast metrics for multiple latitudes/longitudes in a 24/12 hour period for a number of days. |
select_coordinates_by_zip | LatLonListZipCode | Returns a Hash of latitudes/longitudes for every zip code requested. |
select_coordinates_by_cities | LatLonListCityNames | Returns a Hash of latitudes/longitudes for a pre-defined set of cities. |
select_square_coordinates | LatLonListSquare | Returns a Array of latitudes/longitudes for the requested rectangular area. |
select_gridpoint_coordinates | LatLonListSubgrid | Returns a Array of latitudes/longitudes for the requested subgrid. |
select_linepoint_coordinates | LatLonListLine | Returns a Array of latitudes/longitudes between a start and end coordinate. |
select_corner_coordinates | CornerPoints | Returns a Array of latitudes/longitudes of the corners of one of the NDFD grids. |
To see a description of the NDFD Spatial Reference System (used for collecting lat/longs in an area) http://graphical.weather.gov/docs/ndfdSRS.htm
To see more detailed documention, view the API Documentation
FAQs
Unknown package
We found that weather-forecasts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.