add refresh flag to getdata funcions

This commit is contained in:
Matt Walsh
2025-04-02 11:10:58 -05:00
parent b272aa298a
commit 23cc1a1f7a
14 changed files with 34 additions and 18 deletions

View File

@@ -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