Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Benötige Hilfe bei RegEx

    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

    Benötige Hilfe bei RegEx

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

      Möchte die Energie meines PV-Servers auslesen da er zu alt gibt es leider nur eine neueres Modul.

      Habe viel gelesen und bis gestern wußte ich nicht was RegEx ist....

      Ich habe es selbst versucht, aber es ist mir ein Rätsel was diese Zeichen alles bedeuten, ich weiß, dass das in der Klammer wohl mein Ergebnis sein soll..und vorher der gesuchte String. aber mehr auch nicht.
      Im folgenden Beispiel lese ich leider nur die "width" aus und nicht den eigentlichen Wert.

      aktuell<[^\d]+([\d.]+)

      Kann mir jemand sagen wie der korrekte Ausdruck wäre, das mit dem Parser habe ich schon hinbekommen, nur steht halt 70 drinnen...

      
      <!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 5.5
      <br><font size="+1">                 
        PVWOLFWR (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">
        2033</td>
      <td width="140">&nbsp W</td>
      <td width="100">
        Gesamtenergie</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        64883</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">
        2.65</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">
        0</td>
      <td width="140">&nbsp V</td>
      <td width="100">
        Spannung</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        232</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.00</td>
      <td width="140">&nbsp A</td>
      <td width="100">
        Leistung</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        676</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">
        565</td>
      <td width="140">&nbsp V</td>
      <td width="100">
        Spannung</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        234</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">
        1.88</td>
      <td width="140">&nbsp A</td>
      <td width="100">
        Leistung</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        681</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 3</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">
        Spannung</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        535</td>
      <td width="140">&nbsp
        V</td>
      <td width="95">
        Spannung</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        238</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">
        Strom</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        1.98</td>
      <td width="140">&nbsp
      A</td>
      <td width="95">
        Leistung</td>
      <td width="70" align="right" bgcolor="#FFFFFF">
        676</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>
      
      

      regex101.jpg

      Homoran bahnuhr 4 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @HotMaggi last edited by

        @hotmaggi bitte kompletten echten Quelltext in code-tags posten

        H 1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active @HotMaggi last edited by bahnuhr

          @hotmaggi

          das sieht nach kostal (alte dos Oberfläche) aus.
          Und dafür gibt es ein Script.

          Suche benutzen !

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

            @hotmaggi sagte in Benötige Hilfe bei RegEx:

            Möchte die Energie meines PV-Servers auslesen da er zu alt gibt es leider nur eine neueres Modul.

            was willst du damit sagen?

            welcher WR ist es?

            sieht mir auf dem Screenshot nach kostal piko aus

            dann brauchen wir das Rad nicht neu erfinden, dazu gibt es hier schon einiges.

            H 1 Reply Last reply Reply Quote 0
            • H
              HotMaggi @Homoran last edited by

              @homoran

              Hallo homoran,

              ich schon wieder... vielen Dank für Deine Geduld und vor allem Hilfe!!

              1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @HotMaggi last edited by

                @hotmaggi

                Und bitte nicht nachträglich den Anfangsthread ändern.
                Man sieht nicht was du irgendwo in irgendeinem Satz geändert hast.

                H 1 Reply Last reply Reply Quote 0
                • H
                  HotMaggi @Homoran last edited by

                  @homoran

                  ja Kostal Piko 5.5 2011

                  habe nur Adapter für neuere Geräte gefunden...

                  bahnuhr 1 Reply Last reply Reply Quote 0
                  • bahnuhr
                    bahnuhr Forum Testing Most Active @HotMaggi last edited by

                    @hotmaggi sagte in Benötige Hilfe bei RegEx:

                    @homoran

                    ja Kostal Piko 5.5 2011

                    habe nur Adapter für neuere Geräte gefunden...

                    wie gesagt, da gibt es ein Script von mir.
                    Suche benutzen !

                    H 3 Replies Last reply Reply Quote 0
                    • H
                      HotMaggi @bahnuhr last edited by

                      @bahnuhr

                      alles klar, dachte, dass es zusammenhängend ist.

                      Ok werde ich das nächste mal beachten.

                      1 Reply Last reply Reply Quote 0
                      • H
                        HotMaggi @bahnuhr last edited by

                        @bahnuhr

                        oh prima
                        ich hatte gesucht, vermutlich nicht korrekt...

                        ich mach mich auf den Weg.....

                        1 Reply Last reply Reply Quote 0
                        • H
                          HotMaggi @bahnuhr last edited by

                          @bahnuhr

                          Danke für den Hinweis, ich habe das Script jetzt gefunden (kostal piko 5.5 alte Oberfläche)... eine Frage noch dazu bevor ich es einbinde und anpasse

                          Bei mir wurde String 2 und 3 genutzt im Script selbst steht etwas von Strang1 und Strang2.

                          Muss ich etwas ändern?

                          piko55.jpg

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

                            @hotmaggi sagte in Benötige Hilfe bei RegEx:

                            Muss ich etwas ändern?

                            ja!

                            es gibt eine Erweiterung auf 3 Strings
                            hat @bahnuhr in dem Thread gemacht.
                            bitte da weiter!

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              HotMaggi @Homoran last edited by

                              @homoran

                              ja jetzt seh ich es, sorry und wieder mal Danke!

                              1 Reply Last reply Reply Quote 0
                              • H
                                HotMaggi @bahnuhr last edited by

                                @bahnuhr

                                Probleme mit dem auslesen poste ich dann im anderen Thread nehme ich an?

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

                                  @hotmaggi sagte in Benötige Hilfe bei RegEx:

                                  @bahnuhr

                                  Probleme mit dem auslesen poste ich dann im anderen Thread nehme ich an?

                                  @homoran sagte in Benötige Hilfe bei RegEx:

                                  bitte da weiter!

                                  sagte ich bereits!

                                  hab hier zu gemacht

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  483
                                  Online

                                  31.9k
                                  Users

                                  80.2k
                                  Topics

                                  1.3m
                                  Posts

                                  3
                                  15
                                  542
                                  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