FHEM Forum

FHEM => fhem-users => Thema gestartet von: UliM am 03 August 2009, 23:04:35

Titel: [FHZ] 01_FHEMWEB: SVG Label&Title in $plot wird nicht aufgelöst
Beitrag von: UliM am 03 August 2009, 23:04:35
Originally posted by: <email address deleted>

Hallo Rudi,
Bei SVG wird Label & Title insofern sie auch in $plot vorhanden sind,
nicht aufgelöst.

Habe hierfür die mit "kpb" kommentierten Befehl ergänzt und so läufts
dann auch:
    $cfg = FW_substcfg(1, $wl, $cfg, $plot, $file, "");
    $plot = FW_substcfg(2, $wl, $cfg, $plot, $file, ""); kpb:
Label & Title auch in $plot suchen & ersetzen

und inFW_substcfg
  if($splitret==1) { #kpb
    my @ret = split("\n", $gplot_script);
    return \@ret;
  } else {
    return $gplot_script;
  }
}

(P.S. vielleicht etwas umständlich? Der Sauberkeit halber müssten
$gplot_script und auch $plot, da beide in der sub FW_substcfg
modifiziert werden, in einem Rutsch aus der sub FW_substcfg
zurückgegeben werden.
Aber wie, fragt hier ein New-Perler?)
Gruß
Klaus (kpb)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
Titel: [FHZ] Re: 01_FHEMWEB: SVG Label&Title in $plot wird nicht aufgelöst
Beitrag von: Dennis am 04 August 2009, 09:55:46
                                                   

> Habe hierfür die mit "kpb" kommentierten Befehl ergänzt und so läufts
> dann auch:

Bei mir nicht :/, das komplette Inhalt verschwindet. Es sei denn es
wird statt $gplot_script in diesem Fall zusaetzlich $plot
zurueckgeliefert. So habe ich es dann auch eingecheckt.

> P.S. vielleicht etwas umständlich? [...] Aber wie, fragt hier ein New-Perler?

Der New-Perler kann das z.Bsp bei FW_readgplotfile abschauen. Eine der
netten Perl features:

($cfg,$plot) = FW_substcfg(....

und in FW_substcfg:

return (\@ret, $plot);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
Titel: [FHZ] Re: 01_FHEMWEB: SVG Label&Title in $plot wird nicht aufgelöst
Beitrag von: Guest am 04 August 2009, 16:20:49
Originally posted by: <email address deleted>

> Der New-Perler kann das z.Bsp bei FW_readgplotfile abschauen. Eine der
> netten Perl features:
>
> ($cfg,$plot) = FW_substcfg(....
>
> und in FW_substcfg:
>
> return (\@ret, $plot);
Super. Wieder was gelernt
Gruß
Klaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-