From 4bf1e8edda3a6b383701bc643d87e3589d047bad Mon Sep 17 00:00:00 2001
From: MarcP <>
Date: Mon, 10 Jul 2017 20:02:41 +0000
Subject: [PATCH] Fixed bad path names
(https://forum.fhem.de/index.php/topic,31999.0.html) Added commandref stub
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14687 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
contrib/YAF/FHEM/01_YAF.pm | 42 ++++++++++++++++++++++++++++++++----
contrib/YAF/controls_yaf.txt | 2 +-
2 files changed, 39 insertions(+), 5 deletions(-)
diff --git a/contrib/YAF/FHEM/01_YAF.pm b/contrib/YAF/FHEM/01_YAF.pm
index 85d5b13ce..c3bd47e1b 100644
--- a/contrib/YAF/FHEM/01_YAF.pm
+++ b/contrib/YAF/FHEM/01_YAF.pm
@@ -24,6 +24,11 @@
# along with this program. If not, see .
#
########################################################################################
+#
+# Contributions from: "Reinhart", Marcus Proest
+#
+########################################################################################
+
package main;
use strict;
@@ -50,7 +55,7 @@ use vars qw($FW_dir);
sub YAF_Request($@);
my $fhem_url;
-my $yaf_version=0.45;
+my $yaf_version=0.46;
my $yafw_encoding = "UTF-8";
my $mp = AttrVal("global", "modpath", ".");
my $yaf_www_directory = $mp."/FHEM/YAF/www";
@@ -223,10 +228,11 @@ sub YAF_Request ($@) {
my ($htmlarg) = @_;
# %20 durch Leerzeichen ersetzen
$htmlarg =~ s/%20/ /g;
-
+ $htmlarg =~ s/www\///g;
# Log for debug
- Log 1,"YAF_Request: htmlarg: $htmlarg";
-
+ #Log 1,"YAF_Request: htmlarg: $htmlarg";
+ #Log 1,"YAF_Dirs: FHEM_url: $fhem_url FW_cname: $FW_cname FW_RET: $FW_RET FW_dir: $FW_dir";
+
# GET Parameter
my @params = split(/\?/, $htmlarg);
@@ -451,3 +457,31 @@ sub YAF_NotFound{
}
1;
+
+# Beginn der Commandref
+
+=pod
+=item helper
+=item summary YAF provides an interactive alternative to the floorplan module
+=item summary_DE YAF ist eine interaktive alternaitve zum floorplan Modul.
+
+=begin html
+
+
+Define
+
+=end html
+
+=begin html_DE
+
+
+Define
+
+=end html
+
+# Ende der Commandref
+=cut
diff --git a/contrib/YAF/controls_yaf.txt b/contrib/YAF/controls_yaf.txt
index bbb4cbe00..8651a0f19 100644
--- a/contrib/YAF/controls_yaf.txt
+++ b/contrib/YAF/controls_yaf.txt
@@ -25,7 +25,7 @@ DIR FHEM/YAF/www/smoothness/images
DIR FHEM/YAF/www/img
DIR FHEM/YAF/www/js
DIR FHEM/YAF/xml
-UPD 2013-11-18_18:30:00 12423 FHEM/01_YAF.pm
+UPD 2017-07-10_22:00:00 13097 FHEM/01_YAF.pm
UPD 2013-05-15_20:00:00 6590 FHEM/YAF/widgets/fs20st/fs20st.pm
UPD 2013-08-14_21:30:00 7471 FHEM/YAF/widgets/fht80/fht80.pm
UPD 2013-07-31_15:30:00 6534 FHEM/YAF/widgets/fhttk/fhttk.pm