diff --git a/fhem/CHANGED b/fhem/CHANGED index 28a3c0e72..bab7e41a3 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. + - feature: 02_RSS: viewport configurable by attribute - change: 93_DbLog: removed use of perl's 'switch' feature. - change: 93_DbLog: removed string length limitation for SQLITE. - bugfix: 93_DbLog: fixed ploteditor bug when DbLogType=History. diff --git a/fhem/FHEM/02_RSS.pm b/fhem/FHEM/02_RSS.pm index 3e6626df3..60b0e6d4b 100644 --- a/fhem/FHEM/02_RSS.pm +++ b/fhem/FHEM/02_RSS.pm @@ -56,7 +56,7 @@ RSS_Initialize($) { $hash->{DefFn} = "RSS_Define"; $hash->{UndefFn} = "RSS_Undefine"; #$hash->{AttrFn} = "RSS_Attr"; - $hash->{AttrList} = "size bg bgcolor tmin refresh areas autoreread:1,0"; + $hash->{AttrList} = "size bg bgcolor tmin refresh areas autoreread:1,0 viewport"; $hash->{SetFn} = "RSS_Set"; $hash->{NotifyFn} = "RSS_Notify"; @@ -275,13 +275,14 @@ RSS_HTMLHead($$) { my ($name,$refresh) = @_; my ($width,$height)= split(/x/, AttrVal($name,"size","800x600")); + my $viewportContent= AttrVal($name, "viewport", ""); my $doctype= ''; my $xmlns= 'xmlns="http://www.w3.org/1999/xhtml"'; my $scripts= RSS_getScript(); - my $viewport= ""; - my $code= "$doctype\n\n
\nattr FrameRSS viewport width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0attr FrameRSS areas <area shape="rect" coords="0,0,200,200" href="http://fhem.de"/><area shape="rect" coords="600,400,799,599" href="http://has:8083/fhem" target="_top"/>