Initial commit

This commit is contained in:
2018-09-22 10:26:24 +08:00
commit 58bbbaf6de
114 changed files with 9151 additions and 0 deletions

123
README.md Normal file
View File

@@ -0,0 +1,123 @@
![Logo](admin/yr.png)
# yunkong2.yr
=================================
[![NPM version](http://img.shields.io/npm/v/yunkong2.yr.svg)](https://www.npmjs.com/package/yunkong2.yr)
[![Downloads](https://img.shields.io/npm/dm/yunkong2.yr.svg)](https://www.npmjs.com/package/yunkong2.yr)
[![Tests](https://travis-ci.org/yunkong2/yunkong2.yr.svg?branch=master)](https://travis-ci.org/yunkong2/yunkong2.yr)
[![NPM](https://nodei.co/npm/yunkong2.yr.png?downloads=true)](https://nodei.co/npm/yunkong2.yr/)
fetches 48h weather forecast from [yr.no](yr.no)
[yr.no](yr.no) is a joint service by the [Norwegian Meteorological Institute](met.no) and the [Norwegian Broadcasting Corporation](nrk.no)
http://om.yr.no/verdata/free-weather-data/
**Note** - if _"Send missing translations to yunkong2.net"_ is activated (default) missing translations will be sent to yunkong2.net server. No ips or any additional info will be stored or analysed. Just missing translation.
## Icons
Icons are taken from here [https://github.com/YR/weather-symbols](https://github.com/YR/weather-symbols) and belongs to yr.no.
## Changelog
### 2.0.2 [2018-08-01]
* (bluefox) Warning! Breaking changes! States are renamed.
* (bluefox) Refactoring of states and roles
### 1.0.6 [2017-05-27]
* (Andre) Update iconset
### 1.0.5 [2016-10-10]
* (bluefox) move weather widgets to this adapter
## 1.0.4 [2016-07-06]
* (bluefox) fix link to readme
### 1.0.3 [2016-05-17]
* (bluefox) change readme path
### 1.0.2 [2016-05-16]
* (bluefox) add translations
### 1.0.1 [2016-04-25]
* (bluefox) add translations
### 1.0.0 [2016-03-15]
* (bluefox) change parsing of cities
### 0.1.9 [2015-10-28]
* (bluefox) fix error with translations
### 0.1.8 [2015-10-27]
* (bluefox) translations
* (bluefox) automatically upload of missing translations to yunkong2.net
### 0.1.7 [2015-07-10]
* (bluefox) make yr works with metro widgets
### 0.1.6 [2015-06-12]
* (bluefox) translations
### 0.1.5 [2015-03-26]
* (bluefox) translations
### 0.1.4 [2015-03-24]
* (bluefox) remove unit "%" for "wind direction"
### 0.1.3 [2015-03-22]
* (bluefox) fix error with tomorrow and day after tomorrow
### 0.1.2 [2015-03-08]
* (bluefox) correct links to yr.no web site
### 0.1.1
* (bluefox) add translates for the weather states in other languages
### 0.1.0
* (bluefox) update yr on the new objects model
### 0.0.4
* (hobbyquaker) prepend "forecast." to state IDs
### 0.0.3
* (hobbyquaker) settings ui with autocomplete for location
* (hobbyquaker) renamed yr_forecast to forecast
* (hobbyquaker) added children attribute
* (hobbyquaker) decreased log verbosity
* (hobbyquaker) fixes
### 0.0.2
* (hobbyquaker) fixes
### 0.0.1
* (hobbyquaker) first release
## Todo
* setState forecast_object
## License
The MIT License (MIT)
Copyright (c) 2014-2018 hobbyquaker <hq@ccu.io>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.