Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 960 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 960 Bytes

svelte-yr-widget

Demo: widget

A simple widget for showing weather data from Yr.no.

Relevant API documentation: api.met.no

Install

With yarn $ yarn add svelte-yr-widget or npm: $ npm install svelte-yr-widget

Usage

    <script>
        import YrWidget from 'svelte-yr-widget';
    </script>

    <YrWidget 
        lat="59.8939529" 
        lon="10.6450361"
        place="Oslo" // optional
        locale="en_GB" // optional
    />

To run project locally

$ yarn
$ yarn dev

Dependency on YR Weather Symbols

To display weather symbols this app extracts all SVGs from YR Weather Symbols and matches these with the specification on weathericons.