change hashRef for parameter from cachemaxage to apioptions

This commit is contained in:
Marko Oldenburg
2019-01-10 10:55:03 +01:00
parent 5b95ea31e4
commit 1a9d7ad760
4 changed files with 35 additions and 4 deletions

View File

@@ -596,7 +596,7 @@ sub Weather_Define($$) {
Weather_LanguageInitialize($hash->{LANG});
my $apistring = $api . '::Weather';
$hash->{fhem}->{api} = $apistring->new( { devName => $hash->{NAME}, apikey => $hash->{APIKEY}, location => $hash->{LOCATION}, cachemaxage => 600, language => $hash->{LANG} } );
$hash->{fhem}->{api} = $apistring->new( { devName => $hash->{NAME}, apikey => $hash->{APIKEY}, location => $hash->{LOCATION}, apioptions => $hash->{APIOPTIONS}, language => $hash->{LANG} } );
Weather_GetUpdate($hash) if($init_done);