diff --git a/fhem/CHANGED b/fhem/CHANGED index 43986162a..806d44f51 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 02_RSS: height/width for rect layout directive - change: 34_ESPEasy: performance tuning, some fixes - feature: 74_Unifi.pm: added get poeMode and set poeState commands added _utilization and _poePower readings diff --git a/fhem/FHEM/02_RSS.pm b/fhem/FHEM/02_RSS.pm index af9811f54..25c016249 100644 --- a/fhem/FHEM/02_RSS.pm +++ b/fhem/FHEM/02_RSS.pm @@ -516,6 +516,8 @@ RSS_itemLine { sub RSS_itemRect { my ($S,$x1,$y1,$x2,$y2,$filled,%params)= @_; + $x2 = $x1 + $x2 if ($x2 =~ /^\+/); + $y2 = $y1 + $y2 if ($y2 =~ /^\+/); if($filled) { $S->filledRectangle($x1,$y1,$x2,$y2,RSS_color($S,$params{rgb})); } else { @@ -1178,7 +1180,7 @@ plotFromUrl(@)
  • date <x> <y>
    Renders the current date in DD.MM.YYYY format.

  • line <x1> <y1> <x2> <y2> [<thickness>]
    Draws a line from position (<x1>, <y1>) to position (<x2>, <y2>) with optional thickness (default=1).

  • -
  • rect <x1> <y1> <x2> <y2> [<filled>]
    Draws a rectangle with corners at positions (<x1>, <y1>) and (<x2>, <y2>), which is filled if the <filled> parameter is set and not zero.

  • +
  • rect <x1> <y1> <x2> <y2> [<filled>]
    Draws a rectangle with corners at positions (<x1>, <y1>) and (<x2>, <y2>), which is filled if the <filled> parameter is set and not zero.
    If x2 or y2 is preceeded with a + (plus sign) then the coordinate is relative to x1 or y1, or in other words, it is the width-1 or height-1 of the rectangle, respectively.

  • img <x> <y> <['w' or 'h']s> <imgtype> <srctype> <arg>
    Renders a picture at the position (<x>, <y>). The <imgtype> is one of gif, jpeg, png.