Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  version bump + history update
  reversed co2 minimum-limiting because it does not solve the problem
  no message
  • Loading branch information
Sebastian Kroll committed Jun 23, 2018
2 parents f214cc1 + eb0f585 commit 94de5c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## version history

### 0.3.7
- changed polling mechanism to prevent deadlocks on netatmo API errors

### 0.3.6
- fixed bug were zero-measurement-values were not applied to characteristics (https://github.com/skrollme/homebridge-eveatmo/issues/15)
- switched to default history length and timer-handling
Expand Down
22 changes: 8 additions & 14 deletions lib/netatmo-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,16 @@ class NetatmoDevice {

this.deviceData = null;
this.accessories = [];
this.refreshCheckRunning = false;

this.runCheckInterval = setInterval(function() {
if (!this.refreshCheckRunning) {
this.refreshCheckRunning = true;
this.log.debug("Executing Timed Refresh");

this.refreshDeviceData(function(err, data) {
if (this.accessories) {
this.accessories.forEach(function(accessory) {
accessory.notifyUpdate(data);
}.bind(this));
}
this.refreshCheckRunning = false;
}.bind(this), true);
}
this.log.debug("Executing Timed Refresh");
this.refreshDeviceData(function(err, data) {
if (this.accessories) {
this.accessories.forEach(function(accessory) {
accessory.notifyUpdate(data);
}.bind(this));
}
}.bind(this), true);
}.bind(this), ttl * 1000);
}

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.3.6",
"version": "0.3.7",
"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 94de5c4

Please sign in to comment.