From 73a8e8a91aa3a07dcc866bc1afa18feefa189b17 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 1 Jul 2007 07:30:48 +0000 Subject: [PATCH] SCIVT by peterp. git-svn-id: https://svn.fhem.de/fhem/trunk@79 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/00_FHZ.pm | 4 ++- fhem/docs/commandref.html | 41 ++++++++++++++++++++++++----- fhem/docs/fhem.html | 25 +++++++++++------- fhem/fhem.pl | 3 ++- fhem/test/fhem.cfg | 35 +++++++++++------------- fhem/test/fhem.save | 14 +++++++--- fhem/webfrontend/pgm2/em.gplot | 2 +- fhem/webfrontend/pgm2/ks300_1.gplot | 5 ++-- fhem/webfrontend/pgm2/ks300_2.gplot | 5 ++-- 10 files changed, 86 insertions(+), 49 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 746ab0f10..81197e0df 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -335,3 +335,4 @@ - feature: added EM1010PC/EM1000WZ/EM1000EM support - bugfix: undefined messages for unknown HMS devs (Peter, 8.6) - bugfix: em1010 and %oldvalue bugs (Peter, 9.6) + - bugfix: SCIVT solar controller (peterp, 1.7) diff --git a/fhem/FHEM/00_FHZ.pm b/fhem/FHEM/00_FHZ.pm index 25282deee..d6a40155b 100755 --- a/fhem/FHEM/00_FHZ.pm +++ b/fhem/FHEM/00_FHZ.pm @@ -12,7 +12,6 @@ sub FHZ_ReadAnswer($$); sub FhzCrc(@); sub CheckFhzCrc($); -my $fhzdata = ""; my $msgstart = pack('H*', "81");# Every msg starts wit this my %gets = ( @@ -236,6 +235,7 @@ FHZ_Define($$) $hash->{PortObj} = $po; $hash->{FD} = $po->FILENO; $hash->{DeviceName} = $dev; + $hash->{PARTIAL} = ""; DoInit($a[0]); return undef; @@ -461,6 +461,7 @@ FHZ_Read($) } } + my $fhzdata = $hash->{PARTIAL}; Log 5, "FHZ/RAW: " . unpack('H*',$buf) . " (Unparsed: " . unpack('H*', $fhzdata) . ")"; $fhzdata .= $buf; @@ -568,6 +569,7 @@ NEXTMSG: } } + $hash->{PARTIAL} = $fhzdata; } 1; diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index 290ad46d5..0efdee1b6 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -334,23 +334,27 @@ split in multiple lines

/var/log/fht1-%Y-%U.log
  • ks300_1
    - Plots the temperature and humidity of a ks300. The - corresponding filelog definitions (for the KS300 device named - ks300) looks like:
    + Plots the temperature and rain (per hour and per day) of a + ks300. The corresponding filelog definitions (for the KS300 + device named ks300) looks like:
    define FileLog ks300log ks300:.*H:.* /var/log/ks300-%Y-%U.log
  • ks300_2
    - Plots the rain (per hour and per day) and wind values of a + Plots the humidity and wind values of a ks300. The corresponding filelog definition is the same as above, both programs evaluate the same log.
  • +
  • text
    + Shows the logfile as it is (plain text). +
  • - The corresponding gnuplot files must be installed, see the fhemweb.pl - configuration for the destination directory.
    + The corresponding gnuplot files (up to the "text" one) must be + installed, see the fhemweb.pl configuration for the destination + directory.
    Example:
    - attr fhtlog1 logtype ks300_1:Temp/Hum,ks300_2:Rain/Wind + attr fhtlog1 logtype ks300_1:Temp/Rain,ks300_2:Hum/Wind,text:Raw-data
    @@ -705,6 +709,29 @@ split in multiple lines


    + +

    Type SCIVT

    + +

    Type FileLog