mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
get pathlist added
git-svn-id: https://svn.fhem.de/fhem/trunk@1913 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1eec12cee5
commit
085f2d70ee
@ -39,6 +39,7 @@ sub FW_textfield($$$);
|
|||||||
sub FW_updateHashes();
|
sub FW_updateHashes();
|
||||||
sub FW_zoomLink($$$);
|
sub FW_zoomLink($$$);
|
||||||
sub pF($@);
|
sub pF($@);
|
||||||
|
sub FW_PathList();
|
||||||
sub FW_pH(@);
|
sub FW_pH(@);
|
||||||
sub FW_pHPlain(@);
|
sub FW_pHPlain(@);
|
||||||
sub FW_pO(@);
|
sub FW_pO(@);
|
||||||
@ -2432,20 +2433,37 @@ FW_devState($$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
|
sub
|
||||||
|
FW_PathList()
|
||||||
|
{
|
||||||
|
return "web server root: $FW_dir\n".
|
||||||
|
"icon directory: $FW_icondir\n".
|
||||||
|
"doc directory: $FW_docdir\n".
|
||||||
|
"css directory: $FW_cssdir\n".
|
||||||
|
"gplot directory: $FW_gplotdir\n".
|
||||||
|
"javascript directory: $FW_jsdir";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sub
|
sub
|
||||||
FW_Get($@)
|
FW_Get($@)
|
||||||
{
|
{
|
||||||
my ($hash, @a) = @_;
|
my ($hash, @a) = @_;
|
||||||
|
|
||||||
return "syntax error" if(int(@a) != 3);
|
|
||||||
|
|
||||||
return "Unknown argument $a[1], choose one of " . "icon"
|
|
||||||
unless($a[1] eq "icon");
|
|
||||||
|
|
||||||
$FW_wname= $hash->{NAME};
|
$FW_wname= $hash->{NAME};
|
||||||
|
|
||||||
|
|
||||||
|
if($a[1] eq "icon") {
|
||||||
|
return "need one icon as argument" if(int(@a) != 3);
|
||||||
my $icon= FW_IconPath($a[2]);
|
my $icon= FW_IconPath($a[2]);
|
||||||
return defined($icon) ? $icon : "no such icon";
|
return defined($icon) ? $icon : "no such icon";
|
||||||
|
|
||||||
|
} elsif($a[1] eq "pathlist") {
|
||||||
|
return FW_PathList();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return "Unknown argument $a[1], choose one of icon pathlist";
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2456,8 +2474,7 @@ FW_Set($@)
|
|||||||
{
|
{
|
||||||
my ($hash, @a) = @_;
|
my ($hash, @a) = @_;
|
||||||
|
|
||||||
return "syntax error" if(int(@a) != 2);
|
return "no set value specified" if(@a < 2);
|
||||||
|
|
||||||
return "Unknown argument $a[1], choose one of " . "rereadicons"
|
return "Unknown argument $a[1], choose one of " . "rereadicons"
|
||||||
unless($a[1] eq "rereadicons");
|
unless($a[1] eq "rereadicons");
|
||||||
|
|
||||||
|
@ -9505,12 +9505,15 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
|||||||
<a name="FHEMWEBget"></a>
|
<a name="FHEMWEBget"></a>
|
||||||
<b>Get</b>
|
<b>Get</b>
|
||||||
<ul>
|
<ul>
|
||||||
<code>get <name> icon <logical icon></code>
|
<li>icon <logical icon><br>
|
||||||
<br><br>
|
returns the absolute path to the logical icon. Example:
|
||||||
returns the absolute path to the logical icon. Example:<br><br>
|
<ul>
|
||||||
<code>get myFHEMWEB icon FS20.on<br>
|
<code>get myFHEMWEB icon FS20.on<br>
|
||||||
/data/Homeautomation/fhem/FHEM/FS20.on.png
|
/data/Homeautomation/fhem/FHEM/FS20.on.png
|
||||||
</code>
|
</code>
|
||||||
|
</ul>
|
||||||
|
<li>pathlist<br>
|
||||||
|
return FHEMWEB specific directories, where files for given types are located
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user