Skip to content
pacivePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages