svelte-yr-widget
v0.0.7
Published
**Demo:** [widget](https://aspic.github.io/svelte-yr-widget/)
Downloads
11
Readme
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.