2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

93_DbLog: contrib 3.12.5

git-svn-id: https://svn.fhem.de/fhem/trunk@17521 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2018-10-12 19:42:32 +00:00
parent 67569e03f4
commit 6993b3b241

View File

@ -955,7 +955,6 @@ sub DbLog_ParseEvent($$$)
if ($reading =~ m(^temperature)) { $unit= "°C"; } # wenn reading mit temperature beginnt
elsif($reading =~ m(^humidity)) { $unit= "%"; }
# the interpretation of the argument depends on the device type
# EMEM, M232Counter, M232Voltage return plain numbers
if(($type eq "M232Voltage") ||
@ -3880,6 +3879,7 @@ return($useac,$useta);
###############################################################################
sub DbLog_charfilter ($) {
my ($txt) = @_;
my ($p,$a);
# nur erwünschte Zeichen ASCII %d32-126 und Sonderzeichen
$txt =~ s/ß/ss/g;
@ -3890,8 +3890,9 @@ sub DbLog_charfilter ($) {
$txt =~ s/Ö/Oe/g;
$txt =~ s/Ü/Ue/g;
$txt =~ s/€/EUR/g;
$txt =~ s/^\xb0/°/g;
$txt =~ tr/ A-Za-z0-9!"#$%&'()*+,-.\/:;<=>?@[\\]^_`{|}~°//cd;
$txt =~ s/\xB0C/°C/g;
return($txt);
}