add code to use demo data up to start

This commit is contained in:
Marko Oldenburg 2019-03-04 21:34:17 +01:00
parent 3a7303a679
commit 3eaf8f6be5

View File

@ -601,6 +601,10 @@ sub Weather_Notify($$) {
Log3 $hash, 5, Log3 $hash, 5,
"Weather $name: FHEM initialization or rereadcfg triggered update, delay $delay seconds."; "Weather $name: FHEM initialization or rereadcfg triggered update, delay $delay seconds.";
Weather_RearmTimer( $hash, gettimeofday() + $delay ); 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; return undef;
} }