add refresh flag to getdata funcions
This commit is contained in:
parent
b272aa298a
commit
23cc1a1f7a
14 changed files with 34 additions and 18 deletions
|
|
@ -28,9 +28,9 @@ class TravelForecast extends WeatherDisplay {
|
|||
this.timing.delay.push(150);
|
||||
}
|
||||
|
||||
async getData() {
|
||||
async getData(weatherParameters, refresh) {
|
||||
// super checks for enabled
|
||||
if (!super.getData()) return;
|
||||
if (!super.getData(this.weatherParameters)) return;
|
||||
const forecastPromises = TravelCities.map(async (city) => {
|
||||
try {
|
||||
// get point then forecast
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue