extended forecast silent refresh
This commit is contained in:
parent
0baa31a92c
commit
f7a15a93c6
4 changed files with 26 additions and 26 deletions
|
|
@ -21,12 +21,11 @@ class Almanac extends WeatherDisplay {
|
|||
this.timing.totalScreens = 1;
|
||||
}
|
||||
|
||||
async getData(_weatherParameters, refresh) {
|
||||
const superResponse = super.getData(_weatherParameters, refresh);
|
||||
const weatherParameters = _weatherParameters ?? this.weatherParameters;
|
||||
async getData(weatherParameters, refresh) {
|
||||
const superResponse = super.getData(weatherParameters, refresh);
|
||||
|
||||
// get sun/moon data
|
||||
const { sun, moon } = this.calcSunMoonData(weatherParameters);
|
||||
const { sun, moon } = this.calcSunMoonData(this.weatherParameters);
|
||||
|
||||
// store the data
|
||||
this.data = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue