From 196ebb31825f415d8f219a881631f03e3695cfe6 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sat, 8 Mar 2014 17:35:59 +0000 Subject: [PATCH] 98_configDBwrap - added commandref, sorted into helper modules git-svn-id: https://svn.fhem.de/fhem/trunk@5165 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_configDBwrap.pm | 255 ++++++++++++++++++++++++++++- fhem/docs/commandref_frame.html | 1 + fhem/docs/commandref_frame_DE.html | 1 + 3 files changed, 255 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/98_configDBwrap.pm b/fhem/FHEM/98_configDBwrap.pm index 43f096f18..f61f38e2c 100644 --- a/fhem/FHEM/98_configDBwrap.pm +++ b/fhem/FHEM/98_configDBwrap.pm @@ -19,8 +19,9 @@ sub configDBwrap_Define($$) { my ($hash, $def) = @_; my @a = split("[ \t][ \t]*", $def); return "Wrong syntax: use define configDB" if(int(@a) != 2); + my @version = split(/ /,cfgDB_svnId); + readingsSingleUpdate($hash, 'version', "$version[3] - $version[4]", 0); readingsSingleUpdate($hash, 'state', 'active', 0); - readingsSingleUpdate($hash, 'version', cfgDB_svnId, 0); return undef; } @@ -55,7 +56,7 @@ sub configDBwrap_Get($@) { my ($hash, @a) = @_; my $name = $hash->{NAME}; - my $usage = "Unknown argument, choose one of diff info:noArg list"; + my $usage = "Unknown argument, choose one of diff info:noArg list uuid"; return $usage if(int(@a) < 2); my $ret; @@ -75,6 +76,10 @@ sub configDBwrap_Get($@) { $ret = cfgDB_Diff($a[2],$a[3]); } + when ('uuid') { + $ret = _cfgDB_Uuid; + } + default { $ret = $usage; } } @@ -83,3 +88,249 @@ sub configDBwrap_Get($@) { } 1; + +=pod +=begin html + + +

configDBwrap

+ + +=end html + +=begin html_DE + + +

configDBwrap

+ + +=end html_DE + +=cut diff --git a/fhem/docs/commandref_frame.html b/fhem/docs/commandref_frame.html index 48b8baf84..9e117ddcf 100644 --- a/fhem/docs/commandref_frame.html +++ b/fhem/docs/commandref_frame.html @@ -88,6 +88,7 @@ average   Calendar   configDB   + configDBwrap   Dashboard   DbLog   dewpoint   diff --git a/fhem/docs/commandref_frame_DE.html b/fhem/docs/commandref_frame_DE.html index 62f0661cb..f9699a981 100644 --- a/fhem/docs/commandref_frame_DE.html +++ b/fhem/docs/commandref_frame_DE.html @@ -87,6 +87,7 @@ average   Calendar   configDB   + configDBwrap   Dashboard   DbLog   dewpoint