mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
PROPLANTA: Define changed
git-svn-id: https://svn.fhem.de/fhem/trunk@6844 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5a993638b6
commit
5e7e7a2bb7
@ -224,9 +224,9 @@ sub PROPLANTA_Define($$)
|
||||
my @a = split( "[ \t][ \t]*", $def );
|
||||
if ( int(@a) < 3 )
|
||||
{
|
||||
return "Wrong syntax: use define <name> PROPLANTA";
|
||||
return "Wrong syntax: use define <name> PROPLANTA <city>";
|
||||
}
|
||||
$hash->{URL} = $a[2];
|
||||
$hash->{URL} = "http://www.proplanta.de/Wetter/".$a[2]."-Wetter.html";
|
||||
|
||||
$hash->{STATE} = "Initializing";
|
||||
$hash->{helper}{Timer} = $name ;
|
||||
@ -437,7 +437,7 @@ sub PROPLANTA_Timer($)
|
||||
<b>Define</b>
|
||||
<ul>
|
||||
<br>
|
||||
<code>define <name> PROPLANTA http://www.proplanta.de/Wetter/<city>-Wetter.html</code>
|
||||
<code>define <name> PROPLANTA <city></code>
|
||||
<br>
|
||||
The module extracts certain weather data from the above web page.<br/>
|
||||
<br>
|
||||
|
Loading…
Reference in New Issue
Block a user