Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IoBroker.vis-history

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    IoBroker.vis-history

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

      @adarof Tut mir leid versteh ich nicht wie soll ich dass:

      887.png

      in Flot bekommen und dann in iFrame?

      sigi234 A 2 Replies Last reply Reply Quote 0
      • sigi234
        sigi234 Forum Testing Most Active @Hardwearhansi last edited by sigi234

        @Hardwearhansi

        Welchen DP hast du?

        So:

        Screenshot (46)_LI.jpg

        H 1 Reply Last reply Reply Quote 0
        • H
          Hardwearhansi @sigi234 last edited by

          @sigi234 Danke jetzt ist der back ground schon mal weg aber auf meinem Tablet wird dennoch nichts angezeigt auf meinem Handy jedoch schon...

          1 Reply Last reply Reply Quote 0
          • A
            adarof @Hardwearhansi last edited by

            @Hardwearhansi
            Oh sorry, da hab ich die Threads durcheinander gewürfelt.

            Für die letzten Meldungen hab mir ein Script gebaut, was den history abfragt und als HTML-String aufarbeitet:

            
            on({id: 'javascript.0.localLoggerMailStripped'/*LoggerMail*/, change: "any"}, function (obj) {
            
            setTimeout(function() { // set Timeout of 2sec since db isnt filled before
            
            // Get 50 last stored events for all IDs
            sendTo('sql.0', 'getHistory', {
                id: 'javascript.0.localLoggerMailStripped'/*LoggerMail*/,
                options: {
                    end:       new Date().getTime(),
                    count:     3,
                    aggregate: 'onchange'
                }
            }, function (result) {
                  var monthNames = [
                "Jan", "Feb", "Mär",
                "Apr", "Mai", "Jun", "Jul",
                "Aug", "Sep", "Okt",
                "Nov", "Dez"];
                var resultString = '<table>'; 
                for (var i = 0; i < result.result.length; i++) {
                    var d = new Date(result.result[2-i].ts);  
                    //var datestring = ("0" + d.getDate()).slice(-2) + "." + monthNames[d.getMonth()] + " " + ("0" + d.getHours()).slice(-2) + ":" + ("0" + d.getMinutes()).slice(-2);
                    //resultString += '<tr><td style="font-size:small;>' + datestring + '</td> <td style="font-size:normal;font-weight:bold">'+ result.result[4-i].val + '</td></tr>';  
                    var datestringDate = ("0" + d.getDate()).slice(-2) + "." + monthNames[d.getMonth()] + " ";
                    var datestringTime = ("0" + d.getHours()).slice(-2) + ":" + ("0" + d.getMinutes()).slice(-2);
                    resultString += '<tr><td style="font-size:large;padding-top:11px"> '+ datestringDate + '<br/>'
                                 +'<span style="font-size:x-large">' + datestringTime + '</span>'
                                 +'</td> <td style="font-size:x-large;padding-left:10px;padding-top:11px">'+ result.result[2-i].val + '</td></tr>';  
                    //console.log(JSON.stringify(result.result[i]));
                }
                resultString += "</table>"; 
                //console.log(resultString);
                setState('javascript.0.scriptEnabled.LastMessagesFiFoHTML'/*LastMessagesFiFoHTML*/, resultString);
            });
            
            }, 2000); //SetTimeout Ende
            
            });
            
            
            
            sigi234 H 2 Replies Last reply Reply Quote 0
            • sigi234
              sigi234 Forum Testing Most Active @adarof last edited by

              @adarof

              Hallo, muss der DP javascript.0.localLoggerMailStripped angelegt werden?

              A 1 Reply Last reply Reply Quote 0
              • A
                adarof @sigi234 last edited by adarof

                @sigi234 Das ist ein Datenpunkt, wo ich meine Werte nacheinander reinschreibe, die auch in der Liste auftauchen sollen.

                Bei mir erzeuge ich also 2 Spalten: 1x Datum/UHrzeit und einmal Meldung (für alles mögliche):
                Unbenannt.PNG

                sigi234 1 Reply Last reply Reply Quote 0
                • sigi234
                  sigi234 Forum Testing Most Active @adarof last edited by

                  @adarof sagte in IoBroker.vis-history:

                  Das ist ein Datenpunkt, wo ich meine Werte nacheinander reinschreibe

                  Also ja.

                  1 Reply Last reply Reply Quote 0
                  • H
                    Hardwearhansi @adarof last edited by

                    @adarof Ja mir reichen die orginalen widgets ja auch die werden ja als json ausgegeben und auf der vis vorschau und auch am browser angezeigt aber nicht in der iobroker app an meinem Tablet hindoch auf meinem handy in der vis schon dass versteh ich nicht...

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Hardwearhansi last edited by

                      @Hardwearhansi
                      Ich habe leider schon Probleme deinen Bandwurmsatz ohne Interpunktion und Groß-/Kleinschreibung zu verstehen 😞

                      • Was klappt wo und wie?
                      • und was wo und wie nicht?
                      H 1 Reply Last reply Reply Quote 0
                      • H
                        Hardwearhansi @Homoran last edited by

                        @Homoran Tut mir leid also Dieses Widget hier:

                        887.png

                        Wird mir auf meinem Tablet nicht angezeigt jedoch auf meinem Handy schon beide Iobroker Vis App aus dem Playstore von Android

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @Hardwearhansi last edited by Homoran

                          @Hardwearhansi sagte in IoBroker.vis-history:

                          also Dieses Widget hier:

                          Welches ist das?
                          So sieht bei mir das history-event-list Widget aus.
                          Das wird bei mir in der App (Android!) vollkommen korrekt angezeigt.

                          Also:

                          • welche App?
                          • welches Widget?
                          • Welche Version von
                            • App?
                            • vis?
                            • Android?
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate
                          FAQ Cloud / IOT
                          HowTo: Node.js-Update
                          HowTo: Backup/Restore
                          Downloads
                          BLOG

                          841
                          Online

                          32.0k
                          Users

                          80.4k
                          Topics

                          1.3m
                          Posts

                          13
                          39
                          9663
                          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