From cff1b03ae3ad9f21a85be0ea04862f0931fd93a4 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Tue, 25 Apr 2017 10:54:58 +0000 Subject: [PATCH] contrib/98_openweathermap.pm: fix perl warning git-svn-id: https://svn.fhem.de/fhem/trunk@14102 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/98_openweathermap.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/contrib/98_openweathermap.pm b/fhem/contrib/98_openweathermap.pm index 69f0f7b37..52e0aef3e 100644 --- a/fhem/contrib/98_openweathermap.pm +++ b/fhem/contrib/98_openweathermap.pm @@ -309,7 +309,7 @@ sub OWO_GetStatus($;$){ if(defined($paraVal)){ ($p, $s, $v, $o) = split(":", AttrVal($name, $paraName, "")); $o = 0 if(!defined($o)); - $v = ReadingsVal($s, $v, "?") + $o; + $v = ReadingsVal($s, $v, 0) + $o; $dataString = $dataString."&$p=$v"; Log3($name, 4, "owo $name: reading: $paraName $p $s $v"); readingsSingleUpdate($hash, "my_".$p, $v, 1);