Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] SQL history in Admin nicht angezeigt

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] SQL history in Admin nicht angezeigt

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hometm last edited by

      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.

      544_ohne_titel.png 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

      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        @hometm:

        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?

        1 Reply Last reply Reply Quote 0
        • P
          Pman last edited by

          Ich hatte einmal den Fehler, dass das Icon nicht direkt blau wurde, nach einem Reload von Admin wurde es dann korrekt angezeigt.

          1 Reply Last reply Reply Quote 0
          • H
            hometm last edited by

            > Ich hatte einmal den Fehler, dass das Icon nicht direkt blau wurde, nach einem Reload von Admin wurde es dann korrekt angezeigt.
            Das war wirklich ein Reload-Problem von Chrome. Nach einem Reload funktioniert es.

            Danke

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate

            813
            Online

            31.8k
            Users

            80.0k
            Topics

            1.3m
            Posts

            3
            4
            918
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo