diff --git a/CHANGELOG.md b/CHANGELOG.md index eec9207c..34ee824f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [2.4.0] - Unreleased + +### Added + + - Add two new configuration options for currentweather module. + - `showFeelsLike`: Shows how it actually feels like (wind chill or heat index) + - `useKMPHwind`: adds an option to see wind speed in Kmph instead of just m/s or Beaufort + ## [2.3.0] - Unreleased ### Added diff --git a/modules/default/currentweather/README.md b/modules/default/currentweather/README.md index 304eba1e..7c56ca62 100644 --- a/modules/default/currentweather/README.md +++ b/modules/default/currentweather/README.md @@ -43,7 +43,9 @@ The following properties can be configured: | `showWindDirectionAsArrow` | Show the wind direction as an arrow instead of abbreviation

**Possible values:** `true` or `false`
**Default value:** `false` | `showHumidity` | Show the current humidity

**Possible values:** `true` or `false`
**Default value:** `false` | `showIndoorTemperature` | If you have another module that emits the INDOOR_TEMPERATURE notification, the indoor temperature will be displayed
**Default value:** `false` -| `onlyTemp` | Show only current Temperature and weather icon without windspeed, sunset and sunrise time.

**Possible values:** `true` or `false`
**Default value:** `false` +| `onlyTemp` | Show only current Temperature and weather icon without windspeed, sunset, sunrise time and feels like.

**Possible values:** `true` or `false`
**Default value:** `false` +| `showFeelsLike` | Shows the Feels like temperature weather.

**Possible Values:**`true` or `false`
**Default Values: `true`** +| `useKMPHWind` | Uses KMPH as units for windspeed.

**Possible Values:**`true` or `false`
**Default Values: `false`** | `useBeaufort` | Pick between using the Beaufort scale for wind speed or using the default units.

**Possible values:** `true` or `false`
**Default value:** `true` | `lang` | The language of the days.

**Possible values:** `en`, `nl`, `ru`, etc ...
**Default value:** uses value of _config.language_ | `decimalSymbol` | The decimal symbol to use.

**Possible values:** `.`, `,` or any other symbol.
**Default value:** `.` diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index c29d587b..442e8632 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -430,7 +430,7 @@ Module.register("currentweather",{ + 1.22874*Math.pow(10,-3)*tempInF*tempInF*this.humidity + 8.5282*Math.pow(10,-4)*tempInF*this.humidity*this.humidity - 1.99*Math.pow(10,-6)*tempInF*tempInF*this.humidity*this.humidity; - // this.feelsLike = Hindex.toFixed(0); + switch (this.config.units){ case "metric": this.feelsLike = Hindex.toFixed(0); break;