diff --git a/fhem/CHANGED b/fhem/CHANGED
index b57be1269..741dff80e 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: new attribute urlOverride
- feature: 71_YAMAHA_NP: Added auto reading update for tuner and player
- feature 49_SSCAM: The port in DEF-String is optional now,
if not given, default port 5000 is used
diff --git a/fhem/FHEM/02_RSS.pm b/fhem/FHEM/02_RSS.pm
index 0954c6036..dd027dc41 100644
--- a/fhem/FHEM/02_RSS.pm
+++ b/fhem/FHEM/02_RSS.pm
@@ -57,7 +57,7 @@ RSS_Initialize($) {
$hash->{DefFn} = "RSS_Define";
$hash->{UndefFn} = "RSS_Undefine";
#$hash->{AttrFn} = "RSS_Attr";
- $hash->{AttrList} = "size itemtitle bg bgcolor tmin refresh areas autoreread:1,0 viewport noscroll";
+ $hash->{AttrList} = "size itemtitle bg bgcolor tmin refresh areas autoreread:1,0 viewport noscroll urlOverride";
$hash->{SetFn} = "RSS_Set";
$hash->{NotifyFn} = "RSS_Notify";
@@ -165,7 +165,12 @@ RSS_Set() {
#
sub
RSS_getURL($) {
- my ($hostname)= @_;
+ my ($name)= @_;
+
+ my $url= AttrVal($name, 'urlOverride', '');
+ return $url if($url ne "");
+
+ my $hostname= $defs{$name}{fhem}{hostname};
# http://hostname:8083/fhem
my $proto = (AttrVal($FW_wname, 'HTTPS', 0) == 1) ? 'https' : 'http';
return $proto."://$hostname:" . $defs{$FW_wname}{PORT} . $FW_ME;
@@ -201,7 +206,7 @@ RSS_Overview {
foreach my $def (sort keys %defs) {
if($defs{$def}{TYPE} eq "RSS") {
$name= $defs{$def}{NAME};
- $url= RSS_getURL($defs{$def}{fhem}{hostname});
+ $url= RSS_getURL($name);
$html.= "$name
\n
<width>x<height>
.attr <name> http://otherhost.example.org:8083/foo/bar
, the
+ JPEG picture that is at
+ http://host.example.org:8083/fhem/rss/FrameRSS.jpg
+ will be referenced as
+ http://otherhost.example.org:8083/foo/bar/rss/FrameRSS.jpg
. This is useful when
+ your FHEM URLs are rewritten, e.g. if FHEM is accessed by a Reverse Proxy.