mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
76_SolarForecast.pm: contrib 0.11.0 Preview
git-svn-id: https://svn.fhem.de/fhem/trunk@23963 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c8d89fdd79
commit
1de0d54e0f
@ -1937,7 +1937,7 @@ sub forecastGraphic {
|
||||
}
|
||||
|
||||
$pv{0} = (AttrVal($name, 'Val1', 'forecast') eq 'forecast') ? $val1 : $val2;
|
||||
$co{0} = (AttrVal($name, 'Val2', 'forecast') eq 'forecast') ? $val1 : $val2;
|
||||
$co{0} = (AttrVal($name, 'Val2', '') eq 'forecast') ? $val1 : $val2;
|
||||
$di{0} = $pv{0} - $co{0};
|
||||
|
||||
# User Auswahl überschreiben wenn beide Werte die gleiche Basis haben !
|
||||
@ -2042,7 +2042,7 @@ sub forecastGraphic {
|
||||
}
|
||||
|
||||
$pv{$i} = (AttrVal($name, 'Val1', 'forecast') eq 'forecast') ? $val1 : $val2;
|
||||
$co{$i} = (AttrVal($name, 'Val2', 'forecast') eq 'forecast') ? $val1 : $val2;
|
||||
$co{$i} = (AttrVal($name, 'Val2', '') eq 'forecast') ? $val1 : $val2;
|
||||
|
||||
# sicher stellen das wir keine undefs in der Liste haben !
|
||||
$pv{$i} //= 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user