mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
73_GasCalculator : New module to calculate statistics around the gas consumptions
git-svn-id: https://svn.fhem.de/fhem/trunk@10591 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1e80687c33
commit
7fd3b26937
@ -44,6 +44,7 @@
|
||||
# X0005 18.01.2016 Sailor All Implementing the choice of destination for the calculated readings via attribute
|
||||
# X0006 21.01.2016 Sailor =pod Description updated with description for the readings
|
||||
# 10588 22.01.2016 Sailor Comments First check-in
|
||||
# 10590 22.01.2016 Sailor Define Deleting version code from define
|
||||
########################################################################################################################
|
||||
|
||||
|
||||
@ -90,7 +91,6 @@ sub GasCalculator_Define($$$)
|
||||
{
|
||||
my ($hash, $def) = @_;
|
||||
my ($name, $type, $RegEx, $RegExst) = split("[ \t]+", $def, 4);
|
||||
my $ModuleVersion = "0007";
|
||||
|
||||
### Check whether regular expression has correct syntax
|
||||
if(!$RegEx || $RegExst)
|
||||
@ -108,10 +108,9 @@ sub GasCalculator_Define($$$)
|
||||
$hash->{NAME} = $name;
|
||||
$hash->{STATE} = "active";
|
||||
$hash->{REGEXP} = $RegEx;
|
||||
$hash->{VERSION} = $ModuleVersion;
|
||||
|
||||
### Writing log entry
|
||||
Log3 $name, 5, $name. " : GasCalculator - Starting to define module with version: " . $ModuleVersion;
|
||||
Log3 $name, 5, $name. " : GasCalculator - Starting to define module";
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user