2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

76_SolarForecast: contrib 1.34.2

git-svn-id: https://svn.fhem.de/fhem/trunk@29196 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2024-10-04 22:12:59 +00:00
parent aab1ea069e
commit e59731babc

View File

@ -676,14 +676,14 @@ my %htr = ( # H
# Hash Mondphasen # Hash Mondphasen
my %hmoon = ( my %hmoon = (
1 => 'weather_moon_phases_1_new', 0 => { icon => 'weather_moon_phases_1_new', DE => 'Neumond', EN => 'new moon' },
2 => 'weather_moon_phases_2', 1 => { icon => 'weather_moon_phases_2', DE => 'zunehmende Sichel', EN => 'increasing crescent' },
3 => 'weather_moon_phases_3_half', 2 => { icon => 'weather_moon_phases_3_half', DE => 'erstes Viertel', EN => 'first quarter' },
4 => 'weather_moon_phases_4', 3 => { icon => 'weather_moon_phases_4', DE => 'zunehmender Mond', EN => 'waxing moon' },
5 => 'weather_moon_phases_5_full', 4 => { icon => 'weather_moon_phases_5_full', DE => 'Vollmond', EN => 'full moon' },
6 => 'weather_moon_phases_6', 5 => { icon => 'weather_moon_phases_6', DE => 'abnehmender Mond', EN => 'waning moon' },
7 => 'weather_moon_phases_7_half', 6 => { icon => 'weather_moon_phases_7_half', DE => 'letztes Viertel', EN => 'last quarter' },
8 => 'weather_moon_phases_8' 7 => { icon => 'weather_moon_phases_8', DE => 'abnehmende Sichel', EN => 'decreasing crescent' },
); );
my %hqtxt = ( # Hash (Setup) Texte my %hqtxt = ( # Hash (Setup) Texte
@ -14150,8 +14150,8 @@ END0
} }
else { else {
my $moonPhaseI = CurrentVal ($hash, 'moonPhaseI', $moonicondef); my $moonPhaseI = CurrentVal ($hash, 'moonPhaseI', $moonicondef);
$smicon = $hmoon{$moonPhaseI}.'@lightblue'; $smicon = $hmoon{$moonPhaseI}{icon}.'@lightblue';
$smtxt = 'die Sonne ist untergegangen'; $smtxt = $hmoon{$moonPhaseI}{$lang};
} }
$ret .= '<g id="Sonne" fill="grey" transform="translate(355,165),scale(0.12)">'; # translate(X-Koordinate,Y-Koordinate), scale(<Größe>)-> Koordinaten ändern sich bei Größenänderung $ret .= '<g id="Sonne" fill="grey" transform="translate(355,165),scale(0.12)">'; # translate(X-Koordinate,Y-Koordinate), scale(<Größe>)-> Koordinaten ändern sich bei Größenänderung