Hallo,
ich bin aktuell immer noch mit dem Umstieg von OH2 auf OH3 beschäftigt und jetzt ist das HTTP Binding an der Reihe.
Dies wird benutz um eine Seite von der UVR1611 auszulesen und Daten bereit zu stellen.
leider bekomme ich bei meiner aktuellen Konfiguration immer eine Fehlermeldung welche ich nicht interpretieren kann.
Die Seite sieht so aus.
Auslzulesen versuche ich sie mit.
Die Fehlermeldung welche ich bekomme lautet
Kann mir jemand sagen was ich falsch mache?
ich bin aktuell immer noch mit dem Umstieg von OH2 auf OH3 beschäftigt und jetzt ist das HTTP Binding an der Reihe.
Dies wird benutz um eine Seite von der UVR1611 auszulesen und Daten bereit zu stellen.
leider bekomme ich bei meiner aktuellen Konfiguration immer eine Fehlermeldung welche ich nicht interpretieren kann.
Die Seite sieht so aus.
Code:
<!--2.0--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <style type="text/css"> body {font-size: 14px; font-family: Verdana, Arial, Helvetica, sans-serif; background-repeat: no-repeat; background-color: transparent; background: transparent; margin: 0px; padding: 0px;} #frame {text-align: left; vertical-align: top; position: relative; margin-left: 0;} /*########## CSS-ID: Positionen der Anzeigeparameter ##########*/ #pos01 {top: 120px; right: 733px;} #pos02 {top: 104px; left: 42px;} #pos03 {top: 253px; left: 459px;} #pos04 {top: 320px; left: 458px;} #pos05 {top: 378px; left: 458px;} #pos06 {top: 429px; left: 458px;} #pos07 {top: 303px; left: 869px;} #pos08 {top: 415px; left: 869px;} #pos09 {top: 215px; right: 157px;} #pos10 {top: 87px; left: 793px;} #pos11 {top: 159px; right: 333px;} #pos12 {top: 287px; right: 404px;} #pos13 {top: 286px; right: 752px;} #pos14 {top: 218px; right: 857px;} #pos15 {top: 275px; right: 295px;} #pos16 {top: 13px; left: 801px;} #pos17 {top: 91px; left: 494px;} #pos18 {top: 10px; left: 494px;} #pos19 {top: 51px; left: 494px;} #pos20 {top: 57px; left: 205px;} #pos21 {top: 166px; right: 736px;} #pos22 {top: 158px; right: 166px;} #pos23 {top: 436px; right: 940px;} #pos24 {top: 136px; left: 495px;} #pos25 {top: 390px; right: 709px;} #pos26 {top: 434px; right: 710px;} /*########## CSS-Klasse: Darstellung der Anzeigeparameter ##########*/ .style1 {font-family: Tahoma; font-size: 18px; text-align: right; font-style: normal; font-weight: bold; color: #000000; position: absolute;} .style2 {font-family: Tahoma; font-size: 18px; text-align: left; font-style: normal; font-weight: bold; color: #000000; position: absolute;} .style3 {font-family: Tahoma; font-size: 20px; text-align: right; font-style: normal; font-weight: bold; color: #000000; position: absolute;} </style> <script type="text/javascript"> <!-- var Title ="Onlineschema"; // Titeltext im Browserfenster var GraphicFile = "GRAFIK.gif"; // Pfad der Grafikdatei var Width = "1020px"; var Height = "760px"; //### Intervallzeit [in Sekunden] f�r eine automatische Aktualisierung der Messwerte: ### //### < "30" = keine automatische Aktualisierung ### //-------------------------------------------------- var AutoRefreshTime = "60"; //### Linktext f�r manuelle Aktualisierung der Messwerte: ### //### "" = kein Link f�r manuelle Aktualisierung ### //-------------------------------------------------- var RefreshLink ="Werte aktualisieren"; function set_dimenson_para (){ document.getElementById("frame").style.width = Width; document.getElementById("frame").style.hight = Height; } --> </script> </head> <body onload="set_dimenson_para ()"> <div id="frame"> <!--########## Definitionen der Anzeigeparameter ##########--> <div class="style1" id="pos01">33,3&deg;C</div> <div class="style2" id="pos02">-3,4&deg;C</div> <div class="style2" id="pos03">54,0&deg;C</div> <div class="style2" id="pos04">34,7&deg;C</div> <div class="style2" id="pos05">32,5&deg;C</div> <div class="style2" id="pos06">32,8&deg;C</div> <div class="style2" id="pos07">44,3&deg;C</div> <div class="style2" id="pos08">30,7&deg;C</div> <div class="style1" id="pos09">30,1&deg;C</div> <div class="style2" id="pos10">32,7&deg;C</div> <div class="style1" id="pos11">25,5&deg;C</div> <div class="style1" id="pos12">0%</div> <div class="style1" id="pos13">0%</div> <div class="style1" id="pos14">39,8&deg;C</div> <div class="style1" id="pos15">42,2&deg;C</div> <div class="style2" id="pos16">50,7&deg;C</div> <div class="style2" id="pos17">665,3KWh</div> <div class="style2" id="pos18">0,1KW</div> <div class="style2" id="pos19">16L/h</div> <div class="style2" id="pos20">21,7&deg;C</div> <div class="style3" id="pos21">EIN</div> <div class="style3" id="pos22">AUS</div> <div class="style3" id="pos23">AUS</div> <div class="style2" id="pos24">45MWh</div> <div class="style1" id="pos25">21,6&deg;C</div> <div class="style1" id="pos26">10%</div> </div> </body> </html>
Code:
Thing http:url:UVR "UVR Abfragen" [baseURL="=http://192.168.179.21/GRAFIK1.htm",refresh=15, timeout=3000, commandMethod="GET",delay=1000] { Channels: Type string : test "Text" [ stateTransformation="REGEX(.*?id=\"pos12\">(.*?)%.*)]" ] }
Code:
2023-02-09 10:08:41.656 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Creating request for '=http://192.168.179.21/GRAFIK1.htm' failed: no protocol: =http://192.168.179.21/GRAFIK1.htm
Kommentar