1.4.5 • Published 6 years ago

@coderbyheart/react-weather-widget v1.4.5

Weekly downloads
84
License
MIT
Repository
github
Last release
6 years ago

react-weather-widget

npm version Build Status monitored by greenkeeper.io semantic-release js-standard-style

Unstyled weather widget build with React.

Usage

Add this widget to your site:

<div id="weather-widget" data-url="…" data-images="https://coderbyheart.github.io/react-weather-widget/icon/"></div>
<script type="text/javascript" defer src="https://coderbyheart.github.io/react-weather-widget/main.min.js"></script>

data-url is the location of the weather JSON file, generated from a yr.no XML feed.

curl -s \
    http://www.yr.no/sted/Norge/S%C3%B8r-Tr%C3%B8ndelag/Trondheim/Trondheim_sentrum/varsel.xml \
    | ./node_modules/.bin/babel-node src/xml2json.js

Here is a live example: https://coderbyheart.github.io/react-weather-widget/

Acknowledgments

Icons are from @yr/weather-symbols.

1.4.5

6 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.0.0

7 years ago