98_DBPlan.pm: Fahrplaninformation der DB

Begonnen von JoWiemann, 08 April 2015, 18:57:14

Vorheriges Thema - Nächstes Thema

farin1337

Heyho,

ich konnte mein Problem soeben mit deinem Tipp lösen. Habe das Modul einmal komplett inklusive Komponenten gelöscht und neu angelegt. Jetzt läuft wieder alles perfekt. Vielen lieben Dank für deine Hilfe!!

Gruß
Farin1337

uniqueck

So ich habe dann auch mitbekommen das du die readings geändert hast, jeweils mit dem Präfix plan.
Ich wollte schon sagen geht nix mehr.  Das muss ich mir dann heute abend nochmal  genau anschauen.  Aber ansonsten sieht es schon mal gut aus. Danke dafür.

Gesendet von meinem GT-N7100 mit Tapatalk


JoWiemann

Sorry, die Änderung des Präfix hatte ich vergessen bekannt zu geben.


Grüße Jörg

Gesendet von iPhone mit Tapatalk
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

ulli

#78
Gibt es das Modul zukünftig in fhem?

JoWiemann

Müsste ich mich als Maintainer einrichten lassen.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

ulli

Bei mir funktioniert das Modul leider nicht.
Es ruft die Informationen korrekt von der URL ab. d.h. meine Namen sind korrekt.
Das Parsen funktioniert scheinbar nicht, da überall in den Readings none steht.

Das log zeigt folgendes

015.06.23 19:53:50 5: DBPlan (DB_Hackerbruecke) - DB timetable: restartet InternalTimer with 60
2015.06.23 19:53:50 3: DBPlan (DB_Hackerbruecke) - DB timetable: calling url: http://reiseauskunft.bahn.de/bin/query.exe/dox?S=Unterhaching&Z=Muenchen+Hbf&start=1&rt=1&
2015.06.23 19:53:50 4: DBPlan (DB_Hackerbruecke) - DB timetable: next getting http://reiseauskunft.bahn.de/bin/query.exe/dox?S=Unterhaching&Z=Muenchen+Hbf&start=1&rt=1&
2015.06.23 19:53:50 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query.exe/dox?S=Unterhaching&Z=Muenchen+Hbf&start=1&rt=1&
2015.06.23 19:53:50 4: http://reiseauskunft.bahn.de/bin/query.exe/dox?S=Unterhaching&Z=Muenchen+Hbf&start=1&rt=1&: HTTP response code 200
2015.06.23 19:53:50 4: HttpUtils http://reiseauskunft.bahn.de/bin/query.exe/dox?S=Unterhaching&Z=Muenchen+Hbf&start=1&rt=1&: Got data, length: 6894
2015.06.23 19:53:50 5: DBPlan (DB_Hackerbruecke) - DBPlan_Parse_Timetable: Callback called with Hash: HASH(0xf3b3a0), data: <?xml version="1.0" encoding="ISO-8859-1"?>
........
2015.06.23 19:53:50 3: DBPlan (DB_Hackerbruecke) - DBPlan_Parse_Timetable: successfully identified
2015.06.23 19:53:50 3: DBPlan (DB_Hackerbruecke) - DBPlan_Parse_Timetable: connection plans read successfully



Gesendet von meinem SM-P600 mit Tapatalk


klausw

Bei mit läuft es leider auch nicht mehr (habe nach längerem ein update des Moduls gemacht):

Internals:
   BASE_URL   http://reiseauskunft.bahn.de/bin/query.exe/dox?S=departure&Z=destination&start=1&rt=1
   CFGFN
   DEF        1200
   Interval   1200
   NAME       DaniBahn
   NR         528
   STATE      active
   TRIGGERTIME 1435086883.18946
   TRIGGERTIME_FMT 2015-06-23 21:14:43
   TYPE       DBPlan
   addr       http://reiseauskunft.bahn.de:80
   buf        HTTP/1.1 200 OK

Date: Tue, 23 Jun 2015 18:54:49 GMT

Server: Apache

Connection: close

Content-Type: text/html; charset=ISO-8859-1

Set-Cookie: bbbbbbbbbbbbbbb=FCEJNLLLIAOKMOJFJDLMJKFEEEDDMMLCLNBKNGJHGGJDJFGBDBOCCOFBIIBAOGMIOLHGAMPEPGGIPJMBCKCIJAIMNGMENFBMFCMNFAIFOEOOOOPIBMCANEIFMHGFJGKL; HttpOnly; secure



<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Deutsche Bahn - Verbindungen - Verbindungsdetails</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="expires" content="-1" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
<meta name="format-detection" content="telephone=no" />
<meta name="HandheldFriendly" content="true" />
<link rel="shortcut icon" href="http://www.img-bahn.de/v/1506/img/favicon.ico" />
<link rel="apple-touch-icon" type="image/x-icon" href="http://www.img-bahn.de/v/1506/img/apple-touch-icon.png"/>
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/cms/mobile/css/bahn_mobile.css" />
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/css/hafas_mobile.css" />
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/cms/mobile/css/notouch.css" />
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/css/hafas_notouch.css" />
</head>
<body >
<div id="doc" >
<div id="header">
<div class="logo">
<img src="http://www.img-bahn.de/v/1506/img/ua_xhtml/l_bahnmobile.gif" alt="DB - Deutsche Bahn" height="15" width="60" />
</div>
<div id="branding">
<div class="bar"> </div>
</div>
</div>
<div id="content" class="">
<h1>
<img class="prio1Icon" src="http://www.img-bahn.de/v/1506/img/ua_xhtml/icon_verbindung_grau_22x22.gif" height="22" width="22" alt="" />Angebot wählen
</h1>
<div class="inputtbl">
<div class="clickarea rline route" id="dtlOpen">
<a id="dtlOpen_link" href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=~CONNECTION$C0-0!details" class="flaparrowclose">
<span class="querysummary1">
Hausen, Frankfurt am Main - Schwanheim Rheinlandstraße, Frankfurt am Main
</span>
<span class="querysummary2" id="dtlOpen_2">
Di, 23.06.15, 21:11
-
21:55
</span>
</a>
</div>
<div class="rline haupt routeStart" style=" ">
<span class="bold">Hausen, Frankfurt am Main</span><br />
ab 21:11
<br />
</div>
<div class="rline haupt mot">
<div class="motSection">
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=CONNECTION$C0-0!section=0!" class="flaparrow">
<span class="bold">
U      7
</span>
</a>
</div>
</div>
<div class="rline haupt routeChange routeChange__IV">
an 21:22
<br />
<span class="bold">Hauptwache, Frankfurt am Main</span><br />
</div>
<div class="rline haupt mot mot_inter">
<div class="interSection">
Fußweg
4 Min.
</div>
</div>
<div class="rline haupt routeChange routeChangeIV">
<span class="bold">Frankfurt(M)Hauptwache</span><br />
ab 21:28 <span class="okmsg">+0</span> Gl. 3
<br />
</div>
<div class="rline haupt mot">
<div class="motSection">
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=CONNECTION$C0-0!section=2!" class="flaparrow">
<span class="bold">
S      9
</span>
</a>
</div>
</div>
<div class="rline haupt routeChange routeChange__IV">
an 21:36 <span class="okmsg">+0</span> Gl. 4
<br />
<span class="bold">Frankfurt-Niederrad</span><br />
</div>
<div class="rline haupt mot mot_inter">
<div class="interSection">
Fußweg
3 Min.
</div>
</div>
<div class="rline haupt routeChange routeChangeIV">
<span class="bold">Niederrad Bahnhof, Frankfurt am Main</span><br />
ab 21:45
<br />
</div>
<div class="rline haupt mot">
<div class="motSection">
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=CONNECTION$C0-0!section=4!" class="flaparrow">
<span class="bold">
STR   12
</span>
</a>
</div>
</div>
<div class="rline haupt routeEnd routeEnd__IV">
an 21:55
<br />
<span class="bold">Schwanheim Rheinlandstraße, Frankfurt am Main</span><br />
</div>
<div class="rlinebottom"></div>
<div class="bline bggrey">
<a class="arrowlink" href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;sotRequest=1&amp;sotContext=&amp;sotMasterId=C0-0&amp;REQ0SOTCtxtP=C0-0&amp;REQ0SOTCtxtO=FROM_RECONSTRUCTION_VIA_SPOOL&amp;vcra=1&amp;start=1&amp;displayOutward=1">Aktuelle Alternativen</a>
</div>
<div class="rlinebottom"></div>
<div class="bline stdpadding bggrey">
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;selectOutwardJourney=yes&amp;selectReturnMode=yes&amp;guiVCtrl_connection_detailsOut_add_selection=yes&amp;showReturnRequestPage=yes&amp;HWAI=~CONNECTION$C0-0!details!&amp;" class="nebenbtn " >Rückfahrt hinzufügen</a>
</div>
<div class="haupt bggrey paddingleft editBtnCon ">
<div style="position: absolute;">Reiseprofil:</div><div class="bold" style="padding-left: 90px;">2. Klasse |&ensp;1&nbsp;Erwachsener&nbsp;-&ensp;Keine Ermäßigung&ensp;</div><br/><a class="arrowlink" href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;chgBC=y&amp;getstop=1&amp;showRequestPage=1&amp;&amp;">Reiseprofil ändern</a></div><div class="rlinetop"></div><h3 style="padding-left: 6px !important;">Einfache Fahrt</h3><div class="formular"><div class="tarifftable"><table class="tariff"><tr><td>Preisauskunft nicht möglich</td></tr><tr class="noBorderBottom"><td>Für die gewählte Verbindung kann online kein Preis ermittelt werden. Bitte informieren Sie sich vor Ort oder telefonisch bei der Servicenummer der Deutschen Bahn, welche Fahrkarte für Ihren Zug gültig ist. Die entsprechende Rufnummer finden Sie unter www.bahn.de/kontakt.</td></tr></table></div><div class="rlinebottom"></div><div class="bline bggrey"><input type="submit" class="hauptbtn" name="order" value="Ticket/Reservierung" disabled="disabled" /></div></div><div class="bline bggrey"><input type="submit" class="hauptbtn" name="order" value="Nur Reservierung" disabled="disabled" /></div><form action="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&amp;n=4&amp;i=mt.029980241.1435085684&amp;rt=1&amp;use_realtime_filter=1&amp;" method="post"><div class="bline bggrey"><input type="submit" class="nebenbtn" name="vcra" value="Zurück" /></div></form></div></div>
<div id="footer" style="">
<ul class="footer">
<li class="firstitem"><a class="footerlinks" href="http://www.bahn.de/m/view/de/index.shtml">Startseite</a></li>
<li class="">
<a class="footerlinks" href="http://www.bahn.de/m/view/de/home/kontakt/impressum.shtml">Impressum</a>
</li>
</ul>
</div>
<p class="webtrack">
<img src="http://t.bahn.de/b/ss//5/378759718?AQB=1&amp;gn=MOBI_ASK_DEU_de_AuskunftVerbindungenDetail&amp;ch=MOBI_ASK_DEU_de&amp;ev=event48,event3&amp;c21=MOBI>ASK>Z1>1E0K>BC1>2KL>SV1>ALL>EF&amp;v21=MOBI>ASK>Z1>1E0K>BC1>2KL>SV1>ALL>EF&amp;c23=Hausen,%20Frankfurt%20am%20Main>Schwanheim%20Rheinlandstra%DFe,%20Frankfurt%20am%20Main&amp;v23=Hausen,%20Frankfurt%20am%20Main>Schwanheim%20Rheinlandstra%DFe,%20Frankfurt%20am%20Main&amp;pl=;;;;;evar25=BC0&amp;c25=BC0&amp;c48=mit_AR&amp;AQE=1" width="5" height="5" alt="" />
</p>
</div>
</body>
</html>

   code       200
   conn
   displayurl http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&n=1&i=mt.029980241.1435085684&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
   host       reiseauskunft.bahn.de
   httpheader HTTP/1.1 200 OK

Date: Tue, 23 Jun 2015 18:54:49 GMT

Server: Apache

Connection: close

Content-Type: text/html; charset=ISO-8859-1

Set-Cookie: bbbbbbbbbbbbbbb=FCEJNLLLIAOKMOJFJDLMJKFEEEDDMMLCLNBKNGJHGGJDJFGBDBOCCOFBIIBAOGMIOLHGAMPEPGGIPJMBCKCIJAIMNGMENFBMFCMNFAIFOEOOOOPIBMCANEIFMHGFJGKL; HttpOnly; secure
   loglevel   4
   noshutdown 0
   note_index 1
   path       /bin/query2.exe/dox?ld=96241&n=1&i=mt.029980241.1435085684&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
   protocol   http
   redirects  0
   timeout    5
   url        http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&n=1&i=mt.029980241.1435085684&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
   Readings:
     2015-06-23 20:54:44   plan_arrival_1  none
     2015-06-23 20:54:44   plan_arrival_2  none
     2015-06-23 20:54:44   plan_arrival_3  none
     2015-06-23 20:54:44   plan_arrival_delay_1 none
     2015-06-23 20:54:44   plan_arrival_delay_2 none
     2015-06-23 20:54:44   plan_arrival_delay_3 none
     2015-06-23 20:54:44   plan_connection_1 none
     2015-06-23 20:54:44   plan_connection_2 none
     2015-06-23 20:54:44   plan_connection_3 none
     2015-06-23 20:54:44   plan_departure_1 none
     2015-06-23 20:54:44   plan_departure_2 none
     2015-06-23 20:54:44   plan_departure_3 none
     2015-06-23 20:54:44   plan_departure_delay_1 none
     2015-06-23 20:54:44   plan_departure_delay_2 none
     2015-06-23 20:54:44   plan_departure_delay_3 none
     2015-06-23 20:54:44   plan_error      none
     2015-06-23 20:54:44   travel_change_1 none
     2015-06-23 20:54:44   travel_change_2 none
     2015-06-23 20:54:44   travel_change_3 none
     2015-06-23 20:54:50   travel_departure_1 Gl. 3

     2015-06-23 20:54:48   travel_departure_2 none
     2015-06-23 20:54:47   travel_departure_3 Gl. 3

     2015-06-23 20:54:50   travel_destination_1 none
     2015-06-23 20:54:48   travel_destination_2 none
     2015-06-23 20:54:47   travel_destination_3 none
     2015-06-23 20:54:44   travel_duration_1 none
     2015-06-23 20:54:44   travel_duration_2 none
     2015-06-23 20:54:44   travel_duration_3 none
     2015-06-23 20:54:44   travel_note_1   none
     2015-06-23 20:54:44   travel_note_2   none
     2015-06-23 20:54:44   travel_note_3   none
     2015-06-23 20:54:45   travel_note_link_1 http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&n=1&i=mt.029980241.1435085684&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
     2015-06-23 20:54:45   travel_note_link_2 http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&n=1&i=mt.029980241.1435085684&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&
     2015-06-23 20:54:45   travel_note_link_3 http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96241&n=1&i=mt.029980241.1435085684&rt=1&use_realtime_filter=1&co=C0-2&vca&HWAI=CONNECTION$C0-2!details=opened!&
     2015-06-23 20:54:44   travel_note_text_1 none
     2015-06-23 20:54:44   travel_note_text_2 none
     2015-06-23 20:54:44   travel_note_text_3 none
     2015-06-23 20:54:45   travel_price_1  none
     2015-06-23 20:54:45   travel_price_2  none
     2015-06-23 20:54:45   travel_price_3  none
Attributes:
   dbplan_departure Hausen, Frankfurt am Main
   dbplan_destination Schwanheim Rheinlandstraße, Frankfurt am Main


Habe das Modul auch gelöscht - Pi neu gestartet - neu definiert

mit gleichem Ergebnis

Grüße
Klaus
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

AxelSchweiss

Dito .. nach dem Update gehts bei mir leider auch nicht mehr.
Die URL wird anscheinend korrekt abgerufen aber die Readings bleiben leer.
Anbei mal meine Config die wurde auch nicht verändert.
Vielleicht  seh ich es ja auch nicht.

define zugfahrplan DBPlan 900
attr zugfahrplan alias Bad Camberg -> Frankfurt
attr zugfahrplan dbplan_departure Bad Camberg
attr zugfahrplan dbplan_destination Frankfurt
attr zugfahrplan dbplan_disable 0
attr zugfahrplan dbplan_journey_opt Direktverbindung
attr zugfahrplan dbplan_journey_prod Nahverkehr,S-Bahnen

define zugfahrplan.an at *07:00:00 { if ( !($we) ) { fhem ("set zugfahrplan start" ) } }
define zugfahrplan.aus at *09:00:00 { if ( !($we) ) { fhem ("set zugfahrplan stop" ) } }

Interessant ist auch das das Modul beim Neustart von FHEM nicht von selbst anläuft.
Ich muss zuerst ein "set x stop" und dann ein "set x start" machen. Es gewissermassen manuel initialisieren.


JoWiemann

Zitat von: klausw am 23 Juni 2015, 21:04:37
Bei mit läuft es leider auch nicht mehr (habe nach längerem ein update des Moduls gemacht):

Hallo Klaus,

läuft bei mir mit Deinen Parametern.

Bitte einmal das Device löschen und neu anlegen. Manchmal hilft es.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

JoWiemann

Zitat von: AxelSchweiss am 23 Juni 2015, 21:14:28
Dito .. nach dem Update gehts bei mir leider auch nicht mehr.

Hallo Axel,

der erste Anlauf erfolgt eigentlich nach Anzahl Sekunden, die die Du definiert hast.

Bei mir funktioniert es mit Deinen Parametern. Am Besten mal verbose 4 oder 5 setzen und ins Log schauen, der Device löschen. Hat schon mal geholfen (Device löschen).

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

ulli

Ich habe das Modul auch nochmal gelöscht und wieder definiert...leider ohne Erfolg.


Internals:
   BASE_URL   http://reiseauskunft.bahn.de/bin/query.exe/dox?S=departure&Z=destination&start=1&rt=1
   CFGFN
   DEF        60
   Interval   60
   NAME       DB_Hackerbruecke
   NR         919
   STATE      active
   TRIGGERTIME 1435088143.24516
   TRIGGERTIME_FMT 2015-06-23 21:35:43
   TYPE       DBPlan
   addr       http://reiseauskunft.bahn.de:80
   buf        HTTP/1.1 200 OK

Date: Tue, 23 Jun 2015 19:34:43 GMT

Server: Apache

Set-Cookie: DB4-pb-bibe-history=history%3DStop1%253DI%25253Dstop1%2525A7L%25253DA%25253D1%252540O%25253DM%2525FCnchen%252BZOB%252B%28Hackerbr%2525FCcke%29%252540X%25253D11549862%252540Y%25253D48142269%252540U%25253D80%252540L%25253D008089317%252540B%25253D1%252540p%25253D1434788253%252540%2525A7%2526Stop2%253DI%25253Dstop2%2525A7L%25253DA%25253D1%252540O%25253DUnterhaching%252540X%25253D11612355%252540Y%25253D48064962%252540U%25253D80%252540L%25253D008005991%252540B%25253D1%252540p%25253D1434788253%252540%2525A7%2526%26; expires=Friday, 03-Jul-2015 00:00:01 GMT; Domain=.bahn.de; Path=/; Version=1

Connection: close

Content-Type: text/html; charset=ISO-8859-1

Set-Cookie: bbbbbbbbbbbbbbb=PFBGAEKMAEKHNDCMJHFOEMKAALLPPDPMPAMIDJOBPNADNKHNIHCBLLAGCDOAMHKMIEDJAIMONFEKJDLGILBDGNGIFPMJBPOKDFOFHMGCGPEIBBNGNADIEFFBMGLANGDN; HttpOnly; secure

Set-Cookie: f5_cspm=1234;



<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><script id="f5_cspm">(function(){var f5_cspm={f5_p:'CBMLGPIKKELFMDCIAJDJHNLAAOAOPDPMOAMIDJOBPNABNKHNIHCBLLAGCDOAMHKMACKMMJMONFEKJDLGBHJGENGIFPMJBPOKDFOFHMGCGPEIBBMHNADIEFFBMGLANGND',setCharAt:function(str,index,chr){if(index>str.length-1)return str;return str.substr(0,index)+chr+str.substr(index+1);},get_byte:function(str,i){var s=(i/16)|0;i=(i&15);s=s*32;return((str.charCodeAt(i+16+s)-65)<<4)|(str.charCodeAt(i+s)-65);},set_byte:function(str,i,b){var s=(i/16)|0;i=(i&15);s=s*32;str=f5_cspm.setCharAt(str,(i+16+s),String.fromCharCode((b>>4)+65));str=f5_cspm.setCharAt(str,(i+s),String.fromCharCode((b&15)+65));return str;},set_latency:function(str,latency){latency=latency&0xffff;str=f5_cspm.set_byte(str,32,(latency>>8));str=f5_cspm.set_byte(str,33,(latency&0xff));str=f5_cspm.set_byte(str,27,2);return str;},wait_perf_data:function(){try{var wp=window.performance.timing;if(wp.loadEventEnd>0){var res=wp.loadEventEnd-wp.navigationStart;if(res<60001){var cookie_val=f5_cspm.set_latency(f5_cspm.f5_p,res);window.document.cookie='aaaaaaaaaaaaaaa='+encodeURIComponent(cookie_val)+';path=/';}
return;}}
catch(err){return;}
setTimeout(f5_cspm.wait_perf_data,100);return;},go:function(){var chunk=window.document.cookie.split(/\s*;\s*/);for(var i=0;i<chunk.length;++i){var pair=chunk[i].split(/\s*=\s*/);if(pair[0]=='f5_cspm'){if(pair[1]=='1234'){var d=new Date();d.setTime(d.getTime()-1);window.document.cookie='f5_cspm=;expires='+d.toUTCString()+';path=/;';setTimeout(f5_cspm.wait_perf_data,100);}}}}}
f5_cspm.go();}());</script>
<title>Deutsche Bahn - Verbindungen - Ihre Auskunft</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="expires" content="-1" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
<meta name="format-detection" content="telephone=no" />
<meta name="HandheldFriendly" content="true" />
<link rel="shortcut icon" href="http://www.img-bahn.de/v/1506/img/favicon.ico" />
<link rel="apple-touch-icon" type="image/x-icon" href="http://www.img-bahn.de/v/1506/img/apple-touch-icon.png"/>
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/cms/mobile/css/bahn_mobile.css" />
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/css/hafas_mobile.css" />
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/cms/mobile/css/notouch.css" />
<link rel="stylesheet" type="text/css" href="http://www.img-bahn.de/v/1506/css/hafas_notouch.css" />
</head>
<body >
<div id="doc" >
<div id="header">
<div class="logo">
<img src="http://www.img-bahn.de/v/1506/img/ua_xhtml/l_bahnmobile.gif" alt="DB - Deutsche Bahn" height="15" width="60" />
</div>
<div id="branding">
<div class="bar"> </div>
</div>
</div>
<div id="content" class="">
<h1>
<img class="prio1Icon" src="http://www.img-bahn.de/v/1506/img/ua_xhtml/icon_verbindung_grau_22x22.gif" height="22" width="22" alt="" />Verbindung wählen
</h1>
<div class="inputtbl">
<div class="rline">
<div class="stdpadding editBtnCon paddingleft " >
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;changeRequestProperties=1&amp;" title="Angaben ändern"><img src="http://www.img-bahn.de/v/1506/img/ua_xhtml/bearbeiten_22x22.png" class="editButton" /></a>
<span class="bold">Unterhaching</span>
-
<span class="bold">München ZOB (Hackerbrücke)</span>
<br />
<span class="grey">Di, 23.06.2015</span>
<br />
</div>
</div>
<div class="rlinebottom"></div>
<div class="haupt bggrey paddingleft editBtnCon ">
<div style="position: absolute;">Reiseprofil:</div><div class="bold" style="padding-left: 90px;">2. Klasse |&ensp;1&nbsp;Erwachsener&nbsp;-&ensp;Keine Ermäßigung&ensp;</div><br/><a class="arrowlink" href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;chgBC=y&amp;getstop=1&amp;showRequestPage=1&amp;&amp;">Reiseprofil ändern</a></div><div class="rlinetop"></div><table class="ovTable clicktable">
<thead>
<tr>
<td class="ovHead">
Ab<br />An
</td>
<td class="ovHeadNoPad">&nbsp;</td>
<td class="ovHeadNoPadLeft">
Umstiege<br />
Dauer
</td>
<td class="ovHead">
Produkt<br />Preis (EUR)*</td>
</tr>
<tr>
<td colspan="4" class="prio2links">
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;e=2&amp;" class="nounderline"><img class="smIcon" src="http://www.img-bahn.de/v/1506/img/arrow_red_top.gif" alt="" style="vertical-align: middle;" height="11" width="11" /> Früher</a>
</td>
</tr>
</thead>
<tr ><td class="overview timelink"><a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;co=C0-0&amp;vca&amp;HWAI=CONNECTION$C0-0!details=opened!&amp;"><span class="bold">21:57</span><br /><span class="bold">22:29</span></a></td><td class="overview tprt"><span class="okmsg">+0</span><br />&nbsp;</td><td class="overview">0<br />0:32</td><td class="overview iphonepfeil">S<br /> <span class="bold"> </span></td></tr><tr class="ovConLine"><td class="overview timelink"><a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;co=C0-1&amp;vca&amp;HWAI=CONNECTION$C0-1!details=opened!&amp;"><span class="bold">22:17</span><br /><span class="bold">22:49</span></a></td><td class="overview tprt"><span class="okmsg">+0</span><br />&nbsp;</td><td class="overview">0<br />0:32</td><td class="overview iphonepfeil">S<br /> <span class="bold"> </span></td></tr><tr class="ovConLine"><td class="overview timelink"><a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;co=C0-2&amp;vca&amp;HWAI=CONNECTION$C0-2!details=opened!&amp;"><span class="bold">22:37</span><br /><span class="bold">23:09</span></a></td><td class="overview tprt"><span class="okmsg">+0</span><br />&nbsp;</td><td class="overview">0<br />0:32</td><td class="overview iphonepfeil">S<br /> <span class="bold"> </span></td></tr><tr>
<td>
<a class="nounderline" href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;e=1&amp;"><img class="smIcon" src="http://www.img-bahn.de/v/1506/img/arrow_red_bottom.gif" alt="" style="vertical-align: middle;" height="11" width="11" /> Später</a>
</td>
</tr>
</table>
<div class="haupt bggrey normalpaddingleft">
<table><tr style="vertical-align:top;"><td style="padding-left:0 !important;">*</td><td>Bei Kreditkartenzahlung von Fernverkehrsangeboten ab 50,00 EUR Umsatz: zzgl. Zahlungsmittelentgelt ab 0,50 EUR.</td></tr></table>
</div>
<ul class="neben ">
<li>
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9647&amp;n=1&amp;i=eg.0174147.1435088083&amp;rt=1&amp;use_realtime_filter=1&amp;changeRequestProperties=1&amp;">Angaben ändern</a>
</li>
</ul>
</ul>
</div>
</div>
<div id="footer" style="">
<ul class="footer">
<li class="firstitem"><a class="footerlinks" href="http://www.bahn.de/m/view/de/index.shtml">Startseite</a></li>
<li class="">
<a class="footerlinks" href="http://www.bahn.de/m/view/de/home/kontakt/impressum.shtml">Impressum</a>
</li>
</ul>
</div>
<p class="webtrack">
<img src="http://t.bahn.de/b/ss//5/515026454?AQB=1&amp;gn=MOBI_ASK_DEU_de_AuskunftVerbindungen&amp;ch=MOBI_ASK_DEU_de&amp;ev=event48,event2&amp;c21=&amp;v21=&amp;c23=>&amp;v23=>&amp;pl=;;;;;evar25=BC0&amp;c25=BC0&amp;AQE=1" width="5" height="5" alt="" />
<script type="text/javascript">
var utag_data = {
}
</script>
<script type="text/javascript">
(function(a,b,c,d){
a='https://www.bahn.de/media/view/tms/utag.js';
b=document;c='script';d=b.createElement(c);d.src=a;d.type='text/java'+c;d.async=true;
a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);
})();
</script>
</p>
</div>
</body>
</html>

   code       200
   conn
   displayurl http://reiseauskunft.bahn.de/bin/query.exe/dox?S=Unterhaching&Z=Hackerbruecke&start=1&rt=1&
   host       reiseauskunft.bahn.de
   httpheader HTTP/1.1 200 OK

Date: Tue, 23 Jun 2015 19:34:43 GMT

Server: Apache

Set-Cookie: DB4-pb-bibe-history=history%3DStop1%253DI%25253Dstop1%2525A7L%25253DA%25253D1%252540O%25253DM%2525FCnchen%252BZOB%252B%28Hackerbr%2525FCcke%29%252540X%25253D11549862%252540Y%25253D48142269%252540U%25253D80%252540L%25253D008089317%252540B%25253D1%252540p%25253D1434788253%252540%2525A7%2526Stop2%253DI%25253Dstop2%2525A7L%25253DA%25253D1%252540O%25253DUnterhaching%252540X%25253D11612355%252540Y%25253D48064962%252540U%25253D80%252540L%25253D008005991%252540B%25253D1%252540p%25253D1434788253%252540%2525A7%2526%26; expires=Friday, 03-Jul-2015 00:00:01 GMT; Domain=.bahn.de; Path=/; Version=1

Connection: close

Content-Type: text/html; charset=ISO-8859-1

Set-Cookie: bbbbbbbbbbbbbbb=PFBGAEKMAEKHNDCMJHFOEMKAALLPPDPMPAMIDJOBPNADNKHNIHCBLLAGCDOAMHKMIEDJAIMONFEKJDLGILBDGNGIFPMJBPOKDFOFHMGCGPEIBBNGNADIEFFBMGLANGDN; HttpOnly; secure

Set-Cookie: f5_cspm=1234;
   loglevel   4
   noshutdown 0
   path       /bin/query.exe/dox?S=Unterhaching&Z=Hackerbruecke&start=1&rt=1&
   protocol   http
   redirects  0
   timeout    5
   url        http://reiseauskunft.bahn.de/bin/query.exe/dox?S=Unterhaching&Z=Hackerbruecke&start=1&rt=1&
   Readings:
     2015-06-23 21:34:43   plan_arrival_1  none
     2015-06-23 21:34:43   plan_arrival_2  none
     2015-06-23 21:34:43   plan_arrival_3  none
     2015-06-23 21:34:43   plan_arrival_delay_1 none
     2015-06-23 21:34:43   plan_arrival_delay_2 none
     2015-06-23 21:34:43   plan_arrival_delay_3 none
     2015-06-23 21:34:43   plan_connection_1 none
     2015-06-23 21:34:43   plan_connection_2 none
     2015-06-23 21:34:43   plan_connection_3 none
     2015-06-23 21:34:43   plan_departure_1 none
     2015-06-23 21:34:43   plan_departure_2 none
     2015-06-23 21:34:43   plan_departure_3 none
     2015-06-23 21:34:43   plan_departure_delay_1 none
     2015-06-23 21:34:43   plan_departure_delay_2 none
     2015-06-23 21:34:43   plan_departure_delay_3 none
     2015-06-23 21:34:43   plan_error      none
     2015-06-23 21:34:43   travel_change_1 none
     2015-06-23 21:34:43   travel_change_2 none
     2015-06-23 21:34:43   travel_change_3 none
     2015-06-23 21:34:43   travel_departure_1 none
     2015-06-23 21:34:43   travel_departure_2 none
     2015-06-23 21:34:43   travel_departure_3 none
     2015-06-23 21:34:43   travel_destination_1 none
     2015-06-23 21:34:43   travel_destination_2 none
     2015-06-23 21:34:43   travel_destination_3 none
     2015-06-23 21:34:43   travel_duration_1 none
     2015-06-23 21:34:43   travel_duration_2 none
     2015-06-23 21:34:43   travel_duration_3 none
     2015-06-23 21:34:43   travel_note_1   none
     2015-06-23 21:34:43   travel_note_2   none
     2015-06-23 21:34:43   travel_note_3   none
     2015-06-23 21:34:43   travel_note_link_1 none
     2015-06-23 21:34:43   travel_note_link_2 none
     2015-06-23 21:34:43   travel_note_link_3 none
     2015-06-23 21:34:43   travel_note_text_1 none
     2015-06-23 21:34:43   travel_note_text_2 none
     2015-06-23 21:34:43   travel_note_text_3 none
     2015-06-23 21:34:43   travel_price_1  none
     2015-06-23 21:34:43   travel_price_2  none
     2015-06-23 21:34:43   travel_price_3  none
Attributes:
   dbplan_departure Unterhaching
   dbplan_destination Hackerbruecke

klausw

Zitat von: JoWiemann am 23 Juni 2015, 21:18:42
Hallo Klaus,

läuft bei mir mit Deinen Parametern.

Bitte einmal das Device löschen und neu anlegen. Manchmal hilft es.

Grüße Jörg
Hi Jörg

Komisch grade nochmal gelöscht, neu gestartet und neu angelegt ... das gleiche

Nur travel_departure_* und travel_note_link_* wird angezeigt. Der Rest ist none.

Werden die beiden anders erzeugt?

Grüße
Klaus
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

JoWiemann

Zitat von: ulli am 23 Juni 2015, 21:35:41
Ich habe das Modul auch nochmal gelöscht und wieder definiert...leider ohne Erfolg.

Hallo Uli,

Fhem neu gestartet?

Ansonsten stimmt eigentlich alles. Bitte einmal verbose auf 4 setzen und das Log posten. Danke Dir.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

JoWiemann

Zitat von: klausw am 23 Juni 2015, 21:41:12
Komisch grade nochmal gelöscht, neu gestartet und neu angelegt ... das gleiche

Hallo Klaus,

bitte einmal verbose auf 4 setzen und das Log posten. Danke Dir.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

AxelSchweiss

Hallo Jörg

Ich habe mal das Device gelöscht und FHEM komplett via init-script neu gestartet. Leider Nix :-(

Im Log habe ich beim Start folgenden Eintrag gefunden

""my" variable $pattern masks earlier declaration in same scope at ./FHEM/98_DBPlan.pm line 361, <> line 1."

Das deutet ja auf einem Fehler im Parser hin.
Das einzige Reading das gefüllt wird ist dbg_connect_plan*

Das Log mit verbose 5 und eine datei mit dem Auszug mittels List habe mal angehängt.

FHEM ist mit Stand heute aktuell