diff --git a/FHEM/01_FHEMWEB.pm b/FHEM/01_FHEMWEB.pm index 499833a03..5c6966fd8 100755 --- a/FHEM/01_FHEMWEB.pm +++ b/FHEM/01_FHEMWEB.pm @@ -123,7 +123,7 @@ FHEMWEB_Initialize($) "plotmode:gnuplot,gnuplot-scroll,SVG plotsize refresh " . "touchpad smallscreen plotfork basicAuth basicAuthMsg ". "stylesheetPrefix iconpath hiddenroom HTTPS longpoll:1,0 ". - "redirectCmds:0,1 allowfrom "; + "redirectCmds:0,1 reverseLogs:0,1 allowfrom "; ############### # Initialize internal structures @@ -1193,8 +1193,10 @@ FW_logWrapper($) FW_pO "
$path: $!
"; return; } + + my $reverseLogs = AttrVal($FW_wname, "reverseLogs", 0); binmode (FH); # necessary for Windows - my $cnt = join("", ); + my $cnt = join("", $reverseLogs ? reverse : ); close(FH); $cnt =~ s//>/g; diff --git a/docs/commandref.html b/docs/commandref.html index 4a88060f5..4b3ae0823 100644 --- a/docs/commandref.html +++ b/docs/commandref.html @@ -9641,6 +9641,14 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK.
You need to define an RFXtrx433
+ +
  • reverseLogs
    + Display the lines from the logfile in a reversed order, newest on the + top, so that you don.t have to scroll down. Default is disabled / 0, as + it consumes less (half?) memory. +
  • +
    + See also room and group attributes.