diff --git a/fhem/CHANGED b/fhem/CHANGED
index 5db9905f6..36cac8166 100644
--- a/fhem/CHANGED
+++ b/fhem/CHANGED
@@ -362,7 +362,7 @@
- feature: alternativ Quad-based numbers for the FS20 (Matthias, 24.11)
- feature: dummy type added (contrib/99_dummy.pm)
-- ==DATE== (4.3)
+- 2008-07-12 (4.3)
- bugfix: KS300 state was wrong after the STATE bugfix
- feature: HMS100CO (by Peter)
- feature: EMGZ (by Peter)
@@ -410,3 +410,7 @@
- bugfix: deleting FS20 device won't result in unknown device (Daniel, 11.7)
- feature: webpgm2 generates SVG's from logs: no need for gnuplot
- bugfix: examples corrected to work with current syntax
+
+- ==DATE== (4.4)
+ - feature: RM100-2 battery empty warning (mare 23.07.08)
+ - feature: optimising the pgm2/SVG memory usage
diff --git a/fhem/FHEM/12_HMS.pm b/fhem/FHEM/12_HMS.pm
index d3a1f1c3a..724c9d026 100755
--- a/fhem/FHEM/12_HMS.pm
+++ b/fhem/FHEM/12_HMS.pm
@@ -164,7 +164,10 @@ HMS_Parse($$)
@sfx = ( "", "");
$v[0] = ( hex(substr($val, 1, 1)) != "0" ) ? "on" : "off";
- $v[1] = "unknown"; # Battery-low detect is _NOT_ implemented.
+ $v[1] = "ok";
+ my $status = hex(substr($msg, 10, 1));
+ if( $status & 4 ) { $v[1] = "empty"; }
+ if( $status & 8 ) { $v[1] = "replaced"; }
$val = "smoke_detect: $v[0]";
} elsif ($type eq "HMS100MG") { # By Peter Stark
diff --git a/fhem/FHEM/92_FileLog.pm b/fhem/FHEM/92_FileLog.pm
index c528a6763..471ef75a4 100755
--- a/fhem/FHEM/92_FileLog.pm
+++ b/fhem/FHEM/92_FileLog.pm
@@ -4,6 +4,7 @@ package main;
use strict;
use warnings;
use IO::File;
+#use Devel::Size qw(size total_size);
sub seekTo($$$$);
@@ -168,6 +169,11 @@ FileLog_Get($@)
my $outf = shift @a;
my $from = shift @a;
my $to = shift @a; # Now @a contains the list of column_specs
+ my $internal;
+ if($outf eq "INT") {
+ $outf = "-";
+ $internal = 1;
+ }
if($inf eq "-") {
$inf = $hash->{currentlogfile};
@@ -215,11 +221,12 @@ FileLog_Get($@)
my %lastdate;
while(my $l = <$ifh>) {
last if($l gt $to);
- my @fld = split("[ \r\n]+", $l);
+ my @fld = split("[ \r\n]+", $l); # 40%
+
for my $i (0..int(@a)-1) { # Process each req. field
my $h = $d[$i];
my $re = $h->{re};
- next if($re && $l !~ m/$re/);
+ next if($re && $l !~ m/$re/); # 20%
my $col = $h->{col};
my $line = "";
@@ -298,13 +305,16 @@ FileLog_Get($@)
$ret .= "#$a[$i]\n";
} else {
my $fh = $h->{fh};
-#Log 0, "FLg: $i: >$h->{count}, $h->{df}<";
if(!$h->{count} && $h->{df} ne "") {
print $fh "$from $h->{df}\n";
}
$fh->close();
}
}
+ if($internal) {
+ $internal_data = \$ret;
+ return "OK";
+ }
return ($outf eq "-") ? $ret : join(" ", @fname);
}
diff --git a/fhem/FHEM/99_SUNRISE_EL.pm b/fhem/FHEM/99_SUNRISE_EL.pm
index f207cccb3..c326ee7d0 100755
--- a/fhem/FHEM/99_SUNRISE_EL.pm
+++ b/fhem/FHEM/99_SUNRISE_EL.pm
@@ -19,6 +19,7 @@ sub sunrise_abs(@);
sub sunset_abs(@);
sub isday();
sub sunrise_coord($$$);
+
sub SUNRISE_Initialize($);
# See perldoc DateTime::Event::Sunrise for details
diff --git a/fhem/Makefile b/fhem/Makefile
index 087895820..a946bb9d7 100644
--- a/fhem/Makefile
+++ b/fhem/Makefile
@@ -11,20 +11,22 @@ all:
install:
cp fhem.pl $(BINDIR)
- cp -rp FHEM $(MODDIR)
+ cp -r FHEM $(MODDIR)
perl -pi -e 's,modpath .,modpath $(MODDIR),' examples/*
install-pgm2:
cp fhem.pl $(BINDIR)
- cp -rp FHEM $(MODDIR)
- cp -rp webfrontend/pgm2/* $(MODDIR)
+ cp -r FHEM $(MODDIR)
+ cp -r webfrontend/pgm2/* $(MODDIR)
perl -pi -e 's,modpath .,modpath $(MODDIR),' examples/*
dist:
@echo Version is $(VERS), Date is $(DATE)
mkdir .f
- cp -rp * .f
+ cp -r CHANGED FHEM HISTORY Makefile README.CVS em1010pc\
+ TODO contrib docs examples fhem.pl test webfrontend .f
find .f -name \*.orig -print | xargs rm -f
+ find .f -name .#\* -print | xargs rm -f
find .f -type f -print |\
xargs perl -pi -e 's/=VERS=/$(VERS)/g;s/=DATE=/$(DATE)/g'
mv .f fhem-$(VERS)
diff --git a/fhem/docs/faq.html b/fhem/docs/faq.html
index 94470b16a..703983926 100644
--- a/fhem/docs/faq.html
+++ b/fhem/docs/faq.html
@@ -46,6 +46,9 @@ me?
12. I'd like to switch on the ventilator if the FHT tells me its too hot. How to tell fhem to do that?
+13. I'd like to see directly in the Web frontend if a window is open. How to do that?
+
+
@@ -273,5 +276,19 @@ by fhem.pl?
+
+13. I'd like to see directly in the Web frontend if a window is open.
+How to do that? (by fwolff)
+
+ define window_open notify bad.*warnings.*Window.*open.* set window on + define window_close notify bad.*warnings.*none.* set window off ++ +