Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  version bump + history update
  setting min value for co2 for investigating history gaps + anti-crash-fix for netatmo's current API problems
  • Loading branch information
Sebastian Kroll committed Nov 21, 2018
2 parents d62e59e + cd56aac commit 39bb000
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## version history

### 0.4.1
- setting min value for co2 for investigating history gaps
- anti-crash-fix for netatmo's current API problems

### 0.4.0
- added wind-sensor (still testing)

Expand Down
3 changes: 3 additions & 0 deletions accessory/eveatmo-room-accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ module.exports = function(pHomebridge) {
var accessoryData = this.extractAccessoryData(deviceData);
var weatherData = this.mapAccessoryDataToWeatherData(accessoryData);

// testing, because it seems, that low co2 values cause gaps in history
weatherData["co2"] = Math.max(450,weatherData["co2"]);

this.historyService.addEntry({
time: new Date().getTime() / 1000,
temp: weatherData["currentTemperature"],
Expand Down
2 changes: 1 addition & 1 deletion accessory/eveatmo-weather-accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function(pHomebridge) {
if (!netatmoDevice.deviceData.hasOwnProperty(deviceId)) continue;
var device = netatmoDevice.deviceData[deviceId];

if(device.dashboard_data.Pressure) {
if(device.dashboard_data && device.dashboard_data.Pressure) {
mainDeviceId = deviceId;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-eveatmo",
"version": "0.4.0",
"version": "0.4.1",
"description": "Homebridge plugin which adds a Netatmo weatherstation as HomeKit device and tries to act like Elgato Eve Room/Weather",
"license": "ISC",
"keywords": [
Expand Down

0 comments on commit 39bb000

Please sign in to comment.