mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 11:16:36 +00:00
76_SMAPortal: contrib 3.7.0
git-svn-id: https://svn.fhem.de/fhem/trunk@23196 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
33f6b7fef8
commit
e62501e26d
@ -3310,10 +3310,10 @@ sub extractConsumerEnergySetting {
|
||||
|
||||
my $ad_content = encode("utf8", $data->decoded_content);
|
||||
|
||||
my $gcval = $ad_content =~ /var\sgridConsumptionValue\s=\s(.*?);/x // "undefined";
|
||||
my $pvval = $ad_content =~ /var\spvValue\s=\s(.*?);/x // "undefined";
|
||||
my ($gcval) = $ad_content =~ /var\sgridConsumptionValue\s=\s(.*?);/x;
|
||||
my ($pvval) = $ad_content =~ /var\spvValue\s=\s(.*?);/x;
|
||||
|
||||
Log3 ($name, 1, "$name - CONTENT: $ad_content");
|
||||
# Log3 ($name, 1, "$name - CONTENT: $ad_content");
|
||||
Log3 ($name, 1, "$name - 1. gcval: $gcval, pvval: $pvval ");
|
||||
|
||||
$gcval = sprintf("%.2f",$gcval) * 100;
|
||||
|
Loading…
x
Reference in New Issue
Block a user