From ca107aa1c491cb6e7a156abc16019c359bd3bda4 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sat, 12 Jun 2021 09:24:58 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.52.1 git-svn-id: https://svn.fhem.de/fhem/trunk@24616 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 631a60dd8..fb3c1e576 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -3688,6 +3688,7 @@ sub entryGraphic { lang => AttrVal ("global", 'language', 'EN'), flowgh => AttrVal ($name, 'flowGraphicSize', $defflowGSize), # Größe Energieflußgrafik flowgani => AttrVal ($name, 'flowGraphicAnimate', 0), # Animation Energieflußgrafik + css => AttrVal ($name, 'Css', $cssdef), # Css Styles }; my $ret = q{}; @@ -4778,11 +4779,11 @@ sub _flowGraphic { my $name = $paref->{name}; my $flowgh = $paref->{flowgh}; my $flowgani = $paref->{flowgani}; + my $css = $paref->{css}; my $style = 'width:'.$flowgh.'px; height:'.$flowgh.'px;'; my $fs = $flowgh < 300 ? '48px' : '32px'; my $animation = $flowgani ? '@keyframes dash { to { stroke-dashoffset: 0; } }' : ''; # Animation Ja/Nein - my $css = AttrVal($name, 'Css', $cssdef); my $cpv = ReadingsNum($name, 'Current_PV', 0); my $sun_color = $cpv ? 'flowg sun_active' : 'flowg sun_inactive';