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:
parent
0f0a1716d9
commit
785bc68f61
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user