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:
parent
26d0a08a2b
commit
19be7a3fba
@ -192,7 +192,7 @@ NotifyAndroidTV_Set($$@)
|
|||||||
$param_h->{interrupt} = 1;
|
$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";
|
my $usage = "usage: set $name msg";
|
||||||
foreach my $option (sort keys %{$options}) {
|
foreach my $option (sort keys %{$options}) {
|
||||||
if( $options->{$option} ) {
|
if( $options->{$option} ) {
|
||||||
@ -359,6 +359,7 @@ NotifyAndroidTV_Attr($$$)
|
|||||||
<ul>
|
<ul>
|
||||||
<li>msg [options] <message><br>
|
<li>msg [options] <message><br>
|
||||||
possible options are: bkgcolor, interrupt, position, transparency, duration, offset, offsety, width, type, icon, image, title, imageurl. use <code>set <name> notify</code> to see valid values.<br>
|
possible options are: bkgcolor, interrupt, position, transparency, duration, offset, offsety, width, type, icon, image, title, imageurl. use <code>set <name> 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>
|
it is better to use imageurl instad of image as it is non blocking!<br>
|
||||||
image can be given as <code>image={<perlCode>}</code></li>
|
image can be given as <code>image={<perlCode>}</code></li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user