Demo: widget
A simple widget for showing weather data from Yr.no.
Relevant API documentation: api.met.no
With yarn $ yarn add svelte-yr-widget
or npm: $ npm install svelte-yr-widget
<script>
import YrWidget from 'svelte-yr-widget';
</script>
<YrWidget
lat="59.8939529"
lon="10.6450361"
place="Oslo" // optional
locale="en_GB" // optional
/>
$ yarn
$ yarn dev
To display weather symbols this app extracts all SVGs from YR Weather Symbols and matches these with the specification on weathericons.