NEWS
[gelöst] SQL history in Admin nicht angezeigt
-
Hallo,
(in JIRA fehlt noch das Projekt ioBroker.admin)
Wird ein Objekt per SQL archiviert, so wird die Indikation in Admin nicht angezeigt. Wird der Wert per History archiviert, so wird die farbliche Markierung angezeigt.
Bei beiden Objekten ist die Archivierung per SQL aktiviert. Beim unteren ist zusätzlich die Archivierung per History aktivHabe die Stelle vermutlich gefunden. Da ich aber nicht weiß, wie man den Admin debuggen kann, konnte ich es nciht testen
// ----------------------------- HISTORY ------------------------------------------------ this.checkHistory = function () { var found = false; for (var u = 0; u < this.main.instances.length; u++) { if (this.main.objects[this.main.instances[u]].common && this.main.objects[this.main.instances[u]].common.type === 'storage' && this.main.objects[this.main.instances[u]].common.enabled) { if (this.historyEnabled !== null && this.historyEnabled != true) { this.historyEnabled = true; // update history buttons this.init(true); } else { this.historyEnabled = true; } found = true; return; } } if (this.historyEnabled !== null && this.historyEnabled != false) { this.historyEnabled = false; // update history buttons this.init(true); } else { this.historyEnabled = false; } };Tobias
-
Hallo,
(in JIRA fehlt noch das Projekt ioBroker.admin)
Wird ein Objekt per SQL archiviert, so wird die Indikation in Admin nicht angezeigt. Wird der Wert per History archiviert, so wird die farbliche Markierung angezeigt.
filename="Ohne Titel.png" index="0">~~ Bei beiden Objekten ist die Archivierung per SQL aktiviert. Beim unteren ist zusätzlich die Archivierung per History aktiv
Habe die Stelle vermutlich gefunden. Da ich aber nicht weiß, wie man den Admin debuggen kann, konnte ich es nciht testen
// ----------------------------- HISTORY ------------------------------------------------ this.checkHistory = function () { var found = false; for (var u = 0; u < this.main.instances.length; u++) { if (this.main.objects[this.main.instances[u]].common && this.main.objects[this.main.instances[u]].common.type === 'storage' && this.main.objects[this.main.instances[u]].common.enabled) { if (this.historyEnabled !== null && this.historyEnabled != true) { this.historyEnabled = true; // update history buttons this.init(true); } else { this.historyEnabled = true; } found = true; return; } } if (this.historyEnabled !== null && this.historyEnabled != false) { this.historyEnabled = false; // update history buttons this.init(true); } else { this.historyEnabled = false; } };Tobias `
Bist du sicher, dass SQL Adapter auch enabled ist?