add code to use demo data up to start
This commit is contained in:
parent
3a7303a679
commit
3eaf8f6be5
@ -601,6 +601,10 @@ sub Weather_Notify($$) {
|
||||
Log3 $hash, 5,
|
||||
"Weather $name: FHEM initialization or rereadcfg triggered update, delay $delay seconds.";
|
||||
Weather_RearmTimer( $hash, gettimeofday() + $delay );
|
||||
|
||||
### quick run GetUpdate then Demo
|
||||
Weather_GetUpdate( $hash )
|
||||
if ( defined($hash->{APIKEY}) and lc($hash->{APIKEY}) eq 'demo' );
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user