mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
55_InfoPanel.pm: support ReadingsVal in ticker
Forum #35228 git-svn-id: https://svn.fhem.de/fhem/trunk@9301 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0b9698ef57
commit
20deb1ab8f
@ -53,6 +53,8 @@
|
||||
# changed: limit refresh to at least 60 secs
|
||||
# to prevent performance issues
|
||||
# 2015-03-29 - 8334 - changed: commandref updated
|
||||
# 2015-09-25 - - changed: support ReadingsVal() in ticker
|
||||
# with \n in text
|
||||
#
|
||||
##############################################
|
||||
# $Id$
|
||||
@ -692,6 +694,7 @@ sub btIP_itemTicker {
|
||||
$id = ($id eq '-') ? createUniqueId() : $id;
|
||||
my $pause = 2 * $speed;
|
||||
my $color = substr($params{rgb},0,6);
|
||||
$arg =~ s/\\n/\n/g; # support ReadingsVal() with \n in text
|
||||
my @a = split("\n",$arg);
|
||||
my $liTemplate = '<li>%s</li>'."\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user