Skip to content

Commit

Permalink
Fixed crash in openweathermap api that occured since v2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
naofireblade committed Sep 17, 2019
1 parent 796893b commit e1fd07a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,7 @@

## 2.8.0
* Removed old weather underground api (pre March 2019)
* Added new weather underground api (post January 2019)
* Added new weather underground api (post January 2019)

## 2.8.1
* Fixed crash in openweathermap api that occured since v2.8.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The **locationGeo** parameter must be a list with the latitude longitude for you

The **key** parameter is the API key that you get by registering for the OpenWeather service

**Please choose from one of these location properties.**
**Please choose from *one* of these location properties.**

The **location** parameter must be a numerical unique city-id (can be found [here](https://openweathermap.org/find))

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function WeatherStationPlatform(log, config, api) {
}
else if (service === 'openweathermap') {
debug("Using service OpenWeatherMap");
this.apis.push(new openweathermap(station.key, station.language, station.locationGeo, station.locationCity, this.log, this.debug));
this.apis.push(new openweathermap(station.key, station.language, station.location, station.locationGeo, station.locationCity, this.log, this.debug));
}
else if (service === 'yahoo') {
debug("Using service Yahoo");
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-weather-plus",
"version": "2.8.0",
"version": "2.8.1",
"description": "A comprehensive weather plugin for homekit with current observations, forecasts and history.",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -84,12 +84,12 @@
},
"dependencies": {
"dark-sky": "^1.1.4",
"debug": "^2.6.9",
"debug": "^4.1.1",
"fakegato-history": "^0.5.2",
"geo-tz": "^4.0.1",
"moment-timezone": "^0.5.21",
"underscore": "1.8.3",
"openweather-apis": "^4.0.0",
"request": "^2.88.0"
}
}
}

0 comments on commit e1fd07a

Please sign in to comment.