modular
This commit is contained in:
parent
b71d696670
commit
6933e7b7f1
26 changed files with 600 additions and 873 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue