From 1757b64e1518dd3482ff14fdf5f7de5a531e47e7 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 22 Aug 2013 21:05:37 +0000 Subject: [PATCH] corrections for the demo package git-svn-id: https://svn.fhem.de/fhem/trunk@3767 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_autocreate.pm | 26 ++++++++++---------- fhem/FHEM/98_structure.pm | 7 +++--- fhem/www/images/openautomation/iconalias.txt | 1 + 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/fhem/FHEM/98_autocreate.pm b/fhem/FHEM/98_autocreate.pm index 2c5fe3d32..c6b3acb3a 100644 --- a/fhem/FHEM/98_autocreate.pm +++ b/fhem/FHEM/98_autocreate.pm @@ -216,11 +216,11 @@ autocreate_Notify($$) next if(!$wdef); my ($gplotfile, $stuff) = split(/:/, $wdef); next if(!$gplotfile); - my $wlname = "weblink_$name"; + my $wlname = "SVG_$name"; $wlname .= "_$wnr" if($wnr > 1); $wnr++; delete($defs{$wlname}); # If we are re-creating it with createlog. - $cmd = "$wlname weblink fileplot $flname:$gplotfile:CURRENT"; + $cmd = "$wlname SVG fileplot $flname:$gplotfile:CURRENT"; Log3 $me, 2, "autocreate: define $cmd"; $ret = CommandDefine(undef, $cmd); if($ret) { @@ -253,13 +253,13 @@ autocreate_Notify($$) $nrcreated++; } - if($defs{"weblink_$old"}) { - CommandRename(undef, "weblink_$old weblink_$new"); - my $hash = $defs{"weblink_$new"}; + if($defs{"SVG_$old"}) { + CommandRename(undef, "SVG_$old SVG_$new"); + my $hash = $defs{"SVG_$new"}; $hash->{LINK} =~ s/$old/$new/g; $hash->{DEF} =~ s/$old/$new/g; - $attr{"weblink_$new"}{label} =~ s/$old/$new/g; - Log3 $me, 2, "autocreate: renamed weblink_$old to weblink_$new"; + $attr{"SVG_$new"}{label} =~ s/$old/$new/g; + Log3 $me, 2, "autocreate: renamed SVG_$old to SVG_$new"; $nrcreated++; } } @@ -521,16 +521,16 @@ autocreate_Attr(@) "#autoload_undefined_devices">autoload_undefined_devices is set, so that modules for unknnown devices are automatically loaded. The autocreate module intercepts the UNDEFINED event generated by each - module, creates a device and optionally also FileLog and weblink + module, creates a device and optionally also FileLog and SVG entries.
Note 1: devices will be created with a unique name, which contains the type and a unique id for this type. When renaming - the device, the automatically created filelog and weblink devices + the device, the automatically created filelog and SVG devices will also be renamed.
Note 2: you can disable the automatic creation by setting the disable attribute, in this case only the rename hook is active, and you can use the createlog - command to add FileLog and weblink to an already defined device. + command to add FileLog and SVG to an already defined device.
@@ -573,11 +573,11 @@ autocreate_Attr(@)
  • weblink
    - Create a weblink associated with the device/filelog.

  • + Create an SVG associated with the device/filelog.
  • weblink_room
    - "Put" the newly weblink in this room. The name can contain the + "Put" the newly created SVG in this room. The name can contain the wildcards %TYPE and %NAME, see the example above.

  • disable
  • @@ -596,7 +596,7 @@ autocreate_Attr(@) createlog