2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +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

View File

@ -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: added readings to show filename and type of background
- bugfix: 57_SSCal: accept calendar names which are contain umlauts
- feature: 98_weekprofile: add support for MQTT2_DEVICE (txl Beta-User)
- feature: 89_FULLY: Added support for sensor information

View File

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