no hazards, blizzard

This commit is contained in:
Matt Walsh 2022-12-19 10:14:33 -06:00
parent 2c394c2e4a
commit 5b926a358e
2 changed files with 7 additions and 2 deletions

View file

@ -50,7 +50,10 @@ class Hazards extends WeatherDisplay {
this.getDataCallback(); this.getDataCallback();
if (!superResult) return; if (!superResult) {
this.setStatus(STATUS.loaded);
return;
}
this.drawLongCanvas(); this.drawLongCanvas();
} }
@ -71,6 +74,7 @@ class Hazards extends WeatherDisplay {
// no alerts, skip this display by setting timing to zero // no alerts, skip this display by setting timing to zero
if (lines.length === 0) { if (lines.length === 0) {
this.setStatus(STATUS.loaded);
this.timing.totalScreens = 0; this.timing.totalScreens = 0;
return; return;
} }
@ -86,8 +90,8 @@ class Hazards extends WeatherDisplay {
for (let i = 0; i < pages; i += 1) this.timing.delay.push(timingStep); for (let i = 0; i < pages; i += 1) this.timing.delay.push(timingStep);
// add the final 3 second delay // add the final 3 second delay
this.timing.delay.push(150); this.timing.delay.push(150);
this.calcNavTiming();
this.setStatus(STATUS.loaded); this.setStatus(STATUS.loaded);
this.calcNavTiming();
} }
drawCanvas() { drawCanvas() {

View file

@ -268,6 +268,7 @@ const getWeatherIconFromIconLink = (link, _isNightTime) => {
return addPath('CC_Windy.gif'); return addPath('CC_Windy.gif');
case 'blizzard': case 'blizzard':
case 'blizzard-n':
return addPath('Blowing-Snow.gif'); return addPath('Blowing-Snow.gif');
default: default: