2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

fixed: missing error message if no message for WARNCELLID available

git-svn-id: https://svn.fhem.de/fhem/trunk@3644 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2013-08-09 15:42:58 +00:00
parent a19f89bee4
commit 179a1994ed

View File

@ -320,7 +320,11 @@ sub GDS_Get($@) {
$datensatz = $capCityHash{$parameter};
}
CommandDeleteReading(undef, "$name a_.*");
decodeCAPData($hash, $datensatz);
if($datensatz){
decodeCAPData($hash, $datensatz);
} else {
$result = "Keine Warnmeldung für die gesuchte Region vorhanden.";
}
break;
}
@ -354,10 +358,6 @@ sub GDS_Get($@) {
break;
}
when("map"){
$result = "<html><body><img src=\"/tmp/Deutschland_20130806_2215.jpg\" ></body></html>";
}
default { return $usage; };
}
return $result;
@ -514,6 +514,7 @@ sub buildCAPList(){
$capCity =~ s/\s/_/g;
$capCityHash{$capCity} = $n;
$capCellHash{"$capCell"} = $n;
Log 1, "I: $info A: $area City: $capCity Cell: $capCell";
$area++;
$record++;
$capCity = undef;