mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
55_bshGezeiten: minor bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
002cc4bc6e
commit
3a376ae53c
@ -150,11 +150,12 @@ sub _bsh_decode($) {
|
||||
$ort = latin1ToUtf8($ort);
|
||||
my @values = $tree->findvalues(q{//table//tr});
|
||||
my $counter = 0;
|
||||
my $year = (split(/ /,localtime(time)))[4];
|
||||
my $year = (localtime(time))[5] + 1900;
|
||||
readingsBeginUpdate($hash);
|
||||
foreach my $v (@values){
|
||||
next if(length($v) < 2);
|
||||
#Sa16.12.HW03:09 4.0<EFBFBD>m
|
||||
#Di03.07.NW11:30 0.6<EFBFBD>m
|
||||
my $d = substr($v,2,6);
|
||||
my $w = substr($v,8,2);
|
||||
$w =~ s/NW/LW/ if (lc(AttrVal($name,'bsh_language',"en")) eq 'en');
|
||||
|
Loading…
x
Reference in New Issue
Block a user