From 7846a695117fa9701699b4844a5faf91b2e3262e Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Tue, 24 Apr 2007 07:13:21 +0000 Subject: [PATCH] Modify added. - removed git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@55 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 4 +++- FHEM/90_at.pm | 9 ++++++++- FHEM/91_notify.pm | 8 ++++++++ HISTORY | 7 +++++++ docs/commandref.html | 48 +++++++++++++++++++++++++++++++++++++++++++- docs/fhem.html | 3 +-- fhem.pl | 28 ++++++++++++++++++++++++-- test/fhem.save | 13 ++++-------- 8 files changed, 104 insertions(+), 16 deletions(-) diff --git a/CHANGED b/CHANGED index 71db21948..8d4dc4f01 100644 --- a/CHANGED +++ b/CHANGED @@ -324,4 +324,6 @@ - ==DATE== (4.1) - doc: linux.html (private udev-rules, not 50-..., ATTRS) - bugfix: setting devices with "-" in their name did not work - - doc: fhem.pl and commandref.html (notifyon -> notify, correction of examples) + - doc: fhem.pl and commandref.html (notifyon -> notify, correction of examples) + - feature: modify command added + - feature: The "-" in the name is not allowed any more diff --git a/FHEM/90_at.pm b/FHEM/90_at.pm index 4c88cacaf..e88dd1d30 100755 --- a/FHEM/90_at.pm +++ b/FHEM/90_at.pm @@ -25,7 +25,14 @@ at_Define($$) my ($hash, $def) = @_; my ($name, undef, $tm, $command) = split("[ \t]+", $def, 4); - return "Usage: define at " if(!$command); + if(!$command) { + if($hash->{CMD}) { + $command = $hash->{CMD}; # Called from modify + $hash->{DEF} = "$tm $command"; + } else { + return "Usage: define at "; + } + } return "Wrong timespec, use \"[+][*[{count}]]