mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
59_Weather: use demo data up to start then apikey equevalent demo
git-svn-id: https://svn.fhem.de/fhem/trunk@18791 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
087cd0e8d8
commit
063d2c2730
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 59_Weather: use demo data up to start then apikey equevalent demo
|
||||
- feature: 70_ZoneMinder: added attribute 'apiTimeout'
|
||||
- changed: 93_DbLog: minor change of Log entry
|
||||
- changed: 70_Pushover: attribute 'storage' was renamed to 'storagePath'
|
||||
|
@ -602,6 +602,10 @@ sub Weather_Notify($$) {
|
||||
"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