2
0
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:
LeonGaultier 2019-03-04 20:37:11 +00:00
parent 087cd0e8d8
commit 063d2c2730
2 changed files with 5 additions and 0 deletions

View File

@ -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'

View File

@ -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;
}