FHEM Forum

FHEM => Sonstiges => Thema gestartet von: Rose01 am 16 Januar 2016, 13:45:57

Titel: (gelöst) httpmod geht nicht mehr
Beitrag von: Rose01 am 16 Januar 2016, 13:45:57
Hallo,
ich kann den Fehler nicht finden. Ich bekomme ständig diesen Fehler im Log... >:(

2016.01.16 13:23:08 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:23:17 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:23:28 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:23:37 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:23:47 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:23:57 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:24:08 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:24:18 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:24:28 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:24:38 3: UVR1611: Read response to Update didn't match any Reading(s)
2016.01.16 13:24:48 3: UVR1611: Read response to Update didn't match any Reading(s)


   
define UVR1611 HTTPMOD http://admin:admin@192.168.2.20:355/schematic_files/1.cgi 10
attr UVR1611 userattr readingsExpr1 readingsExpr2 readingsExpr3 readingsName1 readingsName2 readingsName3 readingsRegex1 readingsRegex2 readingsRegex3 timeout
attr UVR1611 readingsExpr1 $val =~ s/,/\./;; $val;;
attr UVR1611 readingsExpr2 $val =~ s/,/\./;; $val;;
attr UVR1611 readingsExpr3 $val =~ s/,/\./;; $val;;
attr UVR1611 readingsName1 Solarstrahlung
attr UVR1611 readingsName2 Leistung_HVK
attr UVR1611 readingsName3 Abgas_Vergaser
attr UVR1611 readingsRegex1 (?s)"pos27"> (.*?......)
attr UVR1611 readingsRegex2 (?s)"pos22"> (.*?.....)
attr UVR1611 readingsRegex3 (?s)"pos33" > (.*?....)
attr UVR1611 room UVR
attr UVR1611 timeout 3

HTTP/1.1 200 OK Server: Keil-EWEB/2.1 Content-Type: text/html Cache-Control: no-cache Connection: close <div id="pos0" > 19,8 &deg;C</div> <div id="pos1" > EIN</div> <div id="pos2" > AUS</div> <div id="pos3" > AUS</div> <div id="pos4" > <a href="javascript:loadChanger('10620AB0180');"> AUS</a> </div> <div id="pos5" > AUS</div> <div id="pos6" > <a href="javascript:loadChanger('10720AB0180');"> AUS</a> </div> <div id="pos7" > AUS</div> <div id="pos8" > AUS</div> <div id="pos9" > AUS</div> <div id="pos10" > AUS</div> <div id="pos11" > 0,00 </div> <div id="pos12" > 13:38:24 </div> <div id="pos13" > 16.01.2016 </div> <div id="pos14" > 622,5 </div> <div id="pos15" > 7</div> <div id="pos16" > Küche </div> <div id="pos17" > 37,9 &deg;C</div> <div id="pos18" > 0,0 </div> <div id="pos19" > 767,6</div> <div id="pos20" > 6. </div> <div id="pos21" > 0,0</div> <div id="pos22" > 0,00</div> <div id="pos23" > 22,4 &deg;C</div> <div id="pos24" > 21,9 &deg;C</div> <div id="pos25" > 2,6 &deg;C</div> <div id="pos26" > 17,5 &deg;C</div> <div id="pos27" > 3 W/m&sup2;</div> <div id="pos28" > 29,5 &deg;C</div> <div id="pos29" > 60,2 &deg;C</div> <div id="pos30" > 30,1 &deg;C

ich kann kein Fehler finden.... komisch ist das das schon einmal ging.Die Werte werden vom Modul erkannt es gibt aber kein Reading
Vieleicht kann mir da jemand helfen.

Viele Grüsse Rose01



Titel: Antw:httpmod geht nicht mehr
Beitrag von: betateilchen am 16 Januar 2016, 13:49:09
Wie kommt man eigentlich auf die Idee, in einer solchen Farbe zu posten?

(http://up.picr.de/24295879we.png)

Da macht ja schon des Lesens des Beitrags keinen Spaß.
Titel: Antw:httpmod geht nicht mehr
Beitrag von: Rose01 am 16 Januar 2016, 13:50:17
sorry war nicht meine absicht..  :P habe es geändert
Titel: Antw:httpmod geht nicht mehr
Beitrag von: StefanStrobel am 16 Januar 2016, 14:28:40
Hallo,

hast Du das neue HTTPMOD aus dem Forum eingespielt?
Wenn nicht, hat sich in den letzten Monaten am automatisch ausgelieferten Modul nichts geändert.
Wenn Du Deine Daten und z.B. die Regex (?s)"pos27"> (.*?......) in einen Regex Tester kopierst, dann matcht auch nichts.
In Deinen Daten ist ein Space zwischen pos27" und dem > ...
<div id="pos27" > 3 W
so kann es nicht matchen.
Vielleicht hat ja Dein Gerät ein Update bekommen und das Ausgabeformat geändert?
Wenn Du die Regex etwas flexibler formulierst, sollte es wieder gehen (z.B. ein [\s\t]* für optionale Spaces oder Tabs zwischen "pos27" und das nächste >.

Gruss
    Stefan
Titel: Antw:httpmod geht nicht mehr
Beitrag von: Rose01 am 20 Januar 2016, 13:34:21
Hallo Stefan

Danke für deine Antwort.. Komme da trotzdem nicht mehr weiter.

im Regex Tester geht es ..

Es kommt immer noch die Meldung im Log
Zitat2016.01.16 13:23:08 3: UVR1611: Read response to Update didn't match any Reading(s)

Viele Grüsse

Roland





Titel: Antw:httpmod geht nicht mehr
Beitrag von: Rose01 am 25 Januar 2016, 08:56:58
Hallo,

es lag am Zeilenumbruch ..

ich habe zum Testen immer den buf aus dem httpmod kopiert..

attr UVR1611 readingsRegex3 <div id="pos33" >[\s\t]*(....)


Danke nochmals für den Tip