This commit is contained in:
Matt Walsh
2022-12-06 16:14:56 -06:00
parent b71d696670
commit 6933e7b7f1
26 changed files with 600 additions and 873 deletions

View File

@@ -5,11 +5,15 @@ import { loadImg } from './utils/image.mjs';
import { text } from './utils/fetch.mjs';
import { rewriteUrl } from './utils/cors.mjs';
import WeatherDisplay from './weatherdisplay.mjs';
import { registerDisplay } from './navigation.mjs';
class Radar extends WeatherDisplay {
constructor(navId, elemId) {
super(navId, elemId, 'Local Radar', true);
this.okToDrawCurrentConditions = false;
this.okToDrawCurrentDateTime = false;
// set max images
this.dopplerRadarImageMax = 6;
// update timing
@@ -397,4 +401,5 @@ class Radar extends WeatherDisplay {
}
}
export default Radar;
// register display
registerDisplay(new Radar(8, 'radar'));