FHEM Forum

FHEM => Sonstiges => Thema gestartet von: Petrosilius Zwackelmann am 11 August 2015, 00:49:36

Titel: HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 11 August 2015, 00:49:36
Hallo Experten,
mein Ziel ist es alle Leistungsdaten aus meinem Stromspeicher auszulesen...
--> Bilder im Anhabg

Ich habe mich an der Wiki-Seite orientiert und mit Burp die Kommunikation aufgezeichnet...
--> Ergebnis im Anhang


Diese Login Seite kann mach mit folgendem Link aufrufen...
https://app.caterva.de/ (https://app.caterva.de/)


Meine bisherige Konfiguration sieht so aus:
define ESS HTTPMOD https://app.caterva.de/currentvalues 60
attr ESS userattr requestHeader1 sid1Data sid1Header sid1IDRegex sid1URL
attr ESS requestHeader1 Accept: text/html
attr ESS sid1Data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}
attr ESS sid1Header Accept: text/html
attr ESS sid1IDRegex JSESSIONID=([0-9A-Z]*);;
attr ESS sid1URL https://app.caterva.de/j_security_check


Als Resultat erhalte ich folgende Zeilen der Login-Seite im Buffer:
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Cache-Control: private Expires: Thu, 01 Jan 1970 01:00:00 CET Set-Cookie: JSESSIONID=AD122FCB42099391F0671BBAEA2D2D84; Path=/; Secure; HttpOnly Content-Type: text/html;charset=UTF-8 Content-Length: 1982 Date: Mon, 10 Aug 2015 10:42:44 GMT Connection: close <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta> <meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta> <link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link> <link href="favicon.png" type="image/png" rel="icon"></link> <link href="css/app.css" type="text/css" rel="stylesheet"></link> <title>Caterva ESS</title> </head> <body> <div id="main"> <div id="header"> <img class="headerimg" src="images/bg.png" alt=""> <a class="logo" href="/;jsessionid=AD122FCB42099391F0671BBAEA2D2D84"> <img src="images/sonne.png" id="menuButton" alt="Sonne"> </a> <img src="images/logo.png" id="catervalogo" alt="Caterva"> <img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie"> <div class="title"> </div> <div class="subtitle"> </div> </div> <div id="content"> <img class="currentbackground" src="images/bg2.png" alt="" /> <form action="j_security_check" method="post"> <div id="login-form"> <div id="login-box"> <span class="login-labels">Name:</span> <input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus> <br/> <span class="login-labels">Passwort:</span> <input class="login-textboxes" type="password" maxlength="30" name="j_password"> <a id="show-password-link" href="login;jsessionid=AD122FCB42099391F0671BBAEA2D2D84?show=1"> <span id="show-password-checkbox"> <img id="show-password-back-img" src="images/blank.png" /> </span> </a> <span id="show-password-text">Passwort anzeigen</span> <br/><br/> <input id="login-button" type="submit" value="Anmelden"> </div> </div> </form> </div> </div> </body> </html>


Als Fehlermeldungen findet sich folgendes im Logfile:
ESS: Read response to Update didn't match any Reading(s)
ESS: AddToQueue - send queue too long, dropping request



Kann mir jemand helfen diese Login-Prozedur erfolgreich zu durchlaufen?
Danke für eure Hilfe
Manuel
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 15 August 2015, 14:02:26
Hallo,

wenn die Konfiguration so wie Du sie gepostet hast vollständig ist, dann fehlt die Definition von Readings. entsprechend erscheint im Log dass die Response bei update zu keinem Reading bzw. zu keiner ReadingRegex gematcht hat.

Poste doch mal einen längeren Auszug aus dem Log mit verbose 5 für HTTPMOD, so dass man sieht, was bei der Authentisierung genau passiert.

Gruss
  Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 15 August 2015, 21:43:43
Hallo Stefan,

danke für dein Feedback....

Reading habe ich bisher noch keine erstellt da ich im Buffer bisher nur die Login Seite habe. Sobald diese "überwuden" ist wollte ich die Readings definieren.

Ich denke ich muss mich an deinem Wiki Beispiel "Example for a multi step login procedure: orientieren...
Ich habe Probleme zu erkennen wie du zu folgender Konfiguration kommst, da die http-Kommunikation dazu fehlt, auch ist es nur ein Auszug der Config....

attr PM sid1IDRegex wui.init\('([^']+)'
attr PM sid2Data {"set" :{"9.17401.user" :"fhem" ,"9.17401.pass" :"password" }}
attr PM sid3Data {"set" :{"35.5062.value" :"128" }}
attr PM sid4Data {"set" :{"42.8026.code" :"pincode" }}



Kann ich irgendwie erkennen ob das Einlesen der Session-ID geklappt hat?

Log mit Verbose 5 sieht wie folgt aus...



2015.08.15 21:26:14 5: ESS: HandleSendQueue called, qlen = 0
2015.08.15 21:26:14 3: ESS: Read response to Update didn't match any Reading(s)
2015.08.15 21:26:14 5: ESS: Read starts extracting all Readings from HTTP Response to Update


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=CF0E14774C26518EC8746ABCEF2AA539?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=CF0E14774C26518EC8746ABCEF2AA539">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Sat, 15 Aug 2015 19:26:14 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=CF0E14774C26518EC8746ABCEF2AA539; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.15 21:26:14 5: ESS: Read Callback: Request type was Update,
2015.08.15 21:26:14 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.15 21:26:14 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.15 21:26:13 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.15 21:26:13 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data , header Accept: text/html, timeout 2
2015.08.15 21:26:13 5: ESS: HandleSendQueue called, qlen = 1
2015.08.15 21:26:13 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data , header Accept: text/html
2015.08.15 21:26:13 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.15 21:26:13 4: ESS: GetUpdate called
2015.08.15 21:26:13 0: Server started with 123 defined entities (version $Id: fhem.pl 8952 2015-07-13 12:30:26Z rudolfkoenig $, os linux, user fhem, pid 15485)
2015.08.15 21:26:13 0: Featurelevel: 5.6
2015.08.15 21:26:13 1: Including ./log/fhem.save
2015.08.15 21:25:45 3: ESS: Defined with URL https://app.caterva.de/currentvalues and interval 60
2015.08.15 21:25:45 1: Including ./FHEM/00_Caterva.cfg
2015.08.15 21:25:16 0: Server shutdown
2015.08.15 21:25:16 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:25:16 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:24:08 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:24:08 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:24:08 3: ESS: AddToQueue - send queue too long, dropping request
2015.08.15 21:24:08 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data , header Accept: text/html
2015.08.15 21:24:08 5: ESS: AddToQueue called, initial send queue length : 21
2015.08.15 21:24:08 4: ESS: GetUpdate called
2015.08.15 21:08:08 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:08:08 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:08:04 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:08:04 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:08:03 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:08:03 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:08:02 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:08:02 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:08:01 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:08:01 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:08:00 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:08:00 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:59 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:59 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:58 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:58 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:57 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:57 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:56 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:56 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:55 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:55 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:54 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:54 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:53 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:53 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:52 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:52 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:51 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:51 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:50 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:50 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:49 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:49 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:48 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:48 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:47 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:47 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:46 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:46 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:45 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:45 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:44 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:44 5: ESS: HandleSendQueue called, qlen = 21
2015.08.15 21:07:43 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.15 21:07:43 5: ESS: HandleSendQueue called, qlen = 21



LG Manuel
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 16 August 2015, 09:16:48
Hallo Manuel,

es fehlt eine ReAuthRegex. HTTPMOD führt die Login Prozedur deshalb gar nicht durch.

Gruss
   Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 16 August 2015, 09:34:26
Hallo Stefan,

danke für den Hinweis...

Ich habe wie folgt erweitert
define ESS HTTPMOD https://app.caterva.de/currentvalues 60
attr ESS userattr reAuthRegex requestHeader1 sid1Data sid1Header sid1IDRegex sid1URL sid2Data verbose
[color=red]attr ESS reAuthRegex .*show-password-text.*[/color]
attr ESS requestHeader1 Accept: text/html
attr ESS room CATERVA
attr ESS sid1Header Accept: text/html
attr ESS sid1IDRegex JSESSIONID=([0-9A-Z]*);;
attr ESS sid1URL https://app.caterva.de/j_security_check
attr ESS sid2Data {"set" :{"j_username" :"geheim" ,"j_password" :"sehr geheim" }}
attr ESS verbose 5


Nun scheint der Loginversuch gestartet zu werden. Leider ohne Erfolg.
2015.08.16 09:26:28 5: ESS: HandleSendQueue called, qlen = 0
2015.08.16 09:26:28 3: ESS: Read response to Update didn't match any Reading(s)
2015.08.16 09:26:28 5: ESS: Read starts extracting all Readings from HTTP Response to Update
2015.08.16 09:26:28 4: ESS: Read has no more retries left - did authentication fail?
2015.08.16 09:26:28 4: ESS: Read decided new authentication required
2015.08.16 09:26:28 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*



Vermutlich ein Fehler in folgender Zeile...
attr ESS sid2Data {"set" :{"j_username" :"geheim" ,"j_password" :"sehr geheim" }}

Kannst du hier nochmal weiterhelfen?

LG Manuel
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 16 August 2015, 19:56:23
Hallo Manuel,

Die entscheidenden Zeilen fehlen in dem Log-Ausschnitt. Die eigentlichen Authentisierungsversuche müssen vorher im Protokoll stehen.
So wie ich Deine Konfiguration verstehe, schickst Du zunächst einen Get Request an die URL, die für den ersten Authentisierungs-Schritt angegeben ist. Für den ersten Request hast Du auch einen Header angegeben. Danach (Schritt 2) machst Du einen Post Request (Data definiert), für den aber keine URL und kein Header angegeben sind. Das funktioniert sicher nicht.

Wenn die Authentisierungs mit einem einzigen Request durchgeführt werden kann, dann müsstest Du statt sid2Data sid1Data angeben. Wenn Du mehrere Requests schicken willst, dann musst Du bei den Folgeschritten auch URLs, Header etc. angeben.
Wenn die URL und die Header für alle Schritte gleich sind, dann kannst Du auch per sidHeader bzw. sidURL (ohne Zahl dazwischen) die Werte für alle Requests in der Login-Prozedur gemeinsam angeben.

Ich hoffe das hilft Dir weiter.

Gruß
    Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 19 August 2015, 07:28:30
Hallo Stefan,

ich habe die CFG angepasst.....
sid1xx  sind nun die Daten zur Login Seite die überwunden werden muss bevor ich zu meiner
sid2Url mit den eigentlichen Daten gelangen will.

Da beide Urls den gleichen Header verlangen habe ich hier nun eine sidHeader (ohne Zahl definiert)
Leider ist als ergebnis nur wieder die Login-Seite im Buffer.

Ich hoffe ich habe nun alle Logzeilen erwischt die relevant sind...
Vielleicht kannst du sehen woran es krankt.
Danke für deine Geduld und Unterstützung.

LG Manuel


CFG
###########################            HTTPMOD                 ############################################

define ESS HTTPMOD https://app.caterva.de/currentvalues 60
attr ESS userattr reAuthRegex requestHeader1 sid1Data sid1Header sid1IDRegex sid1URL sid2Data sid2URL sidHeader verbose
attr ESS reAuthRegex .*show-password-text.*
attr ESS room CATERVA
attr ESS sid1Data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}
attr ESS sid1IDRegex JSESSIONID=([0-9A-Z]*);;
attr ESS sid1URL https://app.caterva.de/j_security_check
attr ESS sid2URL https://app.caterva.de/currentvalues
attr ESS sidHeader Accept: text/html
attr ESS verbose 5



LOG
2015.08.19 07:08:35 5: ESS: HandleSendQueue called, qlen = 0
2015.08.19 07:08:35 3: ESS: Read response to Update didn't match any Reading(s)
2015.08.19 07:08:35 5: ESS: Read starts extracting all Readings from HTTP Response to Update
2015.08.19 07:08:35 4: ESS: Read has no more retries left - did authentication fail?
2015.08.19 07:08:35 4: ESS: Read decided new authentication required
2015.08.19 07:08:35 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=3F8F826209DC465A9E4CCDF06F737C28?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=3F8F826209DC465A9E4CCDF06F737C28">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:08:35 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=3F8F826209DC465A9E4CCDF06F737C28; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:08:35 5: ESS: Read Callback: Request type was Update,
2015.08.19 07:08:35 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.19 07:08:35 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.19 07:08:34 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.19 07:08:34 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data , header , timeout 2
2015.08.19 07:08:34 5: ESS: HandleSendQueue called, qlen = 1


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=707088D06990C63A0016E9818DDA8CEF?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=707088D06990C63A0016E9818DDA8CEF">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:08:34 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=707088D06990C63A0016E9818DDA8CEF; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:08:34 5: ESS: Read Callback: Request type was Auth2,
2015.08.19 07:08:34 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.19 07:08:34 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.19 07:08:33 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.19 07:08:33 4: ESS: HandleSendQueue sends request type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html, timeout 2
2015.08.19 07:08:33 5: ESS: HandleSendQueue called, qlen = 2
2015.08.19 07:08:33 5: ESS: Read set sid to B4FCCD481F937931F85CDBF8FDDEE875


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=B4FCCD481F937931F85CDBF8FDDEE875?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<span id="error-message">Ung&uuml;ltige Name oder Passwort!</span>

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=B4FCCD481F937931F85CDBF8FDDEE875">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:08:32 GMT
Content-Length: 2057
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=B4FCCD481F937931F85CDBF8FDDEE875; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:08:33 5: ESS: Read Callback: Request type was Auth1,
2015.08.19 07:08:33 4: HttpUtils https://app.caterva.de/j_security_check: Got data, length: 2057
2015.08.19 07:08:33 4: https://app.caterva.de/j_security_check: HTTP response code 200
2015.08.19 07:08:32 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.19 07:08:32 5: ESS: HandleSendQueue called, qlen = 2
2015.08.19 07:08:32 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data , header
2015.08.19 07:08:32 5: ESS: AddToQueue called, initial send queue length : 1
2015.08.19 07:08:32 4: ESS: Read is requeuing request Update after Auth, retryCount 1 ...
2015.08.19 07:08:32 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.19 07:08:32 5: ESS: HandleSendQueue called, qlen = 1
2015.08.19 07:08:32 5: ESS: AddToQueue adds type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html
2015.08.19 07:08:32 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.19 07:08:32 4: HttpUtils url=https://app.caterva.de/j_security_check
2015.08.19 07:08:32 4: ESS: HandleSendQueue sends request type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}, header Accept: text/html, timeout 2
2015.08.19 07:08:32 5: ESS: HandleSendQueue called, qlen = 1
2015.08.19 07:08:32 5: ESS: AddToQueue adds type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}, header Accept: text/html
2015.08.19 07:08:32 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.19 07:08:32 4: ESS: Auth called with Steps: 1 2
2015.08.19 07:08:32 4: ESS: Read decided new authentication required
2015.08.19 07:08:32 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=A1FB9AB7919F727C1F610C4AA78967B1?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=A1FB9AB7919F727C1F610C4AA78967B1">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:08:32 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=A1FB9AB7919F727C1F610C4AA78967B1; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:08:32 5: ESS: Read Callback: Request type was Update,
2015.08.19 07:08:32 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.19 07:08:32 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.19 07:08:32 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.19 07:08:32 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data , header , timeout 2
2015.08.19 07:08:32 5: ESS: HandleSendQueue called, qlen = 1
2015.08.19 07:08:32 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data , header
2015.08.19 07:08:32 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.19 07:08:32 4: ESS: GetUpdate called
2015.08.19 07:07:35 5: ESS: HandleSendQueue called, qlen = 0
2015.08.19 07:07:35 3: ESS: Read response to Update didn't match any Reading(s)
2015.08.19 07:07:35 5: ESS: Read starts extracting all Readings from HTTP Response to Update
2015.08.19 07:07:35 4: ESS: Read has no more retries left - did authentication fail?
2015.08.19 07:07:35 4: ESS: Read decided new authentication required
2015.08.19 07:07:35 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=FFE692D3889C4737170344CD3619E9CD?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=FFE692D3889C4737170344CD3619E9CD">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:07:35 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=FFE692D3889C4737170344CD3619E9CD; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:07:35 5: ESS: Read Callback: Request type was Update,
2015.08.19 07:07:35 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.19 07:07:35 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.19 07:07:34 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.19 07:07:34 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data , header , timeout 2
2015.08.19 07:07:34 5: ESS: HandleSendQueue called, qlen = 1


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=75B910575ED3799EA3CBDE4F0C336355?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=75B910575ED3799EA3CBDE4F0C336355">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:07:34 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=75B910575ED3799EA3CBDE4F0C336355; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:07:34 5: ESS: Read Callback: Request type was Auth2,
2015.08.19 07:07:34 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.19 07:07:34 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.19 07:07:33 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.19 07:07:33 4: ESS: HandleSendQueue sends request type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html, timeout 2
2015.08.19 07:07:33 5: ESS: HandleSendQueue called, qlen = 2
2015.08.19 07:07:33 5: ESS: Read set sid to F2A072EDE5681B8ADF2F3FEC59B3009B


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=F2A072EDE5681B8ADF2F3FEC59B3009B?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<span id="error-message">Ung&uuml;ltige Name oder Passwort!</span>

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=F2A072EDE5681B8ADF2F3FEC59B3009B">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:07:32 GMT
Content-Length: 2057
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=F2A072EDE5681B8ADF2F3FEC59B3009B; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:07:33 5: ESS: Read Callback: Request type was Auth1,
2015.08.19 07:07:33 4: HttpUtils https://app.caterva.de/j_security_check: Got data, length: 2057
2015.08.19 07:07:33 4: https://app.caterva.de/j_security_check: HTTP response code 200
2015.08.19 07:07:32 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.19 07:07:32 5: ESS: HandleSendQueue called, qlen = 2
2015.08.19 07:07:32 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data , header
2015.08.19 07:07:32 5: ESS: AddToQueue called, initial send queue length : 1
2015.08.19 07:07:32 4: ESS: Read is requeuing request Update after Auth, retryCount 1 ...
2015.08.19 07:07:32 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.19 07:07:32 5: ESS: HandleSendQueue called, qlen = 1
2015.08.19 07:07:32 5: ESS: AddToQueue adds type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html
2015.08.19 07:07:32 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.19 07:07:32 4: HttpUtils url=https://app.caterva.de/j_security_check
2015.08.19 07:07:32 4: ESS: HandleSendQueue sends request type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}, header Accept: text/html, timeout 2
2015.08.19 07:07:32 5: ESS: HandleSendQueue called, qlen = 1
2015.08.19 07:07:32 5: ESS: AddToQueue adds type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}, header Accept: text/html
2015.08.19 07:07:32 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.19 07:07:32 4: ESS: Auth called with Steps: 1 2
2015.08.19 07:07:32 4: ESS: Read decided new authentication required
2015.08.19 07:07:32 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=F91238C2C7B32BB92CCCF7062096A82C?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=F91238C2C7B32BB92CCCF7062096A82C">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Wed, 19 Aug 2015 05:07:32 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=F91238C2C7B32BB92CCCF7062096A82C; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.19 07:07:32 5: ESS: Read Callback: Request type was Update,
2015.08.19 07:07:32 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.19 07:07:32 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.19 07:07:32 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.19 07:07:32 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data , header , timeout 2
2015.08.19 07:07:32 5: ESS: HandleSendQueue called, qlen = 1
2015.08.19 07:07:32 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data , header
2015.08.19 07:07:32 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.19 07:07:32 4: ESS: GetUpdate called
Error read from https://app.caterva.de:443 timed out
2015.08.19 07:06:36 3: ESS: Read callback: request type was Update, no headers, buffer empty,
2015.08.19 07:06:32 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.19 07:06:32 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data , header , timeout 2
2015.08.19 07:06:32 5: ESS: HandleSendQueue called, qlen = 1
2015.08.19 07:06:32 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data , header
2015.08.19 07:06:32 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.19 07:06:32 4: ESS: GetUpdate called
2015.08.19 07:06:32 0: Server started with 124 defined entities (version $Id: fhem.pl 8952 2015-07-13 12:30:26Z rudolfkoenig $, os linux, user fhem, pid 5831)
2015.08.19 07:06:32 0: Featurelevel: 5.6
2015.08.19 07:06:06 3: ESS: Defined with URL https://app.caterva.de/currentvalues and interval 60
2015.08.19 07:06:06 1: Including ./FHEM/00_Caterva.cfg
2015.08.19 07:05:43 2: eventTypes: loaded 714 events from ./log/eventTypes.txt
2015.08.19 07:05:43 3: WEB: port 8083 opened
2015.08.19 07:05:42 3: telnetPort: port 7072 opened
2015.08.19 07:05:42 1: Including fhem.cfg
2015.08.19 07:05:40 0: Server shutdown
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 19 August 2015, 19:33:07
Hallo,

wir nähern uns der Sache ;-)
Jetzt scheinen noch die richtigen Header für den eigentlichen Request zu fehlen.
Schau doch noch mal in Deiner Aufzeichnung der Kommunikation mit Burp, welche Header / Post Daten bei einer Anfrage mitgeschickt werden müssen. Bei HTTPMOD werden das dann die Attribute requestHeader und requestData.
Insbesondere muss nach dem Login die authentisierte Session-Id auch weiterverwendet werden. In Deinem Fall als Cookie. Die ermittelte Session-Id kann als $sid angegeben werden, z.B.

attr ESS requestHeader2 Cookie: JSESSIONID=$sid


Gruss
    Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 20 August 2015, 09:25:08
Hallo Stefan,

dake für deine Rückmeldung und deinen Optimismus.

ZitatInsbesondere muss nach dem Login die authentisierte Session-Id auch weiterverwendet werden. In Deinem Fall als Cookie. Die ermittelte Session-Id kann als $sid angegeben werden, z.B.

attr ESS requestHeader2 Cookie: JSESSIONID=$sid

Diese Zeile habe ich aufgenommen.....

ZitatSchau doch noch mal in Deiner Aufzeichnung der Kommunikation mit Burp, welche Header / Post Daten bei einer Anfrage mitgeschickt werden müssen. Bei HTTPMOD werden das dann die Attribute requestHeader und requestData.

ich habe hier nochmal den Burp Request...
Diesmal hatte ich die Übermittlung des Passwortes und des Benutzernamens dabei was in meinem ersten Post nicht der Fall war....


POST /j_security_check HTTP/1.1
Host: app.caterva.de
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: https://app.caterva.de/index.html
Cookie: JSESSIONID=56A24F6121774E5FFC550552200E0D8F
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 36

j_username=geheim&j_password=sehrgeheim


Somit habe ich
von:  attr ESS sid1Data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}
nach: attr ESS sid1Data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}
geändert. Ist das aus deiner Sicht ok?

Zusätzlich habe ich nun folgende Zeilen aufgenommen...

attr ESS requestData /j_security_check HTTP/1.1
attr ESS requestHeader Content-Type: application/x-www-form-urlencoded

Leider kann ich wegen der Session ID in Burp im repeater nicht testen auf welche Zeilen es ankommt.
Falls ich alle Header übernehmen soll werden diese dann als Header1, Header2.... aufgelistet?
Die Session ID hattest du als Header2 eingetragen, obwohl es keinen Header1 gab. Da kann ich das System nicht so recht erkennen.
Bitte hier nochmal um Hilfestellung.

Config
define ESS HTTPMOD https://app.caterva.de/currentvalues 60
attr ESS userattr reAuthRegex requestData requestHeader requestHeader1 requestHeader2 sid1Data sid1Header sid1IDRegex sid1URL sid2Data sid2URL sidHeader verbose
attr ESS reAuthRegex .*show-password-text.*
attr ESS requestData /j_security_check HTTP/1.1
attr ESS requestHeader Content-Type: application/x-www-form-urlencoded
attr ESS requestHeader2 Cookie: JSESSIONID=$sid
attr ESS room CATERVA
attr ESS sid1Data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}
attr ESS sid1IDRegex JSESSIONID=([0-9A-Z]*);;
attr ESS sid1URL https://app.caterva.de/j_security_check
attr ESS sid2URL https://app.caterva.de/currentvalues
attr ESS sidHeader Accept: text/html
attr ESS verbose 5


LOG
2015.08.20 08:45:30 5: ESS: HandleSendQueue called, qlen = 0
2015.08.20 08:45:30 3: ESS: Read response to Update didn't match any Reading(s)
2015.08.20 08:45:30 5: ESS: Read starts extracting all Readings from HTTP Response to Update
2015.08.20 08:45:30 4: ESS: Read has no more retries left - did authentication fail?
2015.08.20 08:45:30 4: ESS: Read decided new authentication required
2015.08.20 08:45:30 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:45:30 GMT
Content-Length: 1894
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=52B739D6F60116034DC1BBC6AA528A4A; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:45:30 5: ESS: Read Callback: Request type was Update,
2015.08.20 08:45:30 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1894
2015.08.20 08:45:30 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:45:30 4: HttpUtils url=https://app.caterva.de/currentvalues
Cookie: JSESSIONID=3D9B2D6DA1F3E5C7FDABC060EB77CAC6, timeout 2
2015.08.20 08:45:30 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:45:30 5: ESS: HandleSendQueue called, qlen = 1


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=D7E29F2B0A353A4BDBFCFF3CAF82829F?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=D7E29F2B0A353A4BDBFCFF3CAF82829F">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:45:29 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=D7E29F2B0A353A4BDBFCFF3CAF82829F; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:45:29 5: ESS: Read Callback: Request type was Auth2,
2015.08.20 08:45:29 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.20 08:45:29 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:45:29 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.20 08:45:29 4: ESS: HandleSendQueue sends request type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html, timeout 2
2015.08.20 08:45:29 5: ESS: HandleSendQueue called, qlen = 2
2015.08.20 08:45:28 5: ESS: Read set sid to 3D9B2D6DA1F3E5C7FDABC060EB77CAC6


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=3D9B2D6DA1F3E5C7FDABC060EB77CAC6?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<span id="error-message">Ung&uuml;ltige Name oder Passwort!</span>

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=3D9B2D6DA1F3E5C7FDABC060EB77CAC6">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:45:28 GMT
Content-Length: 2057
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=3D9B2D6DA1F3E5C7FDABC060EB77CAC6; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:45:28 5: ESS: Read Callback: Request type was Auth1,
2015.08.20 08:45:28 4: HttpUtils https://app.caterva.de/j_security_check: Got data, length: 2057
2015.08.20 08:45:28 4: https://app.caterva.de/j_security_check: HTTP response code 200
2015.08.20 08:45:28 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.20 08:45:28 5: ESS: HandleSendQueue called, qlen = 2
Cookie: JSESSIONID=$sid
2015.08.20 08:45:28 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:45:28 5: ESS: AddToQueue called, initial send queue length : 1
2015.08.20 08:45:28 4: ESS: Read is requeuing request Update after Auth, retryCount 1 ...
2015.08.20 08:45:28 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.20 08:45:28 5: ESS: HandleSendQueue called, qlen = 1
2015.08.20 08:45:28 5: ESS: AddToQueue adds type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html
2015.08.20 08:45:28 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:45:28 4: HttpUtils url=https://app.caterva.de/j_security_check
2015.08.20 08:45:28 4: ESS: HandleSendQueue sends request type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}, header Accept: text/html, timeout 2
2015.08.20 08:45:28 5: ESS: HandleSendQueue called, qlen = 1
2015.08.20 08:45:28 5: ESS: AddToQueue adds type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}, header Accept: text/html
2015.08.20 08:45:28 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:45:28 4: ESS: Auth called with Steps: 1 2
2015.08.20 08:45:28 4: ESS: Read decided new authentication required
2015.08.20 08:45:28 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:45:28 GMT
Content-Length: 1894
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=20F325A8F5DF63A22F9DB14991FA3921; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:45:28 5: ESS: Read Callback: Request type was Update,
2015.08.20 08:45:28 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1894
2015.08.20 08:45:28 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:45:27 4: HttpUtils url=https://app.caterva.de/currentvalues
Cookie: JSESSIONID=55E5149868C8AF423EC67E0FA78B0403, timeout 2
2015.08.20 08:45:27 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:45:27 5: ESS: HandleSendQueue called, qlen = 1
Cookie: JSESSIONID=$sid
2015.08.20 08:45:27 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:45:27 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:45:27 4: ESS: GetUpdate called
2015.08.20 08:44:30 5: ESS: HandleSendQueue called, qlen = 0
2015.08.20 08:44:30 3: ESS: Read response to Update didn't match any Reading(s)
2015.08.20 08:44:30 5: ESS: Read starts extracting all Readings from HTTP Response to Update
2015.08.20 08:44:30 4: ESS: Read has no more retries left - did authentication fail?
2015.08.20 08:44:30 4: ESS: Read decided new authentication required
2015.08.20 08:44:30 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:44:30 GMT
Content-Length: 1894
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=A170BE429F72268D0F8C3BD43D7E60CE; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:44:30 5: ESS: Read Callback: Request type was Update,
2015.08.20 08:44:30 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1894
2015.08.20 08:44:30 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:44:30 4: HttpUtils url=https://app.caterva.de/currentvalues
Cookie: JSESSIONID=55E5149868C8AF423EC67E0FA78B0403, timeout 2
2015.08.20 08:44:30 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:44:30 5: ESS: HandleSendQueue called, qlen = 1


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=73155A2989920EAC38B88CD96E845B07?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=73155A2989920EAC38B88CD96E845B07">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:44:29 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=73155A2989920EAC38B88CD96E845B07; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:44:29 5: ESS: Read Callback: Request type was Auth2,
2015.08.20 08:44:29 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.20 08:44:29 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:44:29 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.20 08:44:29 4: ESS: HandleSendQueue sends request type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html, timeout 2
2015.08.20 08:44:29 5: ESS: HandleSendQueue called, qlen = 2
2015.08.20 08:44:28 5: ESS: Read set sid to 55E5149868C8AF423EC67E0FA78B0403


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=55E5149868C8AF423EC67E0FA78B0403?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<span id="error-message">Ung&uuml;ltige Name oder Passwort!</span>

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=55E5149868C8AF423EC67E0FA78B0403">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:44:28 GMT
Content-Length: 2057
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=55E5149868C8AF423EC67E0FA78B0403; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:44:28 5: ESS: Read Callback: Request type was Auth1,
2015.08.20 08:44:28 4: HttpUtils https://app.caterva.de/j_security_check: Got data, length: 2057
2015.08.20 08:44:28 4: https://app.caterva.de/j_security_check: HTTP response code 200
2015.08.20 08:44:28 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.20 08:44:28 5: ESS: HandleSendQueue called, qlen = 2
Cookie: JSESSIONID=$sid
2015.08.20 08:44:28 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:44:28 5: ESS: AddToQueue called, initial send queue length : 1
2015.08.20 08:44:28 4: ESS: Read is requeuing request Update after Auth, retryCount 1 ...
2015.08.20 08:44:28 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.20 08:44:28 5: ESS: HandleSendQueue called, qlen = 1
2015.08.20 08:44:28 5: ESS: AddToQueue adds type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html
2015.08.20 08:44:28 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:44:28 4: HttpUtils url=https://app.caterva.de/j_security_check
2015.08.20 08:44:28 4: ESS: HandleSendQueue sends request type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}, header Accept: text/html, timeout 2
2015.08.20 08:44:28 5: ESS: HandleSendQueue called, qlen = 1
2015.08.20 08:44:28 5: ESS: AddToQueue adds type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}, header Accept: text/html
2015.08.20 08:44:28 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:44:28 4: ESS: Auth called with Steps: 1 2
2015.08.20 08:44:28 4: ESS: Read decided new authentication required
2015.08.20 08:44:28 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:44:28 GMT
Content-Length: 1894
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=F60268F7E766E19F57509E8BC90EE5BC; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:44:28 5: ESS: Read Callback: Request type was Update,
2015.08.20 08:44:28 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1894
2015.08.20 08:44:28 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:44:27 4: HttpUtils url=https://app.caterva.de/currentvalues
Cookie: JSESSIONID=7E834619E8BDE99BC542F644C95ADA23, timeout 2
2015.08.20 08:44:27 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:44:27 5: ESS: HandleSendQueue called, qlen = 1
Cookie: JSESSIONID=$sid
2015.08.20 08:44:27 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:44:27 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:44:27 4: ESS: GetUpdate called
2015.08.20 08:43:39 1: OWX: 1-Wire devices found on bus 1wire (OWAD_HUB)
2015.08.20 08:43:39 1: OWX: Search CRC failed
2015.08.20 08:43:30 5: ESS: HandleSendQueue called, qlen = 0
2015.08.20 08:43:30 3: ESS: Read response to Update didn't match any Reading(s)
2015.08.20 08:43:30 5: ESS: Read starts extracting all Readings from HTTP Response to Update
2015.08.20 08:43:30 4: ESS: Read has no more retries left - did authentication fail?
2015.08.20 08:43:30 4: ESS: Read decided new authentication required
2015.08.20 08:43:30 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:43:30 GMT
Content-Length: 1894
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=9B1B9B4AE32E94F7249A6CBBD701E1CC; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:43:30 5: ESS: Read Callback: Request type was Update,
2015.08.20 08:43:30 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1894
2015.08.20 08:43:30 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:43:30 4: HttpUtils url=https://app.caterva.de/currentvalues
Cookie: JSESSIONID=7E834619E8BDE99BC542F644C95ADA23, timeout 2
2015.08.20 08:43:30 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:43:30 5: ESS: HandleSendQueue called, qlen = 1


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=5D4880F6A5483C214ED8D64E80E3AB3A?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=5D4880F6A5483C214ED8D64E80E3AB3A">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:43:29 GMT
Content-Length: 1982
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=5D4880F6A5483C214ED8D64E80E3AB3A; Path=/; Secure; HttpOnly
Expires: Thu, 01 Jan 1970 01:00:00 CET
Cache-Control: private
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:43:29 5: ESS: Read Callback: Request type was Auth2,
2015.08.20 08:43:29 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1982
2015.08.20 08:43:29 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:43:29 4: HttpUtils url=https://app.caterva.de/currentvalues
2015.08.20 08:43:29 4: ESS: HandleSendQueue sends request type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html, timeout 2
2015.08.20 08:43:29 5: ESS: HandleSendQueue called, qlen = 2
2015.08.20 08:43:29 5: ESS: Read set sid to 7E834619E8BDE99BC542F644C95ADA23


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login;jsessionid=7E834619E8BDE99BC542F644C95ADA23?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<span id="error-message">Ung&uuml;ltige Name oder Passwort!</span>

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/;jsessionid=7E834619E8BDE99BC542F644C95ADA23">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:43:28 GMT
Content-Length: 2057
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=7E834619E8BDE99BC542F644C95ADA23; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:43:29 5: ESS: Read Callback: Request type was Auth1,
2015.08.20 08:43:29 4: HttpUtils https://app.caterva.de/j_security_check: Got data, length: 2057
2015.08.20 08:43:29 4: https://app.caterva.de/j_security_check: HTTP response code 200
2015.08.20 08:43:28 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.20 08:43:28 5: ESS: HandleSendQueue called, qlen = 2
Cookie: JSESSIONID=$sid
2015.08.20 08:43:28 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:43:28 5: ESS: AddToQueue called, initial send queue length : 1
2015.08.20 08:43:28 4: ESS: Read is requeuing request Update after Auth, retryCount 1 ...
2015.08.20 08:43:28 5: ESS: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2015.08.20 08:43:28 5: ESS: HandleSendQueue called, qlen = 1
2015.08.20 08:43:28 5: ESS: AddToQueue adds type Auth2 to URL https://app.caterva.de/currentvalues, data , header Accept: text/html
2015.08.20 08:43:28 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:43:28 4: HttpUtils url=https://app.caterva.de/j_security_check
2015.08.20 08:43:28 4: ESS: HandleSendQueue sends request type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}, header Accept: text/html, timeout 2
2015.08.20 08:43:28 5: ESS: HandleSendQueue called, qlen = 1
2015.08.20 08:43:28 5: ESS: AddToQueue adds type Auth1 to URL https://app.caterva.de/j_security_check, data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}, header Accept: text/html
2015.08.20 08:43:28 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:43:28 4: ESS: Auth called with Steps: 1 2
2015.08.20 08:43:28 4: ESS: Read decided new authentication required
2015.08.20 08:43:28 5: ESS: Read is checking response with ReAuthRegex .*show-password-text.*


</html>
</body>
</div>
</div>
</form>
</div>
</div>
<input id="login-button" type="submit" value="Anmelden">
<br/><br/>
<span id="show-password-text">Passwort anzeigen</span>



</a>
</span>
<img id="show-password-back-img" src="images/blank.png" />
<span id="show-password-checkbox">
<a id="show-password-link" href="login?show=1">
<input class="login-textboxes" type="password" maxlength="30" name="j_password">


<span class="login-labels">Passwort:</span>
<br/>
<input class="login-textboxes" type="text" maxlength="20" name="j_username" autofocus>
<span class="login-labels">Name:</span>
<div id="login-box">

<div id="login-form">
<form action="j_security_check" method="post">
<img class="currentbackground" src="images/bg2.png" alt="" />
<div id="content">
</div>

</div>

<div class="subtitle">
</div>

<div class="title">



<img src="images/logo_nergie.png" id="nergielogo" alt="N-ergie">
<img src="images/logo.png" id="catervalogo" alt="Caterva">
</a>
<img src="images/sonne.png" id="menuButton" alt="Sonne">
<a class="logo" href="/">


<img class="headerimg" src="images/bg.png" alt="">
<div id="header">
<div id="main">
<body>
</head>
<title>Caterva ESS</title>
<link href="css/app.css" type="text/css" rel="stylesheet"></link>
<link href="favicon.png" type="image/png" rel="icon"></link>
<link href="favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon"></link>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"></meta>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<head>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


buffer:
Connection: close,
Date: Thu, 20 Aug 2015 06:43:28 GMT
Content-Length: 1894
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=EA2EC176AD7E6CDC378706472EA30095; Path=/; Secure; HttpOnly
Server: Apache-Coyote/1.1
header: HTTP/1.1 200 OK
2015.08.20 08:43:28 5: ESS: Read Callback: Request type was Update,
2015.08.20 08:43:28 4: HttpUtils https://app.caterva.de/currentvalues: Got data, length: 1894
2015.08.20 08:43:28 4: https://app.caterva.de/currentvalues: HTTP response code 200
2015.08.20 08:43:27 4: HttpUtils url=https://app.caterva.de/currentvalues
Cookie: JSESSIONID=$sid, timeout 2
2015.08.20 08:43:27 4: ESS: HandleSendQueue sends request type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:43:27 5: ESS: HandleSendQueue called, qlen = 1
Cookie: JSESSIONID=$sid
2015.08.20 08:43:27 5: ESS: AddToQueue adds type Update to URL https://app.caterva.de/currentvalues, data /j_security_check HTTP/1.1, header Content-Type: application/x-www-form-urlencoded
2015.08.20 08:43:27 5: ESS: AddToQueue called, initial send queue length : 0
2015.08.20 08:43:27 4: ESS: GetUpdate called
2015.08.20 08:43:27 0: Server started with 124 defined entities (version $Id: fhem.pl 8952 2015-07-13 12:30:26Z rudolfkoenig $, os linux, user fhem, pid 7078)
2015.08.20 08:43:27 0: Featurelevel: 5.6
2015.08.20 08:43:01 3: ESS: Defined with URL https://app.caterva.de/currentvalues and interval 60
2015.08.20 08:43:01 1: Including ./FHEM/00_Caterva.cfg
2015.08.20 08:42:38 2: eventTypes: loaded 714 events from ./log/eventTypes.txt
2015.08.20 08:42:38 3: WEB: port 8083 opened
2015.08.20 08:42:38 3: telnetPort: port 7072 opened
2015.08.20 08:42:38 1: Including fhem.cfg
2015.08.20 08:42:35 0: Server shutdown
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 20 August 2015, 18:11:39
Hallo,

Zitat von: Petrosilius Zwackelmann am 20 August 2015, 09:25:08
ich habe hier nochmal den Burp Request...
Diesmal hatte ich die Übermittlung des Passwortes und des Benutzernamens dabei was in meinem ersten Post nicht der Fall war....

POST /j_security_check HTTP/1.1
Host: app.caterva.de
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: https://app.caterva.de/index.html
Cookie: JSESSIONID=56A24F6121774E5FFC550552200E0D8F
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 36

j_username=geheim&j_password=sehrgeheim


Somit habe ich
von:  attr ESS sid1Data {"set" :{"j_username" :"geheim" ,"j_password" :"sehrgeheim" }}
nach: attr ESS sid1Data {"set" :{"j_username=geheim&j_password=sehrgeheim" }}
geändert. Ist das aus deiner Sicht ok?

ich würde
attr ESS sid1Data j_username=geheim&j_password=sehrgeheim
schreiben. Die geschweiften Klammern und Anführungszeichen sind in der Aufzeichnung nicht drin.

Zitat
Zusätzlich habe ich nun folgende Zeilen aufgenommen...

attr ESS requestData /j_security_check HTTP/1.1

Die Zeile ist nicht nötig. Das gehört nicht zu den Post-Daten.

Zitat
attr ESS requestHeader Content-Type: application/x-www-form-urlencoded

Leider kann ich wegen der Session ID in Burp im repeater nicht testen auf welche Zeilen es ankommt.
Falls ich alle Header übernehmen soll werden diese dann als Header1, Header2.... aufgelistet?
Die Session ID hattest du als Header2 eingetragen, obwohl es keinen Header1 gab. Da kann ich das System nicht so recht erkennen.
Bitte hier nochmal um Hilfestellung.

Die Attribute Header1, Header2 etc. werden einfach sortiert und hintereinander gehängt.
Deshalb würde ich bei der ersten Zeile mit 1 anfangen. Du kannst aber genauso bei 2,4 und 6 verwenden :-)

Im BURP Repeater kannst Du die Anfragen durchaus editieren und die aktuell gültige Session ID einsetzen und dann testen, welche Header wirklich nötig sind.

Gruss
    Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 22 August 2015, 17:41:21
Hallo,

ich hab mir die WebApp mal angesehen.

versuch mal folgende Konfiguration:

define caterva HTTPMOD https://app.caterva.de/currentvalues 120
attr caterva requestHeader1 Cookie: JSESSIONID=$sid
attr caterva reAuthRegex .*show-password-text.*

attr caterva sid1URL https://app.caterva.de/
attr caterva sid1IDRegex JSESSIONID=([0-9A-Z]+)

attr caterva sid2URL https://app.caterva.de/j_security_check
attr caterva sid2Header1 Content-Type: application/x-www-form-urlencoded
attr caterva sid2Header2 Cookie: JSESSIONID=$sid
attr caterva sid2Data j_username=geheim&j_password=ganzgeheim
attr caterva sid2IDRegex JSESSIONID=([0-9A-Z]+)

attr caterva reading01Name PV-Leistung
attr caterva reading01Regex pv-color">([\d\.\,]+|&ndash;;)</span

attr caterva reading02Name Einspeicherung
attr caterva reading02Regex batt-in-color">([\d\.\,]+|&ndash;;)</span

attr caterva reading03Name Ausspeicherung
attr caterva reading03Regex batt-out-color">([\d\.\,]+|&ndash;;)</span

attr caterva reading04Name Netzeinspeisung
attr caterva reading04Regex supply-color">([\d\.\,]+|&ndash;;)</span

attr caterva reading05Name Netzbezug
attr caterva reading05Regex purchase-color">([\d\.\,]+|&ndash;;)</span

attr caterva reading06Name Verbrauch
attr caterva reading06Regex consumption-color">([\d\.\,]+|&ndash;;)</span

attr caterva readingExpr ($val eq "&ndash;;" ? '-' : $val)

attr caterva stateFormat {sprintf("PV %s", ReadingsVal($name,"PV-Leistung",0))}
attr caterva enableControlSet 1
attr caterva room caterva



Was die Sache hier ein wenig schwieriger macht, ist dass die Applikation keine Session Fixation Schwachstelle hat sondern so wie sich das gehört beim Login eine neue SID vergibt. Daher muss man im ersten Schritt auf die Homepage gehen, dort eine SID extrahieren, sich mit dieser dann anmelden und dort wieder die neue SID extrahieren.
Das sind die sid1 und sid2 Attribute.

Gruss
    Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 24 August 2015, 08:23:25
Hallo Stefan,

danke für deine Unterstützung !!!
Were die Konfiguration ausprobieren und melde mich dann wieder.

Gruß Manuel
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 26 März 2016, 11:40:41
Hallo,

hier ein paar Screenshots wie die Auswertung meiner PV-Anlage mit Stromspeicher aussieht.
Auch die letzte Version der cfg ist dabei.

LG Manuel


Gerne würde ich den Verbrauch in Verbrauch/Tag anzeigen, dafür müsste ich aber die Tage seit einem Datum in der Vergangenheit berechnen.
Falls das jemand schon umgesetzt hat bin ich für einen Tipp dankbar.


Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 26 März 2016, 15:47:50
Hallo Manuel,

Die Auswertung je Tag sollte mit dem Average- oder Statistics-Modul machbar sein.

In der neuen Version von HTTPMOD gibt es übrigens ein Attribut mit Namen enableCookies.
Damit sollte sich die Verwaltung der Session-ID in Deinem Fall stark vereinfachen lassen.
Vielleicht kannst Du es ja mal ausprobieren.

Gruß
    Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 28 März 2016, 21:40:03
Hier ein Beispiel, wie es mit enableCookies und Passwort im Keystore aussehen könnte:


define caterva HTTPMOD https://app.caterva.de/currentvalues 0
attr caterva enableControlSet 1
attr caterva enableCookies 1

attr caterva reading01Name PV-Leistung
attr caterva reading01Regex pv-color">([\d\.\,]+|&ndash;;)</span
# usw.

attr caterva readingOExpr ($val eq "&ndash;;" ? '-' : $val)

attr caterva replacement01Mode key
attr caterva replacement01Regex %%pw%%
attr caterva replacement01Value pw

attr caterva reAuthRegex .*show-password-text.*
attr caterva sid1URL https://app.caterva.de/
attr caterva sid2URL https://app.caterva.de/j_security_check
attr caterva sid2Header1 Content-Type: application/x-www-form-urlencoded
attr caterva sid2Data j_username=geheim&j_password=%%pw%%


Gruss
    Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 24 Januar 2019, 22:51:47
Hallo Stefan,
seit einiger Zeit funktioniert die damalige Konfiguration nicht mehr. Könntest du mir nocheinmal Hilfestellung geben?
Bei Verbose 5 bekomme ich folgende Rückmeldung...

2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractSid called, context reading, num
2019.01.24 22:44:16 5: ESS_Minutenwerte: CheckAuth is checking buffer with ReAuthRegex .*login-container.*
2019.01.24 22:44:16 4: ESS_Minutenwerte: CheckAuth decided no authentication required
2019.01.24 22:44:16 5: ESS_Minutenwerte: Read starts parsing response to update with defined readings: 01,02,03,04,05,06,07
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading PV_Leistung with regex /pv-color">([\d\.\,]+|&ndash;).W/...
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading PV_Leistung did not match
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Einspeicherung with regex /batt-in-color">([\d\.\,]+|&ndash;).W/...
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Einspeicherung did not match
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Ausspeicherung with regex /batt-out-color">([\d\.\,]+|&ndash;;).W/...
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Ausspeicherung did not match
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Netzeinspeisung with regex /supply-color">([\d\.\,]+|&ndash;;).W/...
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Netzeinspeisung did not match
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Netzbezug with regex /purchase-color">([\d\.\,]+|&ndash;).W/...
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Netzbezug did not match
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Verbrauch with regex /consumption-color">([\d\.\,]+|&ndash;).W/...
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Verbrauch did not match
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Ladestand with regex /soc-color">([\d\.\,]+|&ndash;;).%/...
2019.01.24 22:44:16 5: ESS_Minutenwerte: ExtractReading Ladestand did not match
2019.01.24 22:44:16 3: ESS_Minutenwerte: Read response to update didn't match any Reading
2019.01.24 22:44:16 5: ESS_Minutenwerte: HandleSendQueue called, qlen = 0


Ein list ergibt folgende Rückmeldung.

Internals:
   BUSY       0
   CFGFN      ./FHEM/00_Caterva2.cfg
   DEF        https://app.caterva.de/de/currentvalues 60
   HTTPCookies app=s%3AlVT6zEYd4cp_v4m-ibbCgnAjP8XPL3Mo.rTMJS3k4JT6VRp4RecFNtJ8GvroRFIFYlmPTA2MWabk
   Interval   60
   LASTSEND   1548366438.73128
   MainURL    https://app.caterva.de/de/currentvalues
   ModuleVersion 3.3.0 - 19.6.2016
   NAME       ESS_Minutenwerte
   NR         336
   ReplacementEnabled 1
   STATE      PV_Leistung 0 W, Ladestand 0 %, Einspeicherung 0 W, Ausspeicherung 0 W, Netzbezug 0 W, Netzeinspeisung 0 W, Verbrauch 0 W
   TRIGGERTIME 1548366498.72929
   TRIGGERTIME_FMT 2019-01-24 22:48:18
   TYPE       HTTPMOD
   addr       https://app.caterva.de:443
   auth       0
   buf       
   code       200
   compress   1
   conn       
   data       
   displayurl https://app.caterva.de/de/currentvalues
   header     Cookie: app=s%3AlVT6zEYd4cp_v4m-ibbCgnAjP8XPL3Mo.rTMJS3k4JT6VRp4RecFNtJ8GvroRFIFYlmPTA2MWabk
   host       app.caterva.de
   httpheader HTTP/1.1 200 OK
X-Powered-By: Express
Strict-Transport-Security: max-age=31536000; includeSubDomains
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Thu, 24 Jan 2019 12:09:05 GMT
ETag: W/"821-1687fc381cb"
Content-Type: text/html; charset=UTF-8
Content-Length: 2081
Date: Thu, 24 Jan 2019 21:47:18 GMT
Connection: close
   httpversion 1.0
   hu_blocking 0
   hu_filecount 13
   hu_port    443
   hu_portSfx
   ignoreredirects 0
   loglevel   4
   path       /de/currentvalues
   protocol   https
   redirects  0
   timeout    2
   url        https://app.caterva.de/de/currentvalues
   value      0
   HTTPCookieHash:
     app:
       Options    Path=/; Expires=Thu, 31 Jan 2019 21:35:26 GMT; HttpOnly
       Value      s%3AlVT6zEYd4cp_v4m-ibbCgnAjP8XPL3Mo.rTMJS3k4JT6VRp4RecFNtJ8GvroRFIFYlmPTA2MWabk
   QUEUE:
   READINGS:
     2019-01-24 22:47:18   Last_zuschalten 0
     2019-01-24 22:47:18   Verbraucher_zuschalten 0
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       update
     url        https://app.caterva.de/de/currentvalues
     value      0
   sslargs:
Attributes:
   enableControlSet 1
   enableCookies 1
   reAuthRegex .*login-container.*
   reading01Name PV_Leistung
   reading01Regex pv-color">([\d\.\,]+|&ndash;).W
   reading02Name Einspeicherung
   reading02Regex batt-in-color">([\d\.\,]+|&ndash;).W
   reading03Name Ausspeicherung
   reading03Regex batt-out-color">([\d\.\,]+|&ndash;;).W
   reading04Name Netzeinspeisung
   reading04Regex supply-color">([\d\.\,]+|&ndash;;).W
   reading05Name Netzbezug
   reading05Regex purchase-color">([\d\.\,]+|&ndash;).W
   reading06Name Verbrauch
   reading06Regex consumption-color">([\d\.\,]+|&ndash;).W
   reading07Name Ladestand
   reading07Regex soc-color">([\d\.\,]+|&ndash;;).%
   readingOExpr ($val eq "&ndash;;" ? '-' : $val)
   replacement01Mode key
   replacement01Regex %%pw%%
   replacement01Value pw
   room       SYSTEM,caterva
   sid1URL    https://app.caterva.de/
   sid2Data   j_username=geheim&j_password=%%pw%%
   sid2Header1 Content-Type: application/x-www-form-urlencoded
   sid2URL    https://app.caterva.de/de/j_security_check
   stateFormat {sprintf("PV_Leistung %s W, Ladestand %s %%, Einspeicherung %s W, Ausspeicherung %s W, Netzbezug %s W, Netzeinspeisung %s W, Verbrauch %s W", ReadingsVal($name,"PV_Leistung",0),ReadingsVal($name,"Ladestand",0),ReadingsVal($name,"Einspeicherung",0),ReadingsVal($name,"Ausspeicherung",0),ReadingsVal($name,"Netzbezug",0),ReadingsVal($name,"Netzeinspeisung",0),ReadingsVal($name,"Verbrauch",0))}
   timeout    2
   userReadings Verbraucher_zuschalten { if(ReadingsVal("ESS_Minutenwerte","Netzeinspeisung",0)> 2000 || (ReadingsVal("ESS_Minutenwerte","Ladestand",0)>= 54 && ReadingsVal("ESS_Minutenwerte","Einspeicherung",99)== 0 && ReadingsVal("ESS_Minutenwerte","Netzbezug",99)== 0)){"1"} else {"0"}},Last_zuschalten { if(ReadingsVal("ESS_Minutenwerte","Netzeinspeisung",0)> (5100*0.7)){"1"} else {"0"}}
   userattr   reading01Name reading01Regex reading02Name reading02Regex reading03Name reading03Regex reading04Name reading04Regex reading05Name reading05Regex reading06Name reading06Regex reading07Name reading07Regex readingExpr readingOExpr replacement01Mode:reading,internal,text,expression,key replacement01Regex replacement01Value sid1URL sid2Data sid2Header1 sid2URL
   verbose    5




Kannst du hier einen Ansatzpunkt erkennen?

Gruß Manuel
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 26 Januar 2019, 11:35:48
Hallo Manuel,

die scheinen alles neu gemacht zu haben.
Es lässt sich aber recht einfach umsetzen:


attr caterva enableControlSet 1
attr caterva enableCookies 1
attr caterva handleRedirects 1
attr caterva reAuthRegex .*not authorised.*
attr caterva sid2Data {"username": "myPassword", "password": "geheim"}
attr caterva sid2Header1 content-type: application/json
attr caterva sid2URL https://app.caterva.de/auth/login


liefert zumindest folgende Zeile in den Lesepuffer:

Body: {"soc":52,"ppv":173,"ppb":0,"pbh":366,"ppg":0,"pgh":0,"phh":539,"pph":187,"state":1,"ts":"2019-01-26T10:28:30.144Z"}


wenn Du dann bei der neuen Version von HTTPMOD (hier gepostet und noch nicht eingecheckt) xtractAllJSON auf 2 setzt:

attr caterva extractAllJSON 2


dann ein

set caterva reread


dann erzeugt Dir das Modul auch gleich die Attribute für die Readings aus den JSON-Daten und Du kannst dann die Attribute für die Reading-Namen umbenennen oder die löschen, für die Du keine Readings möchtest.

automatisch erzeugt:

attr caterva reading100JSON ts
attr caterva reading100Name ts
attr caterva reading101JSON pbh
attr caterva reading101Name pbh
attr caterva reading102JSON state
attr caterva reading102Name state
attr caterva reading103JSON ppb
attr caterva reading103Name ppb
attr caterva reading104JSON ppv
attr caterva reading104Name ppv
attr caterva reading105JSON soc
attr caterva reading105Name soc
attr caterva reading106JSON pgh
attr caterva reading106Name pgh
attr caterva reading107JSON phh
attr caterva reading107Name phh
attr caterva reading108JSON ppg
attr caterva reading108Name ppg
attr caterva reading109JSON pph
attr caterva reading109Name pph


Das Passwort würde ich dann wieder per Replacement in den Key-Speicher verstecken.

Gruss
   Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 26 Januar 2019, 14:38:14
Hallo Stefan,
das sieht prima aus, aber leider komme ich noch nicht bis zu dieser Stelle...
Ich habe nun die ModuleVersion 3.5.8 - 12.1.2019 die ich im Forum gefunden habe....
Auch nach einem restart sehe ich keine Daten im Lesebuffer. Sind für die neue Modulversion noch weitere Vorraussetzungen erforderlich?

Internals:
   BUSY       0
   CFGFN      ./FHEM/00_Caterva2.cfg
   DEF        https://app.caterva.de/de/currentvalues 60
   FUUID      5c4c5f41-f33f-8c5d-e00f-456b86f509482d3d
   Interval   60
   JSONEnabled 1
   LASTSEND   1548509006.3323
   MainURL    https://app.caterva.de/de/currentvalues
   ModuleVersion 3.5.8 - 12.1.2019
   NAME       caterva
   NR         407
   STATE      ???
   TRIGGERTIME 1548509110.16378
   TRIGGERTIME_FMT 2019-01-26 14:25:10
   TYPE       HTTPMOD
   addr       https://app.caterva.de:443
   auth       0
   buf       
   code       200
   compress   1
   conn       
   data       
   displayurl https://app.caterva.de/de/currentvalues
   header     
   host       app.caterva.de
   httpheader HTTP/1.1 200 OK
X-Powered-By: Express
Strict-Transport-Security: max-age=31536000; includeSubDomains
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Thu, 24 Jan 2019 12:09:05 GMT
ETag: W/"821-1687fc381cb"
Content-Type: text/html; charset=UTF-8
Content-Length: 2081
set-cookie: app=s%3AD_ni6YQr7c3t04_3t1tVxwShux9nQ05l.X0rOmUHcVpJZcE55yXci%2FoJiYhROyR6eB1Hq3MMsvj8; Path=/; Expires=Sat, 02 Feb 2019 13:23:36 GMT; HttpOnly
Date: Sat, 26 Jan 2019 13:23:36 GMT
Connection: close
   httpversion 1.0
   hu_blocking 0
   hu_filecount 1
   hu_port    443
   hu_portSfx
   ignoreredirects 1
   loglevel   4
   path       /de/currentvalues
   protocol   https
   redirects  0
   timeout    2
   url        https://app.caterva.de/de/currentvalues
   value      0
   HTTPCookieHash:
     app;:
       Name       app
       Options    Path=/; Expires=Sat, 02 Feb 2019 13:23:36 GMT; HttpOnly
       Path       
       Value      s%3AD_ni6YQr7c3t04_3t1tVxwShux9nQ05l.X0rOmUHcVpJZcE55yXci%2FoJiYhROyR6eB1Hq3MMsvj8
   QUEUE:
   READINGS:
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       update
     url        https://app.caterva.de/de/currentvalues
     value      0
   sslargs:
Attributes:
   enableControlSet 1
   enableCookies 1
   extractAllJSON 2
   handleRedirects 1
   reAuthRegex .*not authorised.*
   room       test
   sid2Data   {"username": "geheim", "password": "sehr geheim"}
   sid2Header1 content-type: application/json
   sid2URL    https://app.caterva.de/auth/login
   userattr   sid2Data sid2Header1 sid2URL




define caterva HTTPMOD https://app.caterva.de/de/currentvalues 60
setuuid caterva 5c4c4faf-f33f-8c5d-d8c5-01e1fb89f9271697
attr caterva userattr sid2Data sid2Header1 sid2URL
attr caterva enableControlSet 1
attr caterva enableCookies 1
attr caterva extractAllJSON 2
attr caterva handleRedirects 1
attr caterva reAuthRegex .*not authorised.*
attr caterva room test
attr caterva sid2Data {"username": "geheim", "password": "auch geheim"}
attr caterva sid2Header1 content-type: application/json
attr caterva sid2URL https://app.caterva.de/auth/login




Verbose 5 ergibt:
User-Agent: fhem
Accept-Encoding: gzip,deflate
Cookie: app=s%3AD_ni6YQr7c3t04_3t1tVxwShux9nQ05l.X0rOmUHcVpJZcE55yXci%2FoJiYhROyR6eB1Hq3MMsvj8
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

2019.01.26 14:33:05 4: https://app.caterva.de/de/currentvalues: HTTP response code 200
2019.01.26 14:33:05 5: HttpUtils https://app.caterva.de/de/currentvalues: Got data, length: 2081
2019.01.26 14:33:05 5: HttpUtils response header:
HTTP/1.1 200 OK
X-Powered-By: Express
Strict-Transport-Security: max-age=31536000; includeSubDomains
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Thu, 24 Jan 2019 12:09:05 GMT
ETag: W/"821-1687fc381cb"
Content-Type: text/html; charset=UTF-8
Content-Length: 2081
Date: Sat, 26 Jan 2019 13:33:05 GMT
Connection: close
2019.01.26 14:33:05 4: caterva: Read callback: request type was update retry 0,
Body: <!doctype html>
<html style="height: 100%">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <title>Caterva ESS</title>
  <base href="/de/">

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />

  <!-- <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
  <script src="./assets/js/bootstrap-tour-standalone.min.js"></script>
  <link rel="stylesheet" href="./assets/css/bootstrap-tour-standalone.min.css" /> -->

  <link rel="icon" type="image/x-icon" href="favicon.png">
<link href="/de/styles.3c6ff44a14fd133a7e0f.bundle.css" rel="stylesheet"/></head>
<body style="height: 100%">
    <app-root>
        <div id="loadingWrapper" style="display: flex; height: 100%; align-content: center; justify-content: center; flex-direction: column; text-align: center;">
          <script>
            document.getElementById("loadingWrapper").innerHTML = '<img src="./assets/loading.svg" alt="Loading..." style="display: block; margin: 0 auto;">'
          </script>
          <noscript>
            <img src="./assets/error.svg" alt="Error" style="display: block; margin: 0 auto; height: 64px;">
            <div style="padding: 5%;">
              Um diese Ansicht sehen zu können, führen Sie bitte ein Update der App durch.
            </div>
          </noscript>
        </div>
    </app-root>
<script type="text/javascript" src="/de/inline.f6a9619a747ea625e764.bundle.js"></script><script type="text/javascript" src="/de/polyfills.c811e43e26829908ae9a.bundle.js"></script><script type="text/javascript" src="/de/scripts.f69453a874757ebb3a3d.bundle.js"></script><script type="text/javascript" src="/de/vendor.dd9dfe25618d20a15ab3.bundle.js"></script><script type="text/javascript" src="/de/main.07c2ff956ba9cf726241.bundle.js"></script></body>
</html>

2019.01.26 14:33:05 3: caterva: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!doctype html>\n<ht...") at (eval 4958) line 1.

2019.01.26 14:33:05 5: caterva: GetCookies is looking for Cookies
2019.01.26 14:33:05 5: caterva: ExtractSid called, context reading, num
2019.01.26 14:33:05 4: caterva: checking for redirects, code=200, ignore=0
2019.01.26 14:33:05 4: caterva: no redirects to handle
2019.01.26 14:33:05 5: caterva: CheckAuth is checking buffer with ReAuthRegex .*not authorised.*
2019.01.26 14:33:05 4: caterva: CheckAuth decided no authentication required
2019.01.26 14:33:05 3: caterva: no parsed JSON structure available
2019.01.26 14:33:05 5: caterva: Read starts parsing response to update with defined readings:
2019.01.26 14:33:05 3: caterva: Read response to update didn't match any Reading
2019.01.26 14:33:05 5: caterva: HandleSendQueue called, qlen = 0
2019.01.26 14:33:10 4: caterva: GetUpdate called (update)
2019.01.26 14:33:10 4: caterva: update timer modified: will call GetUpdate in 60.0 seconds at 2019-01-26 14:34:10
2019.01.26 14:33:10 4: caterva: AddToQueue adds update, initial queue len: 0
2019.01.26 14:33:10 5: caterva: AddToQueue adds type update to URL https://app.caterva.de/de/currentvalues, no data, no headers, retry 0
2019.01.26 14:33:10 5: caterva: HandleSendQueue called, qlen = 1
2019.01.26 14:33:10 5: caterva: HandleSendQueue is using Cookie app with path  and Value s%3AD_ni6YQr7c3t04_3t1tVxwShux9nQ05l.X0rOmUHcVpJZcE55yXci%2FoJiYhROyR6eB1Hq3MMsvj8 (key app;, destination path is /de/currentvalues)
2019.01.26 14:33:10 5: caterva: HandleSendQueue is adding Cookie header: app=s%3AD_ni6YQr7c3t04_3t1tVxwShux9nQ05l.X0rOmUHcVpJZcE55yXci%2FoJiYhROyR6eB1Hq3MMsvj8
2019.01.26 14:33:10 4: caterva: HandleSendQueue sends request type update to URL https://app.caterva.de/de/currentvalues, No Data,
header: Cookie: app=s%3AD_ni6YQr7c3t04_3t1tVxwShux9nQ05l.X0rOmUHcVpJZcE55yXci%2FoJiYhROyR6eB1Hq3MMsvj8
timeout 2
2019.01.26 14:33:10 5: HttpUtils url=https://app.caterva.de/de/currentvalues
2019.01.26 14:33:10 4: IP: app.caterva.de -> 212.11.231.215
2019.01.26 14:33:10 5: HttpUtils request header:
GET /de/currentvalues HTTP/1.0
Host: app.caterva.de
User-Agent: fhem
Accept-Encoding: gzip,deflate
Cookie: app=s%3AD_ni6YQr7c3t04_3t1tVxwShux9nQ05l.X0rOmUHcVpJZcE55yXci%2FoJiYhROyR6eB1Hq3MMsvj8
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

2019.01.26 14:33:10 4: https://app.caterva.de/de/currentvalues: HTTP response code 200
2019.01.26 14:33:10 5: HttpUtils https://app.caterva.de/de/currentvalues: Got data, length: 2081
2019.01.26 14:33:10 5: HttpUtils response header:
HTTP/1.1 200 OK
X-Powered-By: Express
Strict-Transport-Security: max-age=31536000; includeSubDomains
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Thu, 24 Jan 2019 12:09:05 GMT
ETag: W/"821-1687fc381cb"
Content-Type: text/html; charset=UTF-8
Content-Length: 2081
Date: Sat, 26 Jan 2019 13:33:10 GMT
Connection: close
2019.01.26 14:33:10 4: caterva: Read callback: request type was update retry 0,
Body: <!doctype html>
<html style="height: 100%">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <title>Caterva ESS</title>
  <base href="/de/">

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />

  <!-- <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
  <script src="./assets/js/bootstrap-tour-standalone.min.js"></script>
  <link rel="stylesheet" href="./assets/css/bootstrap-tour-standalone.min.css" /> -->

  <link rel="icon" type="image/x-icon" href="favicon.png">
<link href="/de/styles.3c6ff44a14fd133a7e0f.bundle.css" rel="stylesheet"/></head>
<body style="height: 100%">
    <app-root>
        <div id="loadingWrapper" style="display: flex; height: 100%; align-content: center; justify-content: center; flex-direction: column; text-align: center;">
          <script>
            document.getElementById("loadingWrapper").innerHTML = '<img src="./assets/loading.svg" alt="Loading..." style="display: block; margin: 0 auto;">'
          </script>
          <noscript>
            <img src="./assets/error.svg" alt="Error" style="display: block; margin: 0 auto; height: 64px;">
            <div style="padding: 5%;">
              [color=red]Um diese Ansicht sehen zu können, führen Sie bitte ein Update der App durch.[/color]
            </div>
          </noscript>
        </div>
    </app-root>
<script type="text/javascript" src="/de/inline.f6a9619a747ea625e764.bundle.js"></script><script type="text/javascript" src="/de/polyfills.c811e43e26829908ae9a.bundle.js"></script><script type="text/javascript" src="/de/scripts.f69453a874757ebb3a3d.bundle.js"></script><script type="text/javascript" src="/de/vendor.dd9dfe25618d20a15ab3.bundle.js"></script><script type="text/javascript" src="/de/main.07c2ff956ba9cf726241.bundle.js"></script></body>
</html>

2019.01.26 14:33:10 3: caterva: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!doctype html>\n<ht...") at (eval 4966) line 1.

2019.01.26 14:33:10 5: caterva: GetCookies is looking for Cookies
2019.01.26 14:33:10 5: caterva: ExtractSid called, context reading, num
2019.01.26 14:33:10 4: caterva: checking for redirects, code=200, ignore=0
2019.01.26 14:33:10 4: caterva: no redirects to handle
2019.01.26 14:33:10 5: caterva: CheckAuth is checking buffer with ReAuthRegex .*not authorised.*
2019.01.26 14:33:10 4: caterva: CheckAuth decided no authentication required
2019.01.26 14:33:10 3: caterva: [color=red]no parsed JSON structure available[/color]
2019.01.26 14:33:10 5: caterva: Read starts parsing response to update with defined readings:
2019.01.26 14:33:10 3: caterva: [color=red]Read response to update didn't match any Reading[/color]
2019.01.26 14:33:10 5: caterva: HandleSendQueue called, qlen = 0




Danke für deine Zeit
Manuel
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 26 Januar 2019, 14:52:50
Hallo Manuel,

sorry - ich sehe gerade, das sich nur die Attribute gepostet habe.
Ich habe es anders definiert:

define caterva HTTPMOD https://app.caterva.de/ess/currentdata 0

Die URLs beginnen nun mit /ess/

Zum Abfragen mache ich dann ein set reread (da ich beim Define als Intervall 0 angegeben habe)


Gruss
   Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 26 Januar 2019, 15:02:26
Hallo Stefan,

DANKE!

Gruß Manuel
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: StefanStrobel am 26 Januar 2019, 15:12:26
Hallo Manuel,

wenn Du die Readings wieder angepasst hast, wäre die Konfiguration sicher auch etwas für ein Attr-Template.

Gruss
   Stefan
Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 26 Januar 2019, 15:25:02
Hallo Stefan,

nun habe ich mich zu früh gefreut...
Die 2.Seite mit Daten bekomme ich nicht mit der selben definition...

define ESS_Jahressummen HTTPMOD https://app.caterva.de/ess/year-amount 60
attr ESS_Jahressummen enableControlSet 1
attr ESS_Jahressummen enableCookies 1
attr ESS_Jahressummen handleRedirects 1
attr ESS_Jahressummen reAuthRegex .*not authorised.*
attr ESS_Jahressummen sid2Data {"username": "geheim", "password": "ebenfalls"}
attr ESS_Jahressummen sid2Header1 content-type: application/json
attr ESS_Jahressummen sid2URL https://app.caterva.de/auth/login
attr ESS_Jahressummen room test
attr ESS_Jahressummen extractAllJSON 2


Was ist denn ein "Attr-Template" ?

Gruß Manuel


Titel: Antw:HTTOMOD-https Login mit Session ID - CATERVA-Stromspeicher
Beitrag von: Petrosilius Zwackelmann am 26 Januar 2019, 22:45:36
Hallo Stefan,

habe nochmal Burp installiert und die Konfiguration gefungen...

https://app.caterva.de/ess/yearAmount 60

Gruß Manuel