diff --git a/fhem/contrib/betateilchen/55_bshGezeiten.pm b/fhem/contrib/betateilchen/55_bshGezeiten.pm index 60d56af19..678207615 100644 --- a/fhem/contrib/betateilchen/55_bshGezeiten.pm +++ b/fhem/contrib/betateilchen/55_bshGezeiten.pm @@ -56,7 +56,13 @@ sub _bsh_pegel_cb($){ my ($param, $err, $content) = @_; my $hash = $param->{hash}; my $name = $hash->{NAME}; + $hash->{'.content'} = $content; + _bsh_decode($hash,$content); +} +sub _bsh_decode($$) { + my ($hash,$content) = @_; + my $tree= HTML::TreeBuilder::XPath->new; $tree->parse($content); my @ort = $tree->findvalues(q{//strong}); @@ -88,4 +94,5 @@ sub _bsh_pegel_cb($){ readingsEndUpdate($hash,1); } + 1;