add internal MODEL for statistic

This commit is contained in:
Marko Oldenburg 2019-01-18 21:07:48 +01:00
parent d25f5403fb
commit 21081697d6

View File

@ -432,6 +432,7 @@ sub Weather_Define($$) {
$hash->{INTERVAL} = $interval;
$hash->{LANG} = ( (defined($lang) and $lang) ? $lang : lc(AttrVal('global','language','de')) );
$hash->{API} = $api;
$hash->{MODEL} = $api;
$hash->{APIKEY} = $apikey;
$hash->{APIOPTIONS} = $apioptions;
$hash->{READINGS}->{current_date_time}->{TIME}= TimeNow();