From 6374ae2f9dfd772734ecc0c39c2b76c611fe9140 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://svn.fhem.de/fhem/trunk@55 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 4 +++- fhem/FHEM/90_at.pm | 9 +++++++- fhem/FHEM/91_notify.pm | 8 +++++++ fhem/HISTORY | 7 ++++++ fhem/docs/commandref.html | 48 ++++++++++++++++++++++++++++++++++++++- fhem/docs/fhem.html | 3 +-- fhem/fhem.pl | 28 +++++++++++++++++++++-- fhem/test/fhem.save | 13 ++++------- 8 files changed, 104 insertions(+), 16 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 71db21948..8d4dc4f01 100644 --- a/fhem/CHANGED +++ b/fhem/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/FHEM/90_at.pm b/fhem/FHEM/90_at.pm index 4c88cacaf..e88dd1d30 100755 --- a/fhem/FHEM/90_at.pm +++ b/fhem/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}]]