mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 09:09:30 -07:00
modular
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user