2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-27 20:34:52 +00:00

02_RSS: added readings to show filename and type of background

git-svn-id: https://svn.fhem.de/fhem/trunk@23383 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2020-12-19 12:24:26 +00:00
parent dd25909624
commit fdf99ad506
2 changed files with 4 additions and 2 deletions

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # 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. # Do not insert empty lines here, update check depends on it.
- feature: 02_RSS: added readings to show filename and type of background
- bugfix: 57_SSCal: accept calendar names which are contain umlauts - bugfix: 57_SSCal: accept calendar names which are contain umlauts
- feature: 98_weekprofile: add support for MQTT2_DEVICE (txl Beta-User) - feature: 98_weekprofile: add support for MQTT2_DEVICE (txl Beta-User)
- feature: 89_FULLY: Added support for sensor information - feature: 89_FULLY: Added support for sensor information

@ -972,6 +972,8 @@ sub RSS_returnIMG($$) {
$defs{$name}{fhem}{bgnr} = $bgnr; $defs{$name}{fhem}{bgnr} = $bgnr;
my $bgfile = $bgdir . "/" . $bgfiles[$bgnr]; my $bgfile = $bgdir . "/" . $bgfiles[$bgnr];
my $filetype = ( split( /\./, $bgfile ) )[-1]; my $filetype = ( split( /\./, $bgfile ) )[-1];
readingsSingleUpdate($defs{$name}, "bgFilename", $bgfile, 1);
readingsSingleUpdate($defs{$name}, "bgFiletype", $filetype, 1);
my $bg; my $bg;
$bg = newFromGif GD::Image($bgfile) $bg = newFromGif GD::Image($bgfile)
if $filetype =~ m/^gif$/i; if $filetype =~ m/^gif$/i;
@ -1012,8 +1014,7 @@ sub RSS_returnIMG($$) {
} }
else { else {
undef $S; undef $S;
$reason = $reason = "Something was wrong with background image \"$bgfile\".";
"Something was wrong with background image \"$bgfile\".";
} }
} }
} }