Autorefresh

public/javascripts/datetiume.js
   - added parameter 'params'
   - refresh all graphics aftter refreshrate

public/javascripts/global.js
   - call showDate with params
This commit is contained in:
rxf
2023-05-24 23:00:15 +02:00
parent 3921a889a2
commit b485c08227
4 changed files with 19 additions and 8 deletions
-1
View File
@@ -4,7 +4,6 @@ import {DateTime} from './luxon.min.js'
export const colors = {'eq': '#0000FF', 'max': '#FF0000', 'min': '#008000', 'peaks': '#DAA520'};
// Defaults für die Mittelwertbildungen
const refreshRate = 5; // Grafik so oft auffrischen (in Minuten)
let txtMeldung = false; // falls keine Daten da sind, Text melden
const avgTime = 30; // defaul average time für particulate matter
let doUpdate = true; // update every 5 min