diff --git a/fhem/FHEM/98_SVG.pm b/fhem/FHEM/98_SVG.pm index 0cfa09778..1a588cf35 100644 --- a/fhem/FHEM/98_SVG.pm +++ b/fhem/FHEM/98_SVG.pm @@ -979,6 +979,8 @@ SVG_calcOffsets($$) } $fo = AttrVal( $wl, "fixedoffset", undef); + $FW_pos{off} = 0 if(!defined($FW_pos{off})); + $fo = AnalyzePerlCommand(undef,$1) if($fo && $fo =~ m/^{(.*)}$/); #134615 } my $off = 0; @@ -2677,7 +2679,10 @@ plotAsPng(@)
  • fixedoffset <offset>
    Set a fixed offset for the plot. The resolution is the currently - chosen zoom-level. + chosen zoom-level.
    + Is evaluated as a perl expression, if enclosed in {}. If the current + resolution is day, fixedoffset with {$FW_pos{off}-1} will show the data + from the day before the current selection.

  • @@ -2949,6 +2954,9 @@ plotAsPng(@)
  • fixedoffset <offset>
    Verschiebt den Plot-Offset um einen festen Wert, die Einheit hängt vom aktuellen Zoom-Level ab. + Wird als Perl-Ausdruck ausgewertet, falls der Wert in {} eingeschlossen + ist. Falls die aktuelle Auflösung Tag ist, dann zeigt + {$FW_pos{off}-1} den Tag vor den aktuell gewählten an.