mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
36_LaCrosseGateway.pm: added CPU-Temperature for LGW32
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@15124 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
33185bd216
commit
aff25c6f5a
@ -475,6 +475,8 @@ sub LaCrosseGateway_HandleKVP($$) {
|
|||||||
my ($hash, $kvp) = @_;
|
my ($hash, $kvp) = @_;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
|
$kvp .= ",";
|
||||||
|
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
|
|
||||||
if($kvp =~ m/UpTimeText=(.*?)(\,|\ ,)/) {
|
if($kvp =~ m/UpTimeText=(.*?)(\,|\ ,)/) {
|
||||||
@ -495,6 +497,9 @@ sub LaCrosseGateway_HandleKVP($$) {
|
|||||||
if($kvp =~ m/OLED=(.*?)(\,|\ ,)/) {
|
if($kvp =~ m/OLED=(.*?)(\,|\ ,)/) {
|
||||||
readingsBulkUpdate($hash, "OLED", $1);
|
readingsBulkUpdate($hash, "OLED", $1);
|
||||||
}
|
}
|
||||||
|
if($kvp =~ m/CPU-Temperature=(.*?)(\,|\ ,)/) {
|
||||||
|
readingsBulkUpdate($hash, "CPU-Temperature", $1);
|
||||||
|
}
|
||||||
|
|
||||||
if(AttrVal($name, "loopTimeReadings", "0") == "1") {
|
if(AttrVal($name, "loopTimeReadings", "0") == "1") {
|
||||||
if($kvp =~ m/LD\.Min=(.*?)(\,|\ ,)/) {
|
if($kvp =~ m/LD\.Min=(.*?)(\,|\ ,)/) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user