Skip to content

pacive/ruby-smhi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SMHI

A class for convenient access to a weather forecast from SMHI

SMHI::Forecast offers many ways to get the data one needs by providing several aliases and allows chaining of methods to narrow down the search.

Example:

require 'smhi'
fcst = SMHI.parse(SMHI.point_forecast(57.999628, 16.017767))
fcst.temperature.at(Time.now) # => Float
fcst.precip_mean.between((Time.now + 2 * 3600)..(Time.now + 5 * 3600)).values # => Array
fcst.wd[2] # => Integer
fcst['visibility'][0] # => Float

For more information on the available parameters, see http://opendata.smhi.se/apidocs/metfcst/parameters.html#parameter-table

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages