mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
93_InfluxDBLogger.pm: fixed numeric regex
git-svn-id: https://svn.fhem.de/fhem/trunk@27204 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cce457ce3f
commit
c16392d9bd
@ -372,7 +372,7 @@ sub InfluxDBLogger_Map($$$$)
|
||||
}
|
||||
|
||||
$map->{$deviceName}->{$readingName}->{"value"} = $readingValue;
|
||||
$map->{$deviceName}->{$readingName}->{"numeric"} = $readingValue =~ /^[0-9,.E-]+$/;
|
||||
$map->{$deviceName}->{$readingName}->{"numeric"} = $readingValue =~ /^[-+]?[0-9]*[\.\,]?[0-9]+([eE][-+]?[0-9]+)?$/;
|
||||
}
|
||||
sub InfluxDBLogger_HttpCallback($$$)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user