From a0348d73a81aee9d9cc8340d76dfb0bff47a3083 Mon Sep 17 00:00:00 2001
From: borisneubert <>
Date: Sat, 15 Nov 2014 15:39:52 +0000
Subject: [PATCH] 02_RSS: use a GUID in RSS; urlq source for img command
git-svn-id: https://svn.fhem.de/fhem/trunk@6983 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/CHANGED | 1 +
fhem/FHEM/02_RSS.pm | 16 +++++++++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/fhem/CHANGED b/fhem/CHANGED
index 44d3bd43f..0b1c5dc83 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: use a GUID in RSS; urlq source for img command
- feature: 70_PushNotifier improve usebility, configuration without cURL (xusader)
- bugfix: SYSMON: prevent empty line im log by userReadings
- feature: 10_IT empfang (by bjoernh)
diff --git a/fhem/FHEM/02_RSS.pm b/fhem/FHEM/02_RSS.pm
index c5141e496..6c9c11f7c 100644
--- a/fhem/FHEM/02_RSS.pm
+++ b/fhem/FHEM/02_RSS.pm
@@ -218,7 +218,8 @@ RSS_returnRSS($) {
my $url= RSS_getURL($defs{$name}{fhem}{hostname});
my $type = $defs{$name}{fhem}{style};
my $mime = ($type eq 'png')? 'image/png' : 'image/jpeg';
- my $code= "
gif
, jpeg
, png
.
The picture is scaled by the factor <s> (a decimal value). If 'w' or 'h' is in front of scale-value the value is used to set width or height to the value in pixel. If <srctype> is file
, the picture
- is loaded from the filename <arg>, if <srctype> is url
, the picture
- is loaded from the URL <arg>, if <srctype> is data
, the picture
+ is loaded from the filename <arg>, if <srctype> is url
or urlq
, the picture
+ is loaded from the URL <arg> (with or without logging the URL), if <srctype> is data
, the picture
is piped in from data <arg>. You can use
{ <perl special> }
for <arg>. See below for example.
Notice: do not load the image from URL that is served by fhem as it leads to a deadlock.