98_DBPlan.pm: Fahrplaninformation der DB

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

Vorheriges Thema - Nächstes Thema

JoWiemann

Zitat von: uniqueck am 15 Juni 2015, 22:28:30
aber wie gesagt bei mir waren die Ankunft und Abfahrtszeiten erst nach meiner kleinen Anpassung wieder da.

Die Anpassung waren ja nicht verkehrt, nur leider die halbe Miete. Die DB hat einige weitere Formatierungen geändert. Auf der Fahrplan Seite kann ich nun die Tabelle über HTML::TableExtract ohne Rücksicht auf Formatänderungen auswerten. Auf der Detailseite zu einer Verbindung wird leider nicht über eine Tabelle formatiert, so dass ich dort auch einige Änderungen in den RegEx machen musste, damit die dort vorhandenen Informationen bereitgestellt werden.

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

farin1337

Hey,

ich hab leider immer noch fast überall "none" stehen, obwohl die die neueste Version von " 98_DBPlan.pm" eingespielt habe. Nur die Readings "travel_departure_*" werden angezeigt.

Gruß
David

JoWiemann

Hallo David,

dann gibt doch mal Deine Attribute preis. Dann kann ich das auch prüfen. Danke Dir

dbplan_departure
dbplan_destination
dbplan_journey_prod

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

farin1337

Hey,
entschuldige bitte, dass ich mich erst jetzt melde. Vielen Dank für deine schnelle Antwort. Ich habe nur folgende Attribute gesetzt:

alias Rothenburgsort -> Berliner Tor
dbplan_departure rothenburgsort
dbplan_destination berlinertor

Gruß Farin1337

JoWiemann

Hallo Farin,

ich bekomme alle readings gefüllt. Bitte einmal verbose auf 4 setzen und das Log posten.

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

farin1337

Hey, folgende Ausgabe habe ich im Log:


2015.06.17 16:46:16 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-2&vca&HWAI=CONNECTION$C0-2!details=opened!&: Got data, length: 7680
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 3 found
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 3 found
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 3 found
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 3 found
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 3 read successfully
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 3 found
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 3 read successfully
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 3 found
2015.06.17 16:46:16 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes (2): next getting http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&
2015.06.17 16:46:16 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&
2015.06.17 16:46:17 4: http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&: HTTP response code 200
2015.06.17 16:46:17 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&: Got data, length: 6150
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 2 found
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 2 found
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 2 found
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 2 found
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 2 read successfully
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 2 found
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 2 read successfully
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 2 found
2015.06.17 16:46:17 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes (1): next getting http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
2015.06.17 16:46:17 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
2015.06.17 16:46:18 4: http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&: HTTP response code 200
2015.06.17 16:46:18 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9640&n=1&i=j9.01661140.1434552374&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&: Got data, length: 6151
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 1 found
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 1 found
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 1 found
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 1 found
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 1 read successfully
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 1 found
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 1 read successfully
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 1 found
2015.06.17 16:46:18 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes: parsed all notes


Habe nochmal die verwendete 98_DBPlan.pm angehängt. Vielen Dank für deine Hilfe.

JoWiemann

Starte doch bitte Fhem komplett neu. Was ich nicht verstehe, dass keinerlei Log 3 Einträge vorhanden sind.

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

farin1337

Hey, reboot vom raspi und fhem hat leider nichts gebracht log sieht weiterhin so aus:

2015.06.17 17:49:26 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-2&vca&HWAI=CONNECTION$C0-2!details=opened!&
2015.06.17 17:49:27 4: http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-2&vca&HWAI=CONNECTION$C0-2!details=opened!&: HTTP response code 200
2015.06.17 17:49:27 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-2&vca&HWAI=CONNECTION$C0-2!details=opened!&: Got data, length: 6157
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 3 found
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 3 found
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 3 found
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 3 found
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 3 read successfully
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 3 found
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 3 read successfully
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 3 found
2015.06.17 17:49:27 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes (2): next getting http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&
2015.06.17 17:49:27 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&
2015.06.17 17:49:28 4: http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&: HTTP response code 200
2015.06.17 17:49:28 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&: Got data, length: 6157
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 2 found
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 2 found
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 2 found
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 2 found
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 2 read successfully
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 2 found
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 2 read successfully
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 2 found
2015.06.17 17:49:28 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes (1): next getting http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
2015.06.17 17:49:28 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
2015.06.17 17:49:29 3: DBPlan (db_rothenburgsort_hauptbahnhof) - DB timetable: calling url: http://reiseauskunft.bahn.de/bin/query.exe/dox?S=zollvereinsstraße&Z=gerharthauptmannplatzhamburg&start=1&rt=1&
2015.06.17 17:49:29 3: DBPlan (db_rothenburgsort_landungsbrucken) - DB timetable: calling url: http://reiseauskunft.bahn.de/bin/query.exe/dox?S=rothenburgsort&Z=landungsbrucken&start=1&rt=1&
2015.06.17 17:49:29 4: http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&: HTTP response code 200
2015.06.17 17:49:29 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=96240&n=1&i=kl.07095240.1434556165&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&: Got data, length: 6157
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 1 found
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 1 found
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 1 found
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 1 found
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 1 read successfully
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 1 found
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 1 read successfully
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 1 found
2015.06.17 17:49:29 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes: parsed all notes
2015.06.17 17:49:29 3: DBPlan (db_rothenburgsort_landungsbrucken) - DBPlan_Parse_Timetable: successfully identified
2015.06.17 17:49:29 3: DBPlan (db_rothenburgsort_landungsbrucken) - DBPlan_Parse_Timetable: connection plans read successfully
2015.06.17 17:49:34 3: DBPlan (db_rothenburgsort_hauptbahnhof) - DBPlan_Parse_Timetable: got error in callback: read from http://reiseauskunft.bahn.de:80 timed out
2015.06.17 17:49:41 3: DBPlan (Test1234) - DB timetable: calling url: http://reiseauskunft.bahn.de/bin/query.exe/dox?S=rothenburgsort&Z=bergedorf&start=1&rt=1&journeyProducts=16&
2015.06.17 17:49:41 3: DBPlan (Test123) - DB timetable: calling url: http://reiseauskunft.bahn.de/bin/query.exe/dox?S=zollvereinsstraße&Z=berlinertor&start=1&rt=1&
2015.06.17 17:49:42 3: DBPlan (Test123) - DBPlan_Parse_Timetable: successfully identified
2015.06.17 17:49:42 3: DBPlan (Test123) - DBPlan_Parse_Timetable: connection plans read successfully
2015.06.17 17:49:46 3: DBPlan (Test1234) - DBPlan_Parse_Timetable: got error in callback: read from http://reiseauskunft.bahn.de:80 timed out

JoWiemann

Hallo,

setz doch bitte verbose auf 5. Damit wird die gesamte Information aus dem http request ins Log geschrieben. Vielleicht kann ich dann sehen woran es liegt.

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

farin1337

Hey,
vielen dank, dass du dir so viel Zeit nimmst. Diese Ausgabe bekomme ist jetzt im log:
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 3 found
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 3 found
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 3 found
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 3 found
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 3 read successfully
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 3 found
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 3 read successfully
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 3 found
2015.06.17 22:33:42 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes (2): next getting http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&
2015.06.17 22:33:42 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&
2015.06.17 22:33:43 4: http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&: HTTP response code 200
2015.06.17 22:33:43 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-1&vca&HWAI=CONNECTION$C0-1!details=opened!&: Got data, length: 7673
2015.06.17 22:33:43 5: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: Callback called: Hash: HASH(0x1b01598), data: <?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:'LLOMEHCBGNPAPEIJNBOJGFPAKNFEKFHIIMEDJOBBOGJBPOINGGDAHIJHNBNANGLAFEFADCDKLKHHJHDBANHBLJHNODCBOOEHLJIOJPIHPMDBLALFOJGKEOCPKIMBLICF',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 - 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=9642&amp;n=3&amp;i=e1.0907742.1434573220&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=~CONNECTION$C0-1!details" class="flaparrowclose">
<span class="querysummary1">
Hamburg-Rothenburgsort - Hamburg Berliner Tor
</span>
<span class="querysummary2" id="dtlOpen_2">
Mi, 17.06.15, 22:52
<span class="okmsg">+0</span>
-
22:54
<span class="okmsg">+0</span>
</span>
</a>
</div>
<div class="rline haupt routeStart" style=" ">
<span class="bold">Hamburg-Rothenburgsort</span><br />
ab 22:52 <span class="okmsg">+0</span> Gl. 1
<br />
</div>
<div class="rline haupt mot">
<div class="motSection">
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&amp;n=3&amp;i=e1.0907742.1434573220&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=CONNECTION$C0-1!section=0!" class="flaparrow">
<span class="bold">
S     21
</span>
</a>
</div>
</div>
<div class="rline haupt routeEnd routeEnd__IV">
an 22:54 <span class="okmsg">+0</span> Gl. 11
<br />
<span class="bold">Hamburg Berliner Tor</span><br />
</div>
<div class="rlinebottom"></div>
<div class="bline bggrey">
<a class="arrowlink" href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&amp;n=3&amp;i=e1.0907742.1434573220&amp;rt=1&amp;use_realtime_filter=1&amp;sotRequest=1&amp;sotContext=&amp;sotMasterId=C0-1&amp;REQ0SOTCtxtP=C0-1&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=9642&amp;n=3&amp;i=e1.0907742.1434573220&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-1!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=9642&amp;n=3&amp;i=e1.0907742.1434573220&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=9642&amp;n=3&amp;i=e1.0907742.1434573220&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/510756040?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>ERW>EF&amp;v21=MOBI>ASK>Z1>1E0K>BC1>2KL>SV1>ERW>EF&amp;c23=Hamburg-Rothenburgsort>Hamburg%20Berliner%20Tor&amp;v23=Hamburg-Rothenburgsort>Hamburg%20Berliner%20Tor&amp;pl=;;;;;evar25=BC0&amp;c25=BC0&amp;c48=mit_AR&amp;AQE=1" width="5" height="5" alt="" />
</p>
</div>
</body>
</html>


2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 2 found
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 2 found
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 2 found
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 2 found
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 2 read successfully
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 2 found
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 2 read successfully
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 2 found
2015.06.17 22:33:43 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes (1): next getting http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
2015.06.17 22:33:43 4: HttpUtils url=http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&
2015.06.17 22:33:44 4: http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&: HTTP response code 200
2015.06.17 22:33:44 4: HttpUtils http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&n=1&i=e1.0907742.1434573220&rt=1&use_realtime_filter=1&co=C0-0&vca&HWAI=CONNECTION$C0-0!details=opened!&: Got data, length: 6144
2015.06.17 22:33:44 5: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: Callback called: Hash: HASH(0x1b01598), data: <?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=9642&amp;n=4&amp;i=e1.0907742.1434573220&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=~CONNECTION$C0-0!details" class="flaparrowclose">
<span class="querysummary1">
Hamburg-Rothenburgsort - Hamburg Berliner Tor
</span>
<span class="querysummary2" id="dtlOpen_2">
Mi, 17.06.15, 22:42
<span class="okmsg">+3</span>
-
22:44
<span class="okmsg">+4</span>
</span>
</a>
</div>
<div class="rline haupt routeStart" style=" ">
<span class="bold">Hamburg-Rothenburgsort</span><br />
ab 22:42 <span class="okmsg">+3</span> Gl. 1
<br />
</div>
<div class="rline haupt mot">
<div class="motSection">
<a href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&amp;n=4&amp;i=e1.0907742.1434573220&amp;rt=1&amp;use_realtime_filter=1&amp;HWAI=CONNECTION$C0-0!section=0!" class="flaparrow">
<span class="bold">
S     21
</span>
</a>
</div>
</div>
<div class="rline haupt routeEnd routeEnd__IV">
an 22:44 <span class="okmsg">+4</span> Gl. 11
<br />
<span class="bold">Hamburg Berliner Tor</span><br />
</div>
<div class="rlinebottom"></div>
<div class="bline bggrey">
<a class="arrowlink" href="http://reiseauskunft.bahn.de/bin/query2.exe/dox?ld=9642&amp;n=4&amp;i=e1.0907742.1434573220&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=9642&amp;n=4&amp;i=e1.0907742.1434573220&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=9642&amp;n=4&amp;i=e1.0907742.1434573220&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=9642&amp;n=4&amp;i=e1.0907742.1434573220&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/710754532?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>ERW>EF&amp;v21=MOBI>ASK>Z1>1E0K>BC1>2KL>SV1>ERW>EF&amp;c23=Hamburg-Rothenburgsort>Hamburg%20Berliner%20Tor&amp;v23=Hamburg-Rothenburgsort>Hamburg%20Berliner%20Tor&amp;pl=;;;;;evar25=BC0&amp;c25=BC0&amp;c48=mit_AR&amp;AQE=1" width="5" height="5" alt="" />
</p>
</div>
</body>
</html>


2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no canceling for plan 1 found
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no actual informations for plan 1 found
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 1 found
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel notes for plan 1 found
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel departure plattform for plan 1 read successfully
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel departure for plan 1 found
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: travel destination plattform for plan 1 read successfully
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DBPlan_Parse_Travel_Notes: no travel destination for plan 1 found
2015.06.17 22:33:44 4: DBPlan (db_rothenburgsort_berlinertor) - DB notes: parsed all notes

uniqueck

Ich würde ganz gerne nebenbei noch etwas einwerfen.
Ich würde mir wünschen, dass man die Standardwerte beeinflußen kann, also zum Beispiel wenn keine Verspätungszeiten bekannt sind, dass dann im Reading nicht none kommt sondern ein Leerstring oder was auch immer.
Ich finde die ganzen Nones sehen aufm meinem Tablet UI nicht so schick aus, wäre so etwas möglich?

Gruß und schönen Abend

JoWiemann

Zitat von: farin1337 am 17 Juni 2015, 22:37:19
Hey,
vielen dank, dass du dir so viel Zeit nimmst. Diese Ausgabe bekomme ist jetzt im log:

Hallo,

habe keine Ahnung was da schief läuft. Bei mir funktioniert die Wegstrecke, bei Dir kommt irgendwie Nonsens zurück. Jetzt kommt der "Hotline" Vorschlag. Lösch doch bitte das device komplett und erstell es neu. Mal sehen was dann passiert.

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

#72
Update: Noch ein Warning korrigiert

Zitat von: uniqueck am 17 Juni 2015, 22:41:17
Ich würde mir wünschen, dass man die Standardwerte beeinflußen kann, also zum Beispiel wenn keine Verspätungszeiten bekannt sind, dass dann im Reading nicht none kommt sondern ein Leerstring oder was auch immer.

Hallo,

habe jetzt folgendes umgesetzt:

dbplan-default-char
Define a string which will be displayed if no information is available. Defaultstring: "none".
When defineing "delete" as string the raeding will not be filled and is not available since an information excists
When defined "nochar" the raeding will not be filled with " "

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

uniqueck

Vielen Dank schon einmal werd es gleich testen wenn ich zu hause bin.

Gesendet von meinem GT-N7100 mit Tapatalk


JoWiemann

Hallo,

habe noch die Log Einträge unterdrück, die entstehen, wenn nur die Readings für die Informationen existieren gefüllt werden.

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