Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Flot, parser object in ID nicht wählbar

    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

    Flot, parser object in ID nicht wählbar

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Hartmut Mellerowitz last edited by

      @hartmut-mellerowitz da fällt mir nur noch ein, den Browsercache zu löschen.
      Oder - wenn du den state gerade erst freigegeben hast den flot-Adapter neu starten

      1 Reply Last reply Reply Quote 0
      • UncleSam
        UncleSam Developer last edited by

        Welcher Typ ist denn der Datenpunkt, der aus dem Parser Adapter beschrieben wird? Ist es nicht so, dass flot nur number verwenden kann?

        Oder haben die anderen hier schon mal einen Wert aus dem Parser in flot dargestellt?

        Hartmut Mellerowitz 2 Replies Last reply Reply Quote 0
        • Hartmut Mellerowitz
          Hartmut Mellerowitz @UncleSam last edited by

          @unclesam
          ich habe history und parser neu gestartet und dann nochmal parser.0 PVAnlage angesehen und gespeichert, der Wert hatte sich geändert:
          siehe da, ich kann die ID in flot auswählen!
          So weit, so gut.
          Aber ich muss anscheinend die Website immer wieder neu einlesen, um den aktuellen Wert zu bekommen.
          Kann man das zyklisch starten?

          Homoran 1 Reply Last reply Reply Quote 0
          • Hartmut Mellerowitz
            Hartmut Mellerowitz @UncleSam last edited by

            @unclesam drer Typ ist number, funktioniert auch jetzt (fast) - siehe meinen nächsten Post

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

              @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

              Aber ich muss anscheinend die Website immer wieder neu einlesen, um den aktuellen Wert zu bekommen.
              Kann man das zyklisch starten?

              das macht der parser doch

              was hast du denn da als Intervall eingegeben?

              Hartmut Mellerowitz 1 Reply Last reply Reply Quote 0
              • Hartmut Mellerowitz
                Hartmut Mellerowitz @Homoran last edited by

                @homoran intervall = 30000 (ms), habe nochmal in der Tabelle nachgesehen: das läuft auch so.
                Vielen Dank erstmal für die Hilfe, muss jetzt noch mit regex gezielt den richtigen Wert treffen.
                Die Website ist HTML 4.0, mir scheint der \n (Zeilenumbruch) wird nicht verstanden.
                Als "Krücke" hole ich den den 4. Wert (num=3) mit (\d{2}.\d{2}).
                Da muss ich nochmal ran.

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

                  @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

                  mir scheint der \n (Zeilenumbruch) wird nicht verstanden.

                  so ist es

                  @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

                  Da muss ich nochmal ran.

                  Hattest du den Quelltext schon gepostet?
                  ich finde ihn nicht

                  Hartmut Mellerowitz 1 Reply Last reply Reply Quote 0
                  • Hartmut Mellerowitz
                    Hartmut Mellerowitz @Homoran last edited by

                    @homoran Nee, Auszug kommt hier:

                    <td width="100">
                    Tagesenergie</td>
                    <td width="70" align="right" bgcolor="#FFFFFF">
                    20.55</td>

                    Ich will den Wert der Tagesenergie holen, aktuell 20.55

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

                      @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

                      Auszug kommt hier:

                      Auszug nutzt nix 😉

                      kommt mir aber bekannt vor.
                      ist das ein alter Kostal?

                      EDIT:
                      vielleicht reicht der Auszug doch: gesen[^F]+[^\d]+([\d.]+)

                      Hartmut Mellerowitz 1 Reply Last reply Reply Quote 0
                      • Hartmut Mellerowitz
                        Hartmut Mellerowitz @Homoran last edited by

                        @homoran ... das ist ein Teil des Quellcodes der Website, wie er im Testtext des parser.0 PVAnlage steht

                        Homoran Hartmut Mellerowitz 2 Replies Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @Hartmut Mellerowitz last edited by

                          @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

                          das ist ein Teil des Quellcodes der Website

                          ist mir klar, aber ich brauch eigentlich immer den Ganzen Quelltext, weil es da sonst Treffer geben kann, die man nicht sieht

                          1 Reply Last reply Reply Quote 0
                          • Hartmut Mellerowitz
                            Hartmut Mellerowitz @Hartmut Mellerowitz last edited by

                            @hartmut-mellerowitz genau: ein Kostal 4.0

                            Homoran Hartmut Mellerowitz 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Hartmut Mellerowitz last edited by

                              @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

                              ein Kostal 4.0

                              Dazu gibt es hier einige Threads zum auswerten

                              1 Reply Last reply Reply Quote 0
                              • Hartmut Mellerowitz
                                Hartmut Mellerowitz @Hartmut Mellerowitz last edited by Homoran

                                @hartmut-mellerowitz ok, hier der komplette Quelcode:

                                <!DOCtype HTML PUBLIC "-//W3C//Dtd HTML 4.0 Transitional//EN">
                                <html>
                                <head>
                                <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
                                <meta name="Generator" CONTENT="ChrisB">
                                <title>PV Webserver</title>
                                </head>
                                <body nof="(MB=(DefaultMasterborder, 65, 60, 150, 10), L=(HomeLayout, 700, 600))" bgcolor="#EAF7F7" text="#000000" link="#0033CC" vlink="#990099" alink="#FF0000" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
                                <form method="post" action="">
                                <table cellspacing="0" cellpadding="0" width="770" nof="ly">
                                <tr><td height="5"></td></tr>
                                <tr><td width="190" height="55"></td>
                                <td width="400">
                                  <font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif" size="+3">
                                  PIKO 4.2
                                <br><font size="+1">                 
                                  Namenlos (1)
                                </font>
                                </font>
                                </td>
                                <td><img alt="Logo" height="42" width="130" src="KSE.gif"></td>
                                </tr>
                                </table>
                                
                                <font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
                                <table Border="0" width="100%"><tr>
                                <td width="150"></td>
                                <td> <hr> </td>
                                </tr></table>
                                <table cellspacing="0" cellpadding="0" width="770">
                                <tr><td></td></tr>
                                <tr>
                                <td width="190"></td>
                                <td colspan="2">
                                  <b>AC-Leistung</b></td>
                                <td>&nbsp</td>
                                <td>
                                  <b>Energie</b></td></tr>
                                <tr><td height="10"></td></tr>
                                
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  aktuell</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  38</td>
                                <td width="140">&nbsp W</td>
                                <td width="100">
                                  Gesamtenergie</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  28687</td>
                                <td width="50">&nbsp kWh</td>
                                <td>&nbsp</td></tr>
                                <tr height="2"><td></td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  &nbsp</td>
                                <td width="70" align="right">
                                  &nbsp</td>
                                <td width="140">&nbsp</td>
                                <td width="100">
                                  Tagesenergie</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  20.55</td>
                                <td width="50">&nbsp kWh</td>
                                <td>&nbsp</td></tr>
                                <tr height="5"><td></td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  Status</td>
                                <td colspan="4">
                                  Einspeisen MPP</td>
                                <td>&nbsp</td></tr>
                                <tr height="8"><td></td></tr>
                                <tr><td colspan="7">
                                <table align="top" width="100%"><tr>
                                <td width="182"></td>
                                <td><hr size="1"></font></td></tr>
                                <tr><td height="5"></td></tr></table>
                                </td></tr>
                                <tr>
                                <td width="190"></td>
                                <td colspan="2">
                                  <b>PV-Generator</b></td>
                                <td width="140">&nbsp</td>
                                <td colspan="2">
                                  <b>Ausgangsleistung</b></td>
                                <td width="30">&nbsp</td>
                                <td>&nbsp</td></tr>
                                <tr><td height="10"></td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  <u>String 1</u></td>
                                <td width="70">&nbsp</td>
                                <td width="140">&nbsp</td>
                                <td width="95">
                                  <u>L1</u></td>
                                <td width="70">&nbsp</td>
                                <td width="30">&nbsp</td>
                                <td>&nbsp</td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  Spannung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  285</td>
                                <td width="140">&nbsp V</td>
                                <td width="100">
                                  Spannung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  231</td>
                                <td width="30">&nbsp V</td>
                                <td>&nbsp</td></tr>
                                <tr height="2"><td></td></tr>
                                <tr valign="top" align="left">
                                <td width="190">&nbsp</td>
                                <td width="100">
                                  Strom</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  0.10</td>
                                <td width="140">&nbsp A</td>
                                <td width="100">
                                  Leistung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  0</td>
                                <td width="30">&nbsp W</td>
                                <td>&nbsp</td></tr>
                                <tr height="22"><td></td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  <u>String 2</u></td>
                                <td width="70">&nbsp</td>
                                <td width="140">&nbsp</td>
                                <td width="100">
                                  <u>L2</u></td>
                                <td width="70">&nbsp</td>
                                <td width="30">&nbsp</td>
                                <td>&nbsp</td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  Spannung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  189</td>
                                <td width="140">&nbsp V</td>
                                <td width="100">
                                  Spannung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  231</td>
                                <td width="30">&nbsp V</td>
                                <td>&nbsp</td></tr>
                                <tr height="2"><td></td></tr>
                                <tr valign="top" align="left">
                                <td width="190">&nbsp</td>
                                <td width="100">
                                  Strom</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  0.11</td>
                                <td width="140">&nbsp A</td>
                                <td width="100">
                                  Leistung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  38</td>
                                <td width="30">&nbsp W</td>
                                <td>&nbsp</td></tr>
                                <tr height="22"><td></td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                  <u> </u></td>
                                <td width="70">&nbsp</td>
                                <td width="140">&nbsp</td>
                                <td width="100">
                                  <u>L3</u></td>
                                <td width="70">&nbsp</td>
                                <td width="30">&nbsp</td>
                                <td>&nbsp</td></tr>
                                <tr>
                                <td width="190"></td>
                                <td width="100">
                                   </td>
                                <td width="70" align="right" bgcolor="#EAF7F7">
                                   </td>
                                <td width="140">&nbsp
                                   </td>
                                <td width="95">
                                  Spannung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  229</td>
                                <td width="30">&nbsp V</td>
                                <td>&nbsp</td></tr>
                                <tr height="2"><td></td></tr>
                                <tr valign="top" align="left">
                                <td width="190">&nbsp</td>
                                <td width="95">
                                   </td>
                                <td width="70" align="right" bgcolor="#EAF7F7">
                                   </td>
                                <td width="140">&nbsp
                                 </td>
                                <td width="95">
                                  Leistung</td>
                                <td width="70" align="right" bgcolor="#FFFFFF">
                                  0</td>
                                <td width="30">&nbsp W</td>
                                <td>&nbsp</td></tr>
                                
                                <tr><td height="15"></td></tr>
                                <tr><td colspan="7">
                                <table align="top" width="100%">
                                <tr><td width="182"></td>
                                <td><hr size="1"></font></td>
                                </tr><tr><td height="5"></td></tr></table>
                                </td></tr></table>
                                <table cellspacing="0" cellpadding="0" width="770">
                                <tr><td width="190"></td>
                                <td><font face="Arial,Helvetica,Geneva,Sans-serif">
                                <b>RS485 Kommunikation</b></td></tr>
                                <tr><td height="8"></td></tr>
                                <tr><td width="190"></td>
                                <td><font face="Arial,Helvetica,Geneva,Sans-serif">
                                Wechselrichter&nbsp
                                <input type="Text" name="edWrNr" value="1" size="3" maxlength="3">
                                <input type="submit" value="Anzeigen/Aktualisieren">
                                </td></tr><tr><td height="10"></td></tr>
                                </table>
                                </td></tr></table></font>
                                
                                <hr>
                                <table cellspacing="0" cellpadding="0" width="770">
                                <tr><td height="5"></td></tr>
                                <tr><td width="190"></td>
                                <td width="330">
                                <font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
                                <a href="LogDaten.dat">Historie</a>
                                &nbsp &nbsp &nbsp
                                <a href="Info.fhtml">Infoseite</a></font></td>
                                <td align="right">
                                <font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
                                <a href="Solar2.fhtml">Einstellungen</a></font></td>
                                <td width="50"></td>
                                </tr></table></font>
                                </form>
                                </body>
                                </html>
                                

                                Homoran Hartmut Mellerowitz 2 Replies Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Hartmut Mellerowitz last edited by

                                  @hartmut-mellerowitz
                                  Ich hab den Code in code-tags und spoiler gesetzt!
                                  Wird dann übersichtlicher

                                  und ja, es kann bei dem RegEx bleiben, den ich eben gepostet hatte

                                  1 Reply Last reply Reply Quote 0
                                  • Hartmut Mellerowitz
                                    Hartmut Mellerowitz @Hartmut Mellerowitz last edited by

                                    @hartmut-mellerowitz Super, funktioniert mit num=0 (1.Wert).

                                    Ich werd in Ruhe nochmal nachvollziehen, was diese regex-Befehle genau bedeuten.
                                    Da mit deiner Hilfe die Lösung da ist, können wir das jetzt beenden.
                                    Danke nochmal!

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

                                      @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

                                      funktioniert mit num=0 (1.Wert).

                                      das ist jetzt auch der einzige

                                      @hartmut-mellerowitz sagte in Flot, parser object in ID nicht wählbar:

                                      ch werd in Ruhe nochmal nachvollziehen, was diese regex-Befehle genau bedeuten.

                                      ganz einfach:
                                      suche Textbaustein - dann gehe weiter bis du ein F findest, dann weiter bis Zahlen kommen, die nimmst du dann incl. eines Punktes

                                      😉

                                      Bei Fragen -> fragen!

                                      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

                                      933
                                      Online

                                      31.9k
                                      Users

                                      80.1k
                                      Topics

                                      1.3m
                                      Posts

                                      3
                                      20
                                      757
                                      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