Yr.no Weather Template

Prev Next

The YR.no weather template provides Weather-forcasts for any position on (landmass of) earth by exposing data from their weather simulation model. The only requirement is that a disclaimer/copyright text/logo is included in the design.

There's a lot of data to handle, as the data (temperature, wind-info, symbol etc.) is exposed for different time-ranges and data is more detailed in the near future than for example, a week away.

This wrapper makes it easier to handle this data. The methods Weather.YR.getTimeRangeForcast() and Weather.YR.getForecastAround(), simplifies how this is done.

The template uses Weather-symbol graphics from YR, but other designs can be used.

Note how the "Table (repeating data)" pattern is used for display of today's- and coming-days forecasts.