PV Werte per http auslesen

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Duff11
    Dumb Home'r
    • 10.04.2021
    • 13

    #1

    PV Werte per http auslesen

    Hallo zusammen,

    ich habe eine PV Anlage (solarworld), deren Werte ich per http einsehen kann.
    Gerne möchte bspw. auslesen, ob die Anlage gerade produktiv ist und in Abhängigkeit des Wertes den Filterzyklus des Pools starten (Aquastar Air).

    Allerdings scheitere ich am Auslesen über den http Baustein...

    Anbei ein Beispiel des Quellcodes der PV-Seite:

    Code:
    <!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 10.1
    <br><font size="+1">
    pv (255)
    </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">
    2519</td>
    <td width="140">&nbsp W</td>
    <td width="100">
    Gesamtenergie</td>
    <td width="70" align="right" bgcolor="#FFFFFF">
    70184</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">
    10.86</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">
    570</td>
    <td width="140">&nbsp V</td>
    <td width="100">
    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="100">
    Strom</td>
    <td width="70" align="right" bgcolor="#FFFFFF">
    2.25</td>
    <td width="140">&nbsp A</td>
    <td width="100">
    Leistung</td>
    <td width="70" align="right" bgcolor="#FFFFFF">
    843</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">
    591</td>
    <td width="140">&nbsp V</td>
    <td width="100">
    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="100">
    Strom</td>
    <td width="70" align="right" bgcolor="#FFFFFF">
    2.29</td>
    <td width="140">&nbsp A</td>
    <td width="100">
    Leistung</td>
    <td width="70" align="right" bgcolor="#FFFFFF">
    841</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">
    0</td>
    <td width="140">&nbsp
    V</td>
    <td width="95">
    Spannung</td>
    <td width="70" align="right" bgcolor="#FFFFFF">
    228</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">
    0.00</td>
    <td width="140">&nbsp
    A</td>
    <td width="95">
    Leistung</td>
    <td width="70" align="right" bgcolor="#FFFFFF">
    835</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="255" 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>
    Es wäre dann der Wert 2519 .... bei aktuell und zwei Zeilen später ..

    <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">
    2519</td>


    Vielen Dank.


    Gruß,
    Duff11
  • Duff11
    Dumb Home'r
    • 10.04.2021
    • 13

    #2
    Probiert habe ich dies hier: \baktuell\s5\n\s48\n\b\v

    Kommentar

    • AlexAn
      Lebende Foren Legende
      • 25.08.2015
      • 4336

      #3
      aktuell\i>\i\i>\i\v
      Grüße Alex

      Kommentar

      • Duff11
        Dumb Home'r
        • 10.04.2021
        • 13

        #4
        Danke, aber im Liveview kommt leider immer 0.0 zurück
        Code:
        ...
        <tr>
        <td width="190"></td>
        <td width="100">
         aktuell</td>
        <td width="70" align="right" bgcolor="#FFFFFF">
         2519</td>
        <td width="140">&nbsp W</td>
        ...
        Zuletzt geändert von Duff11; 10.04.2021, 19:00.

        Kommentar

        • Gerd Clever
          MS Profi
          • 24.07.2016
          • 642

          #5
          Zwischen der 2. ">" und "2519" steckt wahrscheinlich noch ein Steuerzeichen (CR).

          Versuch doch mal: aktuell\i>\i\i>\i\s1\v
          Miniserver Gen 2, v13.1.11.17, 9x Extension, 2x Relay Extension, 4x 1-Wire, Türkontakte, Mobotix T25

          Wenn der Herr nicht das Haus baut, dann ist alle Mühe der Bauleute umsonst. (Psalm 127,1)

          Kommentar

          • Tico
            Lox Guru
            • 31.08.2016
            • 1035

            #6
            aktuell\i>\i\i>\i\n\v

            Klicke auf die Grafik für eine vergrößerte Ansicht

Name: Command Recognition.png
Ansichten: 201
Größe: 14,7 KB
ID: 300024
            Ich spreche kein Deutsch. Gib Google Translate die Schuld, wenn ich unverständlich bin.

            Kommentar

            • Duff11
              Dumb Home'r
              • 10.04.2021
              • 13

              #7
              Danke, ich erhalte bei den beiden letzten Varianten nun einen Wert. Allerdings stimmt der nicht mit dem gewollten überein. Bspw. sind es 358W und angezeigt werden nur 132. Mmh...

              EDIT
              Kann es sein, dass der eigentliche dezimale Wert als Hex angezeigt wird?
              Zuletzt geändert von Duff11; 11.04.2021, 09:18.

              Kommentar

              • Duff11
                Dumb Home'r
                • 10.04.2021
                • 13

                #8
                Ne, da stimmt was nicht. Es kommt immer ein Wert von 136 bis 141 raus...

                Kommentar

                • Duff11
                  Dumb Home'r
                  • 10.04.2021
                  • 13

                  #9
                  Sorry, noch ne Frage.
                  Woher weiß ich eigentlich, dass die VErbindung bzw. die http-Abfrage korrekt klappt?

                  ICh hatte bspw. den User+PW vergessen. Diesen habe ich nun in der url eingebaut:


                  Allerdings sind die Werte unverändert...

                  Kommentar

                  • Duff11
                    Dumb Home'r
                    • 10.04.2021
                    • 13

                    #10
                    Habe es nun Dank der Lösungsbeschreibung aus dem wiki hinbekommen!!!




                    Vielen Dank!

                    Kommentar

                    Lädt...