2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

37_NotifyAndroidTV.pm: changed paramter check. help message is noch created only for 'set <name> msg ?'

git-svn-id: https://svn.fhem.de/fhem/trunk@16134 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2018-02-09 14:21:54 +00:00
parent 26d0a08a2b
commit 19be7a3fba

View File

@ -192,7 +192,7 @@ NotifyAndroidTV_Set($$@)
$param_h->{interrupt} = 1;
}
if( !$txt && !$param_h->{icon} && !$param_h->{image} && !$param_h->{imageurl} ) {
if( $txt && $txt eq '?' ) {
my $usage = "usage: set $name msg";
foreach my $option (sort keys %{$options}) {
if( $options->{$option} ) {
@ -359,6 +359,7 @@ NotifyAndroidTV_Attr($$$)
<ul>
<li>msg [options] &lt;message&gt;<br>
possible options are: bkgcolor, interrupt, position, transparency, duration, offset, offsety, width, type, icon, image, title, imageurl. use <code>set &lt;name&gt; notify</code> to see valid values.<br>
<code>set nb msg ?</code> shows a help text<br>
it is better to use imageurl instad of image as it is non blocking!<br>
image can be given as <code>image={&lt;perlCode&gt;}</code></li>
</ul><br>