Skip to content

Commit

Permalink
Merge pull request #36 from fhem/development/3.0
Browse files Browse the repository at this point in the history
#35 typo: precipiation → precipitation
  • Loading branch information
christoph-morrison committed Apr 13, 2020
2 parents 0862e30 + 2f3323a commit 6bd81eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions FHEM/59_Buienradar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ use Readonly;
=pod
Settings
=cut
Readonly our $version => '3.0.3';
Readonly our $version => '3.0.4';
Readonly our $default_interval => ONE_MINUTE * 2;

=pod
Expand All @@ -70,7 +70,7 @@ Readonly our %Translations => (
'en' => 'mm/h',
},
'title' => {
'de' => 'Niederschlagsvorhersage für %s, %s',
'de' => 'Niederschlagsvorhersage für %s, %s',
'en' => 'Precipitation forecast for %s, %s',
},
'legend' => {
Expand Down Expand Up @@ -576,7 +576,7 @@ sub GChart {
my $data = join ', ', map {
my ($k, $v) = (
POSIX::strftime('%H:%M', localtime $storedData{$_}{'start'}),
sprintf('%.3f', $storedData{$_}{'precipiation'})
sprintf('%.3f', $storedData{$_}{'precipitation'})
);
qq{['$k', $v]}
} sort keys %storedData;
Expand Down Expand Up @@ -691,7 +691,7 @@ sub LogProxy {
join(
q{ }, (
POSIX::strftime('%F_%T', localtime $data{$_}{'start'}),
sprintf('%.3f', $data{$_}{'precipiation'})
sprintf('%.3f', $data{$_}{'precipitation'})
)
)
} keys %data),
Expand Down Expand Up @@ -721,9 +721,9 @@ sub TextChart {
my $data = join '\n', map {
my ($time, $precip, $bar) = (
POSIX::strftime('%H:%M', localtime $storedData{$_}{'start'}),
sprintf('% 7.3f', $storedData{$_}{'precipiation'}),
sprintf('% 7.3f', $storedData{$_}{'precipitation'}),
# @todo
(($storedData{$_}{'precipiation'} < 5) ? q{=} x POSIX::lround(abs($storedData{$_}{'precipiation'} * 10)) : (q{=} x 50) . q{>}),
(($storedData{$_}{'precipitation'} < 5) ? q{=} x POSIX::lround(abs($storedData{$_}{'precipitation'} * 10)) : (q{=} x 50) . q{>}),
);
qq[$time | $precip | $bar]
} sort keys %storedData;
Expand Down Expand Up @@ -845,9 +845,9 @@ sub ParseHttpResponse {
}

$precipitation_forecast{$start} = {
'start' => $start,
'end' => $end,
'precipiation' => $precip,
'start' => $start,
'end' => $end,
'precipitation' => $precip,
};
}

Expand Down
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"release_status": "development",
"license": "Unlicense",
"version": "3.0.3",
"version": "3.0.4",
"author": [
"Christoph Morrison <post@christoph-jeschke.de>"
],
Expand Down

0 comments on commit 6bd81eb

Please sign in to comment.