Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0522bce

Browse files
authored
Merge pull request#55 from skrollme/patch-1
added missing updates for batteryPercentage and lowBattery
2 parents0f6a0ed +4275f1b commit0522bce

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎accessory/weatherstation-accessory.js‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@ module.exports = function(pHomebridge) {
228228
this.gustAngle=weatherData.gustAngle;
229229
dataChanged=true;
230230
}
231+
if(weatherData.batteryPercent&&this.batteryPercent!=weatherData.batteryPercent){
232+
this.batteryPercent=weatherData.batteryPercent;
233+
dataChanged=true;
234+
}
235+
if(weatherData.lowBattery&&this.lowBattery!=weatherData.lowBattery){
236+
this.lowBattery=weatherData.lowBattery;
237+
dataChanged=true;
238+
}
231239

232240
if(dataChanged){
233241
this.getServices().forEach(
@@ -269,4 +277,4 @@ module.exports = function(pHomebridge) {
269277

270278
}
271279
returnWeatherStationAccessory;
272-
};
280+
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp