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 ccd84b1de5
commit 77768afdff

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;