2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 23:06:05 +00:00

55_bshGezeiten.pm:

git-svn-id: https://svn.fhem.de/fhem/trunk@15623 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-12-16 20:57:11 +00:00
parent 0f0a1716d9
commit 785bc68f61

View File

@ -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;