1 vote

Ky.yr

Umbraco Yr.no weather service integration

Created for the Codegarden 2012 Package compo.

This is a  Umbraco Package with a server side XML integration with Yr.no

The package contains a razor script that you can customize to get weather data in the format you want. The XML structure is available as a DynamicXML object and the XML data is cached using a memory cache via System.Runtime.Caching to avoid hammering the yr.no service with requests from your server (its required too in the yr.no terms of use). The caching component is included in a dll file in the package.

How to use:

 

  1. Download and install the package, 
  2. Go to http://www.yr.no and search for the location you want weather information for.
  3. Copy the URL of that location (url is different for english and norwegian language)
  4. Insert the ky.yr macro in either a template or in a rich text field and supply the yr.no URL to the location as a parameter to the macro
  5. Write your own css for the macro html output or include the yrweather.css in your master template
What is included:
  • ky.yr.dll -  handles caching of xml data from the url you supply
  • YrWeatherOutput.cshtml a razor script to format the xml data.
  • YrWeather.css, sample style for the markup in the YrWeatherOutput script.
  • Ky.yr macro that you can embed in either your template or inline in a rich text editior.

 

It is coded by me and Øyvind Kristiansen from the umbraco team at Knowit Reaktor Kyber AS

 

Screenshots

Package owner

Kjetil Barnung

Kjetil Barnung

Kjetil has 28 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Kjetil Barnung
  • Created: 15/06/2012
  • Current version 0.3
  • License MIT
  • Downloads on Our: 1.2K

External resources