2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 12:58:13 +00:00

FRITZBOX: attr global modpath

git-svn-id: https://svn.fhem.de/fhem/trunk@10982 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
grompo 2016-03-02 19:06:17 +00:00
parent 0d6c6d85e7
commit 1c892d15cc

View File

@ -771,7 +771,8 @@ sub FRITZBOX_API_Check_Run($)
# Check if m3u can be created and the URL tested
my $m3uFileLocal = AttrVal( $name, "m3uFileLocal", "./www/images/".$name.".m3u" );
my $globalModPath = AttrVal( "global", "modpath", "." );
my $m3uFileLocal = AttrVal( $name, "m3uFileLocal", $globalModPath."/www/images/".$name.".m3u" );
if (open my $fh, '>', $m3uFileLocal) {
my $ttsText = uri_escape("Lirumlarumlöffelstielwerdasnichtkannderkannnichtviel");
my $ttsLink = $ttsLinkTemplate;
@ -4781,6 +4782,7 @@ sub FRITZBOX_fritztris($)
<b>Get</b>
<ul>
<br>
<li><code>get &lt;name&gt; ringTones</code>
<br>
Shows the list of ring tones that can be used.