Address on markers and on graph
public/javascripts/chart_utilities.js
- add address in #addSensorID'
- function 'addAddress' added
public/javascripts/datetime.js
- removed unnecessary comment
public/javascripts/global.js
- refreshrate changed to 5 min
- typo 'autohide' corrected
views/index.pug
- removed text 'only for live ...'
views/layout.pug
- removed superflous links and variables
public/javascripts/maps.js
- added address to marker popup
charts/preparecharts.js
- translate legend texts
public/javascripts/showcharts.js
- dont show selected tab
public/stylesheets/style.sass
- add style for sensornumber on chart
loclae/[de|en]/translation.json
- added translations for legend
charts/utilities.js
- ymax for live set to 120
This commit is contained in:
@@ -21,31 +21,6 @@ export const showDate = (sofort, params) => {
|
||||
}
|
||||
}
|
||||
|
||||
/* ToDo:
|
||||
// Alle Minute die ktuelle Urzeit anzeigen und
|
||||
// den Plot für Tages - und Wochendaten updaten.
|
||||
// Alle 'refreshRate' plus 15sec die Grafiken neu zeichnen
|
||||
// Die Funktion wird alle Sekunde aufgerufen !
|
||||
//
|
||||
function showUhrzeit(sofort) {
|
||||
var d = moment() // akt. Zeit holen
|
||||
if (sofort || (d.second() == 0)) { // Wenn Minute grade um
|
||||
$('#h1uhr').html(d.format('HH:mm'));
|
||||
$('#subtitle').html(d.format('YYYY-MM-DD')); // dann zeit anzeigen
|
||||
}
|
||||
if (((d.minute() % refreshRate) == 0) && (d.second() == 15)) { // alle ganzen refreshRate Minuten, 15sec danach
|
||||
console.log(refreshRate, 'Minuten um, Grafik wird erneuert');
|
||||
if ((aktsensorid != 'map') && (doUpdate == true)) { // Wenn nicht die Karte, dann
|
||||
doPlot('oneday',startDay); // Tages- und
|
||||
doPlot('oneweek',startDay); // Wochenplot erneuern
|
||||
}
|
||||
else {
|
||||
fetchAktualData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
export const formatJSDate = (d) => {
|
||||
return DateTime.fromJSDate(d).toFormat('yyyy-LL-dd HH:mm:ss')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user