[gelöst] Problem mit uniqueID

Begonnen von andies, 15 Februar 2020, 09:17:40

Vorheriges Thema - Nächstes Thema

Wzut

Tipp : fhem.pl -> sub getUniqueId , setzt ggf uniqueId wenn nicht vorhanden.
D.h. da läuft beim einlesen was schief und so werden immer weitere Neue erzeugt,
Ggf. mal Rudi fragen
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

andies

#16
Nach dem Code in fhem.pl dürfte da in uniqueID nur eine Leerzeile sein, und zwar ganz am Anfang. Ich habe da Unmengen an Leerzeichen. Ich lösche die jetzt mal und beobachte weiter. Ich habe da eine Vermutung...


Gesendet von iPad mit Tapatalk Pro
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

andies

VOLLTREFFER. Ich kann das Problem reproduzieren. Ich löse das selber aus, wenn ich ein HTTPMOD-device benutze.

Also, ich hole mir von der BVG-Webseite Abfahrtsdaten des Buses. Das geschieht mit einem httpmod,
Internals:
   DEF        none 0
   FUUID      5e244bea-f33f-1115-57c4-19efadd8611de803
   FVERSION   98_HTTPMOD.pm:0.211410/2020-02-07
   Interval   0
   MainURL   
   ModuleVersion 3.5.22 - 7.2.2020
   NAME       BVG
   NOTIFYDEV  global
   NR         355
   NTFY_ORDER 50-BVG
   STATE      27
   TRIGGERTIME 0
   TRIGGERTIME_FMT
   TYPE       HTTPMOD
   CompiledRegexes:
   READINGS:
     2020-02-16 08:55:33   X10-1           09:22</span><br/><span class="delayOnTime">09:22</span>
     2020-02-16 08:55:33   X10-2           09:42</span>
Attributes:
   get01AlwaysNum 1
   get01Name  X10
   get01Name-01 X10-1
   get01Name-02 X10-2
   get01Name-03 X10-3
   get01RegOpt gm
   get01Regex Bus  X10<\/span>[\n]{1}<\/a>[\n]{1}\&gt;\&gt;[\n]{1}Hertzallee, Berlin[\n]{1}<br \/>[\n]{1}<span class=\"bold\">(\d\d:\d\d<\/span>.*?)<\/div>
   get01URL   https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&
   group      Info
   room       Info
   stateFormat {BVGDatenHolen();}
   timeout    30
   userattr   get01AlwaysNum get01Name get01Name-01 get01Name-02 get01Name-03 get01RegOpt get01Regex get01URL reading01RegOpt
   verbose    1
   webCmd     holen

Die Ausgabe benötigt noch
sub ReineZeitHolen($) {
  my $s = $_[0];
# wenn Verspätung angegeben, zweite Zeitangabe holen (kann delayOnTime oder delay sein)
  if ($s =~ m/delayOnTime/i) {
return substr $s, 43, 5;
  } elsif ($s =~ m/delay\"/i) {
return substr $s, 37, 5;
  } else {
    #keine Verspätung, erste Zeitangabe holen
return substr $s, 0, 5; 
  }
}


sub BVGDatenHolen() {
  my $Zeit;
 
  my $Zeit1 = ReineZeitHolen(ReadingsVal("BVG", "X10-1", "00:00</span>"));
  my $Zeit2 = ReineZeitHolen(ReadingsVal("BVG", "X10-2", "00:00</span>"));
  my $Zeit3 = ReineZeitHolen(ReadingsVal("BVG", "X10-3", "00:00</span>"));

  my $Rueckmeldung = ""; # debug: $Zeit1.$Zeit2.$Zeit3;
  my $Abstand = 14; # früheste Ankunft
  until($Abstand == 44) {
      $Zeit = POSIX::strftime("%H:%M",localtime(time+$Abstand*60));
      if (($Zeit1 eq $Zeit) or ($Zeit2 eq $Zeit) or ($Zeit3 eq $Zeit) ){
      $Rueckmeldung .= $Abstand." | ";  
  }
  $Abstand ++;
      }
  $/ = " | ";
  chomp($Rueckmeldung);
  return $Rueckmeldung;
}


Damit die Daten aktualisiert werden (ich mache das nicht automatisch, weil ich das genau einmal am Tag brauche), nutze ich
Internals:
   ALIAS      set
   DEF        set BVG holen AS deletereading BVG X10-.*;get BVG X10
   FUUID      5e244bea-f33f-1115-30ed-b344be6f8127699f
   FVERSION   98_cmdalias.pm:0.163000/2018-03-01
   NAME       BVG_helper
   NEWCMD     deletereading BVG X10-.*;get BVG X10
   NR         357
   PARAM      BVG holen
   STATE      defined
   TYPE       cmdalias
Attributes:


Da muss der Fehler liegen.
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

Otto123

ZitatALIAS      set
Für mich sieht das so aus, als ersetzt Du damit den set Befehl? :o
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

andies

Zitat von: Otto123 am 16 Februar 2020, 09:50:55
Für mich sieht das so aus, als ersetzt Du damit den set Befehl? :o
Ja, und ich glaube, ich habe mir den Code sogar von einem Deiner Beispiele abgekupfert. Ich brauche ein webcmd, damit ich klicken kann - da, dachte ich, geht nur set. Ausgelöst werden muss aber die Folge
deletereading BVG X10-.*;get BVG X10
also ein get-Befehl.
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

andies

Nächster Schritt. Der Befehl
get BVG X10
löst das Problem aus. Danach sind die Dateien nicht mehr erreichbar. Also muss ich da schauen, was dort passiert. Das ist HTTPMOD. Soll ich da mal posten?
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

viegener

Es gab ja schon mehrere Vermutungen zum Verursacher, deshalb würde ich erstmal versuchen in Deiner Installation das Problem wirklich wegzubekommen.

Ich würde folgende Vorgehensweise vorschlagen:
- Backup
- BVG device - disablen (oder temporär löschen)
- FHEM runterfahren
- uniqueID-Datei verschieben
- FHEM hochfahren
- Einträge die durch verschieben der uniqueID fehlen (ausser BVG) - wieder eintragen
- uniqueID-Datei in diesem Zustand sichern / und FHEM backup
- Jetzt beobachten ob das Problem weg ist --> dann ist es der HTTPMOD-BVG-device
- Wenn nicht hast Du zumindest einen Stand auf dem Du weiter nach der Ursache suchen kannst

Es wäre gut einen Stand zu haben an dem weiter nach der Ursache geschaut werden kann.
Kein Support über PM - Anfragen gerne im Forum - Damit auch andere profitieren und helfen können

andies

#22
So, dann habe ich mal sauber gemacht und zudem die Datei uniqueID von allen Einträgen gereinigt.

Die Einträge mit uniqueID werden durch die sub uniqueID() erzeugt, definiert in fhem.pl, Zeile 5435. Diese Funktion ist auch klar beschrieben:
ZitatgetUniqueId
$uniqueID = getUniqueId();
Die Funktion getUniqueId() gibt einen eindeutige Identifikations-String der lokalen FHEM-Installation zurück. Dieser String wird einmalig per Zufallsalgorithmus erzeugt und anschließend lokal abgespeichert. Jede FHEM-Installation besitzt einen anderen Identifikations-String. Dieser Wert wird bspw. für die Online-Statistik verwendet um die einzelnen Installation zu anonymisieren.

Rückgabewerte:

Rückgabewert   Bedeutung
$uniqueID   Eine Zeichenkette in Hexadezimaldarstellung welche pro Installation eindeutig ist.
(Dadurch wurde beim update wahrscheinlich meine Installation in der Statistik mehrfach gezählt.)

Man sieht der sub auch an, wie sie funktioniert: Ruft man sie auf, wird zuerst versucht, einen Key-Value Eintrag mit dem key "uniqueID" zu finden. Wurde der Eintrag gefunden und ist er 32 Zeichen lang, dann wird er zurückgegeben. Anderenfalls wird er neu erzeugt und in die Datei geschrieben. In meiner "sauberen" Version gab es genau einen solchen String und er war 32 Zeichen lang. Alles ok.

Wenn ich nun get BVG X10 neu einrichte und aufrufe, werden hinter die bisherigen Angaben drei neue Zeilen mit uniqueID geschrieben. Ich muss nur noch rauskriegen, wie genau das geschieht.  getUniqueId() gibt es zweimal in HTTPMOD, Zeile 1044 und Zeile 1076. Ich befürchte aber, es kommt von woanders her. Ich kann in getUniqueID() nicht nachfragen, wer das ausgelöst hat, oder?

PS Hier mal ein vollständiges Log des Aufrufes
2020.02.16 20:24:58 5: BVG: get called with X10
2020.02.16 20:24:58 5: BVG: get found option X10 in attribute get01Name
2020.02.16 20:24:58 4: BVG: get will now request X10, no optional value
2020.02.16 20:24:58 5: BVG: AddToQueue adds type get01 to URL https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&, no data, no headers, retry 0, initial queue len: 0
2020.02.16 20:24:58 5: BVG: HandleSendQueue called, qlen = 1
2020.02.16 20:24:58 4: BVG: HandleSendQueue sends get01 with timeout 30 to https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&, No Data, No Header
2020.02.16 20:24:58 5: HttpUtils url=https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&
2020.02.16 20:24:58 4: IP: reiseauskunft.bahn.de -> 3.120.84.227
2020.02.16 20:24:58 5: HttpUtils request header:
GET /bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes& HTTP/1.0
Host: reiseauskunft.bahn.de
User-Agent: fhem
Accept-Encoding: gzip,deflate

2020.02.16 20:24:58 4: https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&: HTTP response code 200
2020.02.16 20:24:58 5: HttpUtils https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&: Got data, length: 21951
2020.02.16 20:24:58 5: HttpUtils response header:
HTTP/1.1 200 OK
Content-Type: text/html; charset=ISO-8859-1
Date: Sun, 16 Feb 2020 19:24:58 GMT
Server: Apache
Set-Cookie: DB4-pb-bibe-history=Location1%3DA%3D1%40O%3DOskar-Helene-Heim%20%5BBus%20Clayallee%5D%20%28U%29%2C%20Berlin%40X%3D13270928%40Y%3D52451141%40U%3D80%40L%3D731545%40%26; expires=Wednesday, 26-Feb-2020 00:00:01 GMT; Domain=.bahn.de; Path=/; Version=1
Connection: Close
2020.02.16 20:24:58 4: BVG: Read callback: request type was get01 retry 0,
header: HTTP/1.1 200 OK
Content-Type: text/html; charset=ISO-8859-1
Date: Sun, 16 Feb 2020 19:24:58 GMT
Server: Apache
Set-Cookie: DB4-pb-bibe-history=Location1%3DA%3D1%40O%3DOskar-Helene-Heim%20%5BBus%20Clayallee%5D%20%28U%29%2C%20Berlin%40X%3D13270928%40Y%3D52451141%40U%3D80%40L%3D731545%40%26; expires=Wednesday, 26-Feb-2020 00:00:01 GMT; Domain=.bahn.de; Path=/; Version=1
Connection: Close, body length 21951
2020.02.16 20:24:58 5: BVG: Read callback: body
<?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 - Abfahrt</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="https://www.img-bahn.de/s3/prod/v/img_old/favicon.ico" />
<link rel="apple-touch-icon" type="image/x-icon" href="https://www.img-bahn.de/s3/prod/v/img_old/apple-touch-icon.png"/>
<script type="text/javascript">
digitalData = new Object();
digitalData.pageInstanceID  = "dbbahnprod_BAHN_AnkunftAbfahrtAb_de";
digitalData.version         = "1.0";
digitalData.reportSuite     = "dbbahnprod";
digitalData.numberCarts     = 0;
tmpDate                     = new Date();
digitalData.creationDate    = tmpDate.getFullYear()+"-"+((tmpDate.getMonth()<9)?"0":"")+(tmpDate.getMonth()+1).toString()+"-"+((tmpDate.getDate()<10)?"0":"")+tmpDate.getDate()+"T"+((tmpDate.getHours()<10)?"0":"")+tmpDate.getHours()+":"+((tmpDate.getMinutes()<10)?"0":"")+tmpDate.getMinutes()+":"+((tmpDate.getSeconds()<10)?"0":"")+tmpDate.getSeconds()+"+"+(tmpDate.getTimezoneOffset()/-60)+":00";
digitalData.page            = new Object();
digitalData.suchparameter   = new Object();
digitalData.user            = new Object();
digitalData.page.pageInfo   = new Object();
digitalData.page.testing    = new Object();
digitalData.page.category   = new Object();
digitalData.page.teaser     = new Object();
digitalData.page.interaktion= new Object();
digitalData.page.isError    = false;
digitalData.page.environment  = "dbbahnprod";
digitalData.page.pageInfo.pageID    = "BAHN_AnkunftAbfahrtAb_de";
digitalData.page.pageInfo.portal    = "BAHN";
digitalData.page.pageInfo.anwendung = "ASK";
digitalData.page.pageInfo.channel   = "BAHN_ASK_DEU_de";
digitalData.page.pageInfo.channelSpecific     = "";
digitalData.page.pageInfo.prozesseinstieg   = "";
digitalData.page.pageInfo.prozess           = "";
digitalData.page.pageInfo.pageName          = "BAHN_ASK_DEU_de_AnkunftAbfahrtAb";
digitalData.page.pageInfo.pageNameSpecific  = "AnkunftAbfahrtAb";
var tmp    = this.document.URL.match(/[^\?]+/);
if(tmp)
digitalData.page.pageInfo.destinationURL    = tmp[0];
else
digitalData.page.pageInfo.destinationURL    = this.document.URL;
digitalData.page.pageInfo.destinationURLParameter = new Array();
var tmp = this.document.URL.match(/[(\?|\&)]([^=]+)\=([^&#]+)/g);
if(tmp)
{
for(var i = 0; i < tmp.length; i++)
{
var tmpString = tmp[i].substring(1).split("=");
digitalData.page.pageInfo.destinationURLParameter[i] = {"name": tmpString[0] , "value": tmpString[1]};
}
}
digitalData.page.pageInfo.referringURL      = document.referrer;
digitalData.page.pageInfo.onsiteSearchTerm  = "";
digitalData.page.pageInfo.onsiteSearchResults  = 0;
digitalData.page.pageInfo.sysEnv          = "mobile";
digitalData.page.pageInfo.version           = "HAFAS 5.44.DB.R19.12.1.a";
digitalData.page.pageInfo.issueDate         = digitalData.creationDate;
digitalData.page.pageInfo.effectiveDate     = digitalData.creationDate;
digitalData.page.pageInfo.effectiveDateUnix = tmpDate.getTime();
digitalData.page.pageInfo.expiryDate        = digitalData.creationDate;
digitalData.page.pageInfo.language          = "de";
digitalData.page.pageInfo.country           = "DEU";
digitalData.page.testing.aktiv              = false;
digitalData.page.testing.anzahlVariationen  = 0;
digitalData.page.testing.variante           = new Array();
digitalData.page.category.hierLevel             = new Array();
digitalData.page.category.hierLevel.push("web");
digitalData.page.category.hierLevel.push("AnkunftAbfahrtAb");
digitalData.page.category.numberHierarchyLevels = 2;
digitalData.page.interaktion.anzahlTypen    = 0;
digitalData.page.interaktion.typ            = new Array();
digitalData.page.teaser.anzahlTeaser        = 0;
digitalData.page.teaser.teaserItem          = new Array();
digitalData.user.profile            = new Object();
digitalData.user.kundentyp     = "PK";
digitalData.user.loginstatus        = "logout";
digitalData.user.kundenstatus       = "anonym";
digitalData.user.profile.address    = new Object();
digitalData.user.profile.address.postalCode = "";
digitalData.user.profile.address.city       = "";
digitalData.user.profile.address.country    = "";
digitalData.user.profile.anrede     = "";
digitalData.user.profile.bcStatus           = "";
digitalData.user.profile.hash               = "";
digitalData.user.profile.nlHash             = "";
digitalData.user.profile.isLSV              = 0;
</script>
<link rel="stylesheet" type="text/css" href="https://www.img-bahn.de/s3/prod/v/cms/mobile/css/bahn_mobile.css" />
<link rel="stylesheet" type="text/css" href="https://www.img-bahn.de/s3/prod/v/css_old/hafas_mobile.css" />
<link rel="stylesheet" type="text/css" href="https://www.img-bahn.de/s3/prod/v/cms/mobile/css/notouch.css" />
<link rel="stylesheet" type="text/css" href="https://www.img-bahn.de/s3/prod/v/css_old/hafas_notouch.css" />
</head>
<body >
<div id="doc" >
<div id="header">
<div class="logo">
<img src="https://www.img-bahn.de/s3/prod/v/img_old/ua_xhtml/db_em_rgb_28px.png" width="40" height="28" alt="DB Bahn" />
</div>
<div id="branding">
<div class="bar"> </div>
</div>
</div>
<div id="content" class="">
<h1>
<img class="prio1Icon" src="https://www.img-bahn.de/s3/prod/v/img_old/ua_xhtml/an_abfahrt_grau_22x22.gif" height="22" width="22" alt="" />Abfahrt
</h1>
<div class="inputtbl">
<div class="fline stdpadding">
<span class="bold">
Oskar-Helene-Heim [Bus Clayallee] (U), Berlin - Aktuell
</span>
<br />
Abfahrt 20:24
Uhr, 16.02.20
</div>
<ul class="neben">
<li>
<a class="noBG" href="https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?ld=42221&protocol=https:&rt=1&use_realtime_filter=1&si=731545&bt=dep&ti=20:24%2D60&pt=20:24&p=1111111111&date=16.02.20&mx=25&start=yes&" class="arrowlink arrowlinktop"><img class="smIcon" src="https://www.img-bahn.de/s3/prod/v/img_old/arrow_red_top.gif" alt="" style="vertical-align: middle;" height="11" width="11" /> Früher</a>
</li>
</ul>
<div class="clicktable">
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/472737/1034478/625186/155014/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:26&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  115</span>
</a>
>>
Mansfelder Str./Barstr., Berlin
<br />
<span class="bold">20:26</span><br/><span class="delayOnTime">20:26</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/18828/1265614/167814/77631/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:26&station_evaId=728766&station_type=dep&">
<span class="bold">Bus  110</span>
</a>
>>
Hertzallee, Berlin
<br />
<span class="bold">20:26</span><br/><span class="delayOnTime">20:26</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/601566/1121430/892206/245641/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:27&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Krumme Lanke (U), Berlin
<br />
<span class="bold">20:27</span><br/><span class="delayOnTime">20:27</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/457917/1071672/53702/125790/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:29&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Warschauer Str. (S+U), Berlin
<br />
<span class="bold">20:29</span><br/><span class="delayOnTime">20:29</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/358371/1367890/828214/294650/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:29&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  115</span>
</a>
>>
Neuruppiner Str., Berlin
<br />
<span class="bold">20:29</span><br/><span class="delayOnTime">20:29</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/835647/1246573/589854/16378/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:33&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  X10</span>
</a>
>>
Rammrath-Brücke, Teltow
<br />
<span class="bold">20:33</span><br/><span class="delayOnTime">20:33</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/598440/1133798/970154/285598/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:34&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  285</span>
</a>
>>
Rathaus Steglitz [5-8] (S+U), Berlin
<br />
<span class="bold">20:34</span><br/><span class="delayOnTime">20:34</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/777459/1193611/250256/134025/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:36&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  285</span>
</a>
>>
Am Waldfriedhof, Berlin
<br />
<span class="bold">20:36</span><br/><span class="delayOnTime">20:36</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/263493/1008739/968482/396471/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:37&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Krumme Lanke (U), Berlin
<br />
<span class="bold">20:37</span><br/><span class="delayOnTime">20:38</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/338442/1031847/68772/78431/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:39&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Warschauer Str. (S+U), Berlin
<br />
<span class="bold">20:39</span><br/><span class="delayOnTime">20:39</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/831045/1245051/14072/269979/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:42&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  X10</span>
</a>
>>
Hertzallee, Berlin
<br />
<span class="bold">20:42</span><br/><span class="delayOnTime">20:42</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/6027/877504/463894/229938/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:46&station_evaId=728766&station_type=dep&">
<span class="bold">Bus  110</span>
</a>
>>
Hertzallee, Berlin
<br />
<span class="bold">20:46</span><br/><span class="delayOnTime">20:46</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/320373/983690/217064/1742/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:46&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  115</span>
</a>
>>
Mansfelder Str./Barstr., Berlin
<br />
<span class="bold">20:46</span><br/><span class="delayOnTime">20:46</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/833022/1199030/4414/275467/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:47&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Krumme Lanke (U), Berlin
<br />
<span class="bold">20:47</span><br/><span class="delayOnTime">20:47</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/698499/1151437/669850/102092/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:49&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Warschauer Str. (S+U), Berlin
<br />
<span class="bold">20:49</span><br/><span class="delayOnTime">20:49</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/959298/1568199/785092/72781/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:49&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  115</span>
</a>
>>
Neuruppiner Str., Berlin
<br />
<span class="bold">20:49</span><br/><span class="delayOnTime">20:49</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/976512/1293140/347224/151892/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:53&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  X10</span>
</a>
>>
Andréezeile, Berlin
<br />
<span class="bold">20:53</span><br/><span class="delayOnTime">20:53</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/961860/1254939/386896/127172/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:54&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  285</span>
</a>
>>
Rathaus Steglitz [5-8] (S+U), Berlin
<br />
<span class="bold">20:54</span><br/><span class="delayOnTime">20:54</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/355728/1053034/283760/23305/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:56&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  285</span>
</a>
>>
Am Waldfriedhof, Berlin
<br />
<span class="bold">20:56</span><br/><span class="delayOnTime">20:56</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/195429/986499/172682/21199/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:57&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Krumme Lanke (U), Berlin
<br />
<span class="bold">20:57</span><br/><span class="delayOnTime">20:57</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/699087/1151633/49272/208394/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=20:59&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Warschauer Str. (S+U), Berlin
<br />
<span class="bold">20:59</span><br/><span class="delayOnTime">20:59</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/678522/1194210/229402/111474/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=21:02&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  X10</span>
</a>
>>
Hertzallee, Berlin
<br />
<span class="bold">21:02</span><br/><span class="delayOnTime">21:02</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/27648/1268249/973410/477489/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=21:05&station_evaId=728766&station_type=dep&">
<span class="bold">Bus  110</span>
</a>
>>
Hertzallee, Berlin
<br />
<span class="bold">21:05</span><br/><span class="delayOnTime">21:05</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/215079/948592/195146/25882/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=21:06&station_evaId=731545&station_type=dep&">
<span class="bold">Bus  115</span>
</a>
>>
Mansfelder Str./Barstr., Berlin
<br />
<span class="bold">21:06</span><br/><span class="delayOnTime">21:06</span></div>
<div class="sqdetailsDep trow">
<a href="https://reiseauskunft.bahn.de/bin/traininfo.exe/dox/408543/1057537/733016/230329/80?si=731545&bt=dep&ti=20:24&pt=20:24&p=1111111111&date_bhftafel=16.02.20&max=25&rt=1&&date=16.02.20&time=21:07&station_evaId=731527&station_type=dep&">
<span class="bold">U      3</span>
</a>
>>
Krumme Lanke (U), Berlin
<br />
<span class="bold">21:07</span><br/><span class="delayOnTime">21:07</span></div>
</div>
<ul class="neben">
<li>
<a class="noBG" href="https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&ti=21:07%2B1&p=1111111111&date=16.02.20&max=25&rt=1&use_realtime_filter=1&start=yes&"><img class="smIcon" src="https://www.img-bahn.de/s3/prod/v/img_old/arrow_red_bottom.gif" alt="" style="vertical-align: middle;" height="11" width="11" /> Später</a>
</li>
<li>
<a href="https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=arr&ti=20:24&p=1111111111&max=25&rt=1&use_realtime_filter=1&date=16.02.20&start=yes&">Ankunft</a>
</li>
</ul>
<div class="formular">
<form action="https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?" method="post" style="display:inline">
<div class="bline bggrey">
<input type="submit" class="nebenbtn" name="rt" style="margin-left: 6px;" value="Zurück" />
</div>
</form>
</div>
</div>
<script type="text/javascript">
digitalData.suchparameter.start = new Object();
if(typeof(tmpDiv) == "undefined")
tmpDiv = document.createElement("div");
tmpDiv.innerHTML = "";
digitalData.suchparameter.start.name = tmpDiv.innerHTML;
digitalData.suchparameter.start.eBhf = "731545";
digitalData.suchparameter.start.typ = "Haltestelle";
digitalData.suchparameter.reisedatumHin = "2020-02-16";
digitalData.suchparameter.reisezeitHinVon = "20:24";
digitalData.suchparameter.hIstAnkunft = "0";
digitalData.suchparameter.reiseparameterH = new Array();
var reiseprodukte = new Object();
reiseprodukte.ICE = 1;
reiseprodukte.IC_EC = 1;
reiseprodukte.IR = 1;
reiseprodukte.RE_RB = 1;
reiseprodukte.S = 1;
reiseprodukte.Bus = 1;
reiseprodukte.Schiff = 1;
reiseprodukte.U = 1;
reiseprodukte.Tram = 1;
reiseprodukte.AST = 1;
digitalData.suchparameter.reiseparameterH.push({reiseprodukte: reiseprodukte});
</script>
</div>
<div id="footer" style="">
<div class="footer-list-container">
<div class="footer-left">
<ul class="footer">
<li class="firstitem"><a class="footerlinks" href="">Startseite</a></li>
<li class="">
<a class="footerlinks" href="https://fahrkarten.bahn.de/mobile/st/st.post?">Mobiles Reiseportal</a>
</li>
</ul>
</div>
<div class="footer-right">
<ul class="footer">
<li class="firstitem">
<a class="footerlinks" href="http://www.bahn.de/m/view/de/home/kontakt/impressum.shtml">Impressum</a>
</li>
<li>
<a class="footerlinks" href="" target="_blank">Datenschutz</a>
</li>
</ul>
</div>
</div>
</div>
<p class="webtrack">
<img src="https://st.bahn.de/b/ss/dbbahnprod/5/475643066?AQB=1&gn=MOBI_ASK_DEU_de_AnkunftAbfahrtAb&ch=MOBI_ASK_DEU_de&ev=event48,event17&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>

2020.02.16 20:24:58 4: BVG: Read found charset header and set decoding to ISO-8859-1 (bodyDecode was set to auto)
2020.02.16 20:24:58 4: BVG: Read is decoding the buffer as ISO-8859-1
2020.02.16 20:24:58 5: BVG: GetCookies is looking for Cookies
2020.02.16 20:24:58 4: BVG: GetCookies parsed Cookie: DB4-pb-bibe-history Wert Location1%3DA%3D1%40O%3DOskar-Helene-Heim%20%5BBus%20Clayallee%5D%20%28U%29%2C%20Berlin%40X%3D13270928%40Y%3D52451141%40U%3D80%40L%3D731545%40%26 Rest expires=Wednesday, 26-Feb-2020 00:00:01 GMT; Domain=.bahn.de; Path=/; Version=1
2020.02.16 20:24:58 5: BVG: ExtractSid called, context get, num 01
2020.02.16 20:24:58 4: BVG: checking for redirects, code=200, ignore=0
2020.02.16 20:24:58 4: BVG: no redirects to handle
2020.02.16 20:24:58 5: BVG: CheckAuth decided no authentication required
2020.02.16 20:24:58 5: BVG: PrecompileRegexAttr precompiled get01Regex /Bus  X10<\/span>[\n]{1}<\/a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br \/>[\n]{1}<span class=\"bold\">(\d\d:\d\d<\/span>.*?)<\/div>/m to (?^m:Bus  X10</span>[\n]{1}</a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br />[\n]{1}<span class=\"bold\">(\d\d:\d\d</span>.*?)</div>)
2020.02.16 20:24:58 5: BVG: ExtractReading X10 with regex /(?^m:Bus  X10</span>[\n]{1}</a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br />[\n]{1}<span class=\"bold\">(\d\d:\d\d</span>.*?)</div>)/g ...
2020.02.16 20:24:58 5: BVG: 2 matches, matchlist = 20:42</span><br/><span class="delayOnTime">20:42</span>,21:02</span><br/><span class="delayOnTime">21:02</span>
2020.02.16 20:24:58 5: BVG: ExtractReading for get01-1 sets X10-1 to 20:42</span><br/><span class="delayOnTime">20:42</span>
2020.02.16 20:24:58 5: BVG: ExtractReading for get01-2 sets X10-2 to 21:02</span><br/><span class="delayOnTime">21:02</span>
2020.02.16 20:24:58 5: BVG: UpdateReadingList created list of reading.* nums to parse during getUpdate as
2020.02.16 20:24:58 4: BVG: Read response matched 2, unmatch 0 Reading(s)
2020.02.16 20:24:58 5: BVG: Read response to get01 matched X10-1 X10-2
2020.02.16 20:24:58 5: BVG: HandleSendQueue called, qlen = 0
2020.02.16 20:25:30 1: TelegramBot_readToken: Error: No API token in file


<edit> Und hier mal ein Log mit globale-verbose-5, wobei ich den body des BVG-Aufrufes weggelassen habe, der steht ja genau so oben drin:
2020.02.16 21:19:45 4: WEB_192.168.2.18_64692 POST /fhem?cmd.BVG=set%20BVG%20holen&XHR=1&fw_id=672; BUFLEN:0
2020.02.16 21:19:45 5: Cmd: >set BVG holen<
2020.02.16 21:19:45 5: Cmd: >deletereading BVG X10-.*<
2020.02.16 21:19:45 5: Cmd: >get BVG X10<
2020.02.16 21:19:45 5: BVG: get called with X10
2020.02.16 21:19:45 5: BVG: get found option X10 in attribute get01Name
2020.02.16 21:19:45 4: BVG: get will now request X10, no optional value
2020.02.16 21:19:45 5: BVG: AddToQueue adds type get01 to URL https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&, no data, no headers, retry 0, initial queue len: 0
2020.02.16 21:19:45 5: BVG: HandleSendQueue called, qlen = 1
2020.02.16 21:19:45 4: BVG: HandleSendQueue sends get01 with timeout 30 to https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&, No Data, No Header
2020.02.16 21:19:45 5: HttpUtils url=https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&
2020.02.16 21:19:45 5: DNS QUERY 7072010000010000000000000d72656973656175736b756e6674046261686e0264650000010001
2020.02.16 21:19:45 4: WEB: /fhem?cmd.BVG=set%20BVG%20holen&XHR=1&fw_id=672 / RL:87 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate

2020.02.16 21:19:45 5: DNS ANSWER 135:7072818000010006000000000d72656973656175736b756e6674046261686e0264650000010001c00c0001000100000014000412c2b31ec00c00010001000000140004037854e3c00c00010001000000140004037a1450c00c0001000100000014000403784029c00c00010001000000140004365d8c7ec00c0001000100000014000412c268eb
2020.02.16 21:19:45 4: DNS result for reiseauskunft.bahn.de: 18.194.179.30, ttl:20
2020.02.16 21:19:45 4: IP: reiseauskunft.bahn.de -> 18.194.179.30
2020.02.16 21:19:45 5: HttpUtils request header:
GET /bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes& HTTP/1.0
Host: reiseauskunft.bahn.de
User-Agent: fhem
Accept-Encoding: gzip,deflate

2020.02.16 21:19:45 4: WEB_192.168.2.18_64691 GET /fhem/pgm2/images/ui-bg_glass_100_fdf5ce_1x400.png; BUFLEN:0
2020.02.16 21:19:45 4: WEB_192.168.2.18_64691 => 304 Not Modified
2020.02.16 21:19:45 4: WEB_192.168.2.18_64688 GET /fhem/pgm2/images/ui-bg_glass_100_f6f6f6_1x400.png; BUFLEN:0
2020.02.16 21:19:45 4: WEB_192.168.2.18_64688 => 304 Not Modified
2020.02.16 21:19:45 4: WEB_192.168.2.18_64696 GET /fhem/pgm2/images/ui-bg_diagonals-thick_20_666666_40x40.png; BUFLEN:0
2020.02.16 21:19:45 4: WEB_192.168.2.18_64696 => 304 Not Modified
2020.02.16 21:19:45 4: WEB_192.168.2.18_64692 GET /fhem/pgm2/images/ui-icons_222222_256x240.png; BUFLEN:0
2020.02.16 21:19:45 4: WEB_192.168.2.18_64692 => 304 Not Modified
2020.02.16 21:19:45 4: https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&: HTTP response code 200
2020.02.16 21:19:45 5: HttpUtils <entfernt>
Connection: Close, body length 21714
2020.02.16 21:19:45 5: BVG: Read callback: body
<entfernt>
2020.02.16 21:19:45 4: BVG: Read found charset header and set decoding to ISO-8859-1 (bodyDecode was set to auto)
2020.02.16 21:19:45 4: BVG: Read is decoding the buffer as ISO-8859-1
2020.02.16 21:19:45 5: BVG: GetCookies is looking for Cookies
2020.02.16 21:19:45 4: BVG: GetCookies parsed Cookie: DB4-pb-bibe-history Wert Location1%3DA%3D1%40O%3DOskar-Helene-Heim%20%5BBus%20Clayallee%5D%20%28U%29%2C%20Berlin%40X%3D13270928%40Y%3D52451141%40U%3D80%40L%3D731545%40%26 Rest expires=Wednesday, 26-Feb-2020 00:00:01 GMT; Domain=.bahn.de; Path=/; Version=1
2020.02.16 21:19:45 5: BVG: ExtractSid called, context get, num 01
2020.02.16 21:19:45 4: BVG: checking for redirects, code=200, ignore=0
2020.02.16 21:19:45 4: BVG: no redirects to handle
2020.02.16 21:19:45 5: BVG: CheckAuth decided no authentication required
2020.02.16 21:19:45 5: BVG: PrecompileRegexAttr precompiled get01Regex /Bus  X10<\/span>[\n]{1}<\/a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br \/>[\n]{1}<span class=\"bold\">(\d\d:\d\d<\/span>.*?)<\/div>/m to (?^m:Bus  X10</span>[\n]{1}</a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br />[\n]{1}<span class=\"bold\">(\d\d:\d\d</span>.*?)</div>)
2020.02.16 21:19:45 5: BVG: ExtractReading X10 with regex /(?^m:Bus  X10</span>[\n]{1}</a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br />[\n]{1}<span class=\"bold\">(\d\d:\d\d</span>.*?)</div>)/g ...
2020.02.16 21:19:45 5: BVG: 1 matches, matchlist = 21:22</span><br/><span class="delayOnTime">21:22</span>
2020.02.16 21:19:45 5: BVG: ExtractReading for get01-1 sets X10-1 to 21:22</span><br/><span class="delayOnTime">21:22</span>
2020.02.16 21:19:45 5: BVG: UpdateReadingList created list of reading.* nums to parse during getUpdate as
2020.02.16 21:19:45 4: BVG: Read response matched 1, unmatch 0 Reading(s)
2020.02.16 21:19:45 5: BVG: Read response to get01 matched X10-1
2020.02.16 21:19:45 5: Starting notify loop for BVG, 1 event(s), first is X10-1: 21:22</span><br/><span class="delayOnTime">21:22</span>
2020.02.16 21:19:45 5: createNotifyHash
2020.02.16 21:19:45 5: End notify loop for BVG
2020.02.16 21:19:45 5: BVG: HandleSendQueue called, qlen = 0
2020.02.16 21:19:46 4:   Mosquitto_192.168.2.48_12501 shellyplug-s-266FA5 PUBLISH shellies/DVES_266FA5/relay/0/power:13.13
2020.02.16 21:19:46 5: Mosquitto: dispatch autocreate=simple\000shellyplug_s_266FA5\000shellies/DVES_266FA5/relay/0/power\00013.13
2020.02.16 21:19:46 4: MQTT2_DEVICE_Parse: ShellyLichterkette shellies/DVES_266FA5/relay/0/power => relay_0_power
2020.02.16 21:19:46 5: Starting notify loop for ShellyLichterkette, 1 event(s), first is relay_0_power: 13.13
2020.02.16 21:19:46 5: End notify loop for ShellyLichterkette
2020.02.16 21:19:46 4:   Mosquitto_192.168.2.48_12501 shellyplug-s-266FA5 PUBLISH shellies/DVES_266FA5/relay/0/energy:50355
2020.02.16 21:19:46 5: Mosquitto: dispatch autocreate=simple\000shellyplug_s_266FA5\000shellies/DVES_266FA5/relay/0/energy\00050355
2020.02.16 21:19:46 4: MQTT2_DEVICE_Parse: ShellyLichterkette shellies/DVES_266FA5/relay/0/energy => relay_0_energy
2020.02.16 21:19:46 5: Starting notify loop for ShellyLichterkette, 1 event(s), first is relay_0_energy: 50355
2020.02.16 21:19:46 5: End notify loop for ShellyLichterkette
2020.02.16 21:19:46 4:   Mosquitto_192.168.2.48_12501 shellyplug-s-266FA5 PUBLISH shellies/DVES_266FA5/relay/0:on
2020.02.16 21:19:46 5: Mosquitto: dispatch autocreate=simple\000shellyplug_s_266FA5\000shellies/DVES_266FA5/relay/0\000on
2020.02.16 21:19:46 4: MQTT2_DEVICE_Parse: ShellyLichterkette shellies/DVES_266FA5/relay/0 => state
2020.02.16 21:19:46 4: MQTT2_DEVICE_Parse: ShellyLichterkette shellies/DVES_266FA5/relay/0 => relay0
2020.02.16 21:19:46 5: Starting notify loop for ShellyLichterkette, 2 event(s), first is on
2020.02.16 21:19:46 5: End notify loop for ShellyLichterkette
2020.02.16 21:19:46 4:   Mosquitto_192.168.2.48_12501 shellyplug-s-266FA5 PUBLISH shellies/DVES_266FA5/temperature:23.50
2020.02.16 21:19:46 5: Mosquitto: dispatch autocreate=simple\000shellyplug_s_266FA5\000shellies/DVES_266FA5/temperature\00023.50
2020.02.16 21:19:46 4: MQTT2_DEVICE_Parse: ShellyLichterkette shellies/DVES_266FA5/temperature => temperature
2020.02.16 21:19:46 5: Starting notify loop for ShellyLichterkette, 1 event(s), first is temperature: 23.50
2020.02.16 21:19:46 5: End notify loop for ShellyLichterkette
2020.02.16 21:19:46 4:   Mosquitto_192.168.2.48_12501 shellyplug-s-266FA5 PUBLISH shellies/DVES_266FA5/temperature_f:74.31
2020.02.16 21:19:46 5: Mosquitto: dispatch autocreate=simple\000shellyplug_s_266FA5\000shellies/DVES_266FA5/temperature_f\00074.31
2020.02.16 21:19:46 4: MQTT2_DEVICE_Parse: ShellyLichterkette shellies/DVES_266FA5/temperature_f => temperature_f
2020.02.16 21:19:46 5: Starting notify loop for ShellyLichterkette, 1 event(s), first is temperature_f: 74.31
2020.02.16 21:19:46 5: End notify loop for ShellyLichterkette
2020.02.16 21:19:46 4:   Mosquitto_192.168.2.48_12501 shellyplug-s-266FA5 PUBLISH shellies/DVES_266FA5/overtemperature:0
2020.02.16 21:19:46 5: Mosquitto: dispatch autocreate=simple\000shellyplug_s_266FA5\000shellies/DVES_266FA5/overtemperature\0000
2020.02.16 21:19:46 4: MQTT2_DEVICE_Parse: ShellyLichterkette shellies/DVES_266FA5/overtemperature => overtemperature
2020.02.16 21:19:46 5: Starting notify loop for ShellyLichterkette, 1 event(s), first is overtemperature: 0
2020.02.16 21:19:46 5: End notify loop for ShellyLichterkette
2020.02.16 21:19:46 4:   Mosquitto_192.168.2.11_59561 DVES_90D6A3 PINGREQ
2020.02.16 21:19:47 4: WEB_192.168.2.18_64692 GET /fhem/pgm2/images/ui-bg_glass_65_ffffff_1x400.png; BUFLEN:0
2020.02.16 21:19:47 4: WEB_192.168.2.18_64692 => 304 Not Modified
2020.02.16 21:19:48 4:   Mosquitto_192.168.2.40_23764 DVES_12CB54 PINGREQ
2020.02.16 21:19:48 4: WEB_192.168.2.18_64692 GET /fhem?room=Info; BUFLEN:0 <<<<< AB HIER KOMMT DAS PROBLEM
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 1: ./www/images/openautomation/phone_call_end_out.svg is not useable
2020.02.16 21:19:49 4: WEB: /fhem?room=Info / RL:4407 / text/html; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate

2020.02.16 21:19:49 4: Connection closed for WEB_192.168.2.18_64693: EOF
2020.02.16 21:19:49 4: WEB_192.168.2.18_64692 GET /fhem/pgm2/jquery-ui.min.css; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64692 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64696 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64696 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64691 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64691 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64688 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64688 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 GET /fhem/codemirror/fhem_codemirror.js; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64692 GET /fhem/pgm2/doif.js; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64692 => 304 Not Modified
2020.02.16 21:19:49 4: Connection accepted from WEB_192.168.2.18_64697
2020.02.16 21:19:49 4: WEB_192.168.2.18_64697 GET /fhem/pgm2/fhemweb_readingsGroup.js; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64697 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64692 GET /fhem/images/default/icoSchalter.png; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64692 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 GET /fhem/images/default/icoInfo.png; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64697 GET /fhem/pgm2/defaultCommon.css; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64697 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64688 GET /fhem/pgm2/style.css; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64688 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64688 GET /fhem/images/default/icoGrafiken.png; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64688 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64697 GET /fhem/pgm2/dashboard_style.css; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64697 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 GET /fhem/images/default/icoKameras.png; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 GET /fhem/images/default/icoWetter.png; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 GET /fhem/images/default/icoEverything.png; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 GET /fhem/images/default/fhemicon.png; BUFLEN:0
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 => 304 Not Modified
2020.02.16 21:19:49 4: WEB_192.168.2.18_64687 GET /fhem/icons/favicon; BUFLEN:0
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

frank

du kannst zb logausgaben ins httpmod modul einfügen, um zu sehen, wann welcher funktionsaufruf erfolgt.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

andies

Zitat von: frank am 16 Februar 2020, 22:10:29
du kannst zb logausgaben ins httpmod modul einfügen, um zu sehen, wann welcher funktionsaufruf erfolgt.
Hatte ich schon. Insbesondere habe ich nach jedem setkeyValue und jedem getKeyValue (gibt aber nur jeweils eines) entsprechende Log3 eingetragen, die Datei HTTPMOD neu geladen - und dennoch erschienen die Logeinträge nicht in dem Logfile. Das ist doch merkwürdig.

Wie gesagt: deshalb habe ich meine Installation vor etwa zwei Wochen  komplett neu aufgesetzt?! Ich überlege jetzt, ob ich in fhem.pn Logeinträge einfüge (etwa bei getUniqueId() zB). Aber da bekomme ich ja nicht mit, welches Modul das aufruft.


Gesendet von iPad mit Tapatalk Pro
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

betateilchen

poste mal bitte die gesamte Definition Deines BVG devices.

Und wie bearbeitest Du eigentlich die Datei, in der die uniqueId gespeichert werden?
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

andies

Internals:
   DEF        none 0
   FUUID      5e49a647-f33f-1115-4384-e62b907fd666729e
   FVERSION   98_HTTPMOD.pm:0.211410/2020-02-07
   Interval   0
   MainURL   
   ModuleVersion 3.5.22 - 7.2.2020
   NAME       BVG
   NOTIFYDEV  global
   NR         386
   NTFY_ORDER 50-BVG
   STATE      ???
   TRIGGERTIME 0
   TRIGGERTIME_FMT
   TYPE       HTTPMOD
   CompiledRegexes:
Attributes:
   get01AlwaysNum 1
   get01Name  X10
   get01Name-01 X10-1
   get01Name-02 X10-2
   get01Name-03 X10-3
   get01RegOpt gm
   get01Regex Bus  X10<\/span>[\n]{1}<\/a>[\n]{1}\&gt;\&gt;[\n]{1}Hertzallee, Berlin[\n]{1}<br \/>[\n]{1}<span class=\"bold\">(\d\d:\d\d<\/span>.*?)<\/div>
   get01URL   https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&
   group      Info
   room       Info
   stateFormat {BVGDatenHolen();}
   timeout    30
   userattr   get01AlwaysNum get01Name get01Name-01 get01Name-02 get01Name-03 get01RegOpt get01Regex get01URL reading01RegOpt
   webCmd     holen

sowie
defmod BVG HTTPMOD none 0
attr BVG userattr get01AlwaysNum get01Name get01Name-01 get01Name-02 get01Name-03 get01RegOpt get01Regex get01URL reading01RegOpt
attr BVG get01AlwaysNum 1
attr BVG get01Name X10
attr BVG get01Name-01 X10-1
attr BVG get01Name-02 X10-2
attr BVG get01Name-03 X10-3
attr BVG get01RegOpt gm
attr BVG get01Regex Bus  X10<\/span>[\n]{1}<\/a>[\n]{1}\&gt;;\&gt;;[\n]{1}Hertzallee, Berlin[\n]{1}<br \/>[\n]{1}<span class=\"bold\">(\d\d:\d\d<\/span>.*?)<\/div>
attr BVG get01URL https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&
attr BVG group Info
attr BVG room Info
attr BVG stateFormat {BVGDatenHolen();;}
attr BVG timeout 30
attr BVG webCmd holen





Gesendet von iPad mit Tapatalk Pro
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

andies

PS


####################################
#
# wird von BVG verwendet
#
####################################

sub ReineZeitHolen($) {
  my $s = $_[0];
# wenn Verspätung angegeben, zweite Zeitangabe holen (kann delayOnTime oder delay sein)
  if ($s =~ m/delayOnTime/i) {
return substr $s, 43, 5;
  } elsif ($s =~ m/delay\"/i) {
return substr $s, 37, 5;
  } else {
    #keine Verspätung, erste Zeitangabe holen
return substr $s, 0, 5; 
  }
}


sub BVGDatenHolen() {
  my $Zeit;
 
  my $Zeit1 = ReineZeitHolen(ReadingsVal("BVG", "X10-1", "00:00</span>"));
  my $Zeit2 = ReineZeitHolen(ReadingsVal("BVG", "X10-2", "00:00</span>"));
  my $Zeit3 = ReineZeitHolen(ReadingsVal("BVG", "X10-3", "00:00</span>"));

  my $Rueckmeldung = ""; # debug: $Zeit1.$Zeit2.$Zeit3;
  my $Abstand = 14; # früheste Ankunft
  until($Abstand == 44) {
      $Zeit = POSIX::strftime("%H:%M",localtime(time+$Abstand*60));
      if (($Zeit1 eq $Zeit) or ($Zeit2 eq $Zeit) or ($Zeit3 eq $Zeit) ){
      $Rueckmeldung .= $Abstand." | ";  
  }
  $Abstand ++;
      }
  $/ = " | ";
  chomp($Rueckmeldung);
  return $Rueckmeldung;
}



Gesendet von iPad mit Tapatalk Pro
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

betateilchen

#28
So, ich habe das jetzt mal nachgestellt (mit Ausnahme des cmdalias)


  • Bei mir werden keine mehrfachen uniqueID geschrieben
  • Bei mir werden bei "get BVG X10" keine Werte in Readings geschrieben


2020.02.16 22:33:48 4: BVG: Read found charset header and set decoding to ISO-8859-1 (bodyDecode was set to auto)
2020.02.16 22:33:48 4: BVG: Read is decoding the buffer as ISO-8859-1
2020.02.16 22:33:48 5: BVG: GetCookies is looking for Cookies
2020.02.16 22:33:48 4: BVG: GetCookies parsed Cookie: DB4-pb-bibe-history Wert Location1%3DA%3D1%40O%3DOskar-Helene-Heim%20%5BBus%20Clayallee%5D%20%28U%29%2C%20Berlin%40X%3D13270928%40Y%3D52451141%40U%3D80%40L%3D731545%40%26 Rest expires=Wednesday, 26-Feb-2020 00:00:01 GMT; Domain=.bahn.de; Path=/; Version=1
2020.02.16 22:33:48 5: BVG: ExtractSid called, context get, num 01
2020.02.16 22:33:48 4: BVG: checking for redirects, code=200, ignore=0
2020.02.16 22:33:48 4: BVG: no redirects to handle
2020.02.16 22:33:48 5: BVG: CheckAuth decided no authentication required
2020.02.16 22:33:48 5: BVG: GetRegex found precompiled Regex for get01 as (?^m:Bus  X10</span>[\n]{1}</a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br />[\n]{1}<span class=\"bold\">(\d\d:\d\d</span>.*?)</div>)
2020.02.16 22:33:48 5: BVG: ExtractReading X10 with regex /(?^m:Bus  X10</span>[\n]{1}</a>[\n]{1}\>\>[\n]{1}Hertzallee, Berlin[\n]{1}<br />[\n]{1}<span class=\"bold\">(\d\d:\d\d</span>.*?)</div>)/g ...
2020.02.16 22:33:48 5: BVG: ExtractReading X10 did not match
2020.02.16 22:33:48 4: BVG: Read response to get01 didn't match any Reading
2020.02.16 22:33:48 5: BVG: HandleSendQueue called, qlen = 0


Daraus ergibt sich für mich, dass es erstmal nicht an HTTPMOD liegt.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

viegener

@andies: Ich meinte es Ernst damit die Datei uniqueID zu verschieben - Ich würde zur Sicherheit die Datei nicht "reinigen" sondern von FHEM (und nur von FHEM bearbeiten lassen). Wenn ich das richtig erinnere ist trotz Nueaufbau ja noch die alte uniqueID-Datei aus der alten Installation in der neuen Installation - oder habe ich das falsch in Erinnerung


Kein Support über PM - Anfragen gerne im Forum - Damit auch andere profitieren und helfen können