mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 15:04:51 +00:00
55_DWD_OpenData: 1.17.0 alpha 2 fix attribute list, fix getStationPos
git-svn-id: https://svn.fhem.de/fhem/trunk@28556 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4f35713096
commit
3cd6785fdc
@ -1,5 +1,5 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# $Id: 55_DWD_OpenData.pm 23798 2024-02-25 18:38:00Z jensb $
|
||||
# $Id: 55_DWD_OpenData.pm 28555 2024-02-25 21:43:49Z jensb $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
=encoding UTF-8
|
||||
@ -1711,6 +1711,7 @@ sub getStationPos {
|
||||
|
||||
my $pos = 0;
|
||||
my $listSize = $placemarkNodeList->size();
|
||||
LOOP:
|
||||
for my $n (1..$listSize) {
|
||||
my $pn = $placemarkNodeList->get_node($n);
|
||||
for my $placemarkChildNode ($pn->nonBlankChildNodes()) {
|
||||
@ -1718,7 +1719,7 @@ sub getStationPos {
|
||||
my $stname = $placemarkChildNode->textContent();
|
||||
if ($stname eq $station) {
|
||||
$pos = $n;
|
||||
break;
|
||||
last LOOP;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2819,7 +2820,7 @@ sub DWD_OpenData_Initialize {
|
||||
$hash->{GetFn} = 'DWD_OpenData::Get';
|
||||
|
||||
$hash->{AttrList} = 'disable:0,1 '
|
||||
.'forecastStation forecastDays forecastProperties forecastResolution:1,3,6 forecastWW2Text:0,1 forecastPruning:0,1 forecastDataPrecision:low,high'
|
||||
.'forecastStation forecastDays forecastProperties forecastResolution:1,3,6 forecastWW2Text:0,1 forecastPruning:0,1 forecastDataPrecision:low,high '
|
||||
.'alertArea alertLanguage:DE,EN alertExcludeEvents '
|
||||
.'timezone '
|
||||
.'downloadTimeout '
|
||||
|
Loading…
x
Reference in New Issue
Block a user