Skip to content

aspic/svelte-yr-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published