Moin,
hier mal eine Möglichkeit, mit Snips das Wetter für die nächsten 5 Tage anzusagen. Es wird jeweils der gewählte Tag im 3-Stunden-Rythmus angesagt. Ich hatte das schon mal mit Proplanta realisiert, aber die Abweichung zu Darksky und OWM waren mir für Wilhelmshaven oft zu gravierend.
Mögliche Shortcuts für Snips:
Wie wird das Wetter heute={WetterMorgen(1);}
Wie wird das Wetter morgen={WetterMorgen(9);}
Wie wird das Wetter übermorgen={WetterMorgen(17);}
Wie wird das Wetter in 3 Tagen={WetterMorgen(17);}
Wie wird das Wetter in 4 Tagen={WetterMorgen(25);}
Wie wird das Wetter in 5 Tagen={WetterMorgen(33);}
99_MyUtils:
sub WetterMorgen($) {
my ($no) = @_;
my $wet = "OpenWetterWhv"; # Name des Wetter-Device
# Deklarieren der Variablen
my $i = "";
my $no1 = "";
my $k = 1;
my $h = 6;
my $l ;
my $l1 = 5;
my $u = "";
my $v = "";
my $w = "";
# Ermitteln des ersten Readings
my $h1 = substr(ReadingsVal($wet,"hfc1_pubDate",0), -5, -3);
if ($h1 eq "06")
{$i = 0}
elsif ($h1 eq "09")
{$i = 1}
elsif ($h1 eq "12")
{$i = 2}
elsif ($h1 eq "15")
{$i = 3}
elsif ($h1 eq "18")
{$i = 4}
elsif ($h1 eq "21")
{$i = 5};
if ($no > 1) # wenn nicht Heute
{$no1 = $no-$i}
else {$no1 = $no; # Heute
$l1 = $l1 - $i;
$h = $h1};
my $da = "hfc".$no1."_pubDate";
my $da1 = substr((ReadingsVal($wet,$da,0)), 3, 3); # Nummerisches Datum
my $Mona1 = &Mona(substr((ReadingsVal($wet,$da,0)),-15,4)); # NEU Monatsname ausschreiben
my $da2 = &WoTa(substr((ReadingsVal($wet,$da,0)),0,2))." ".$da1.". ".$Mona1.". "; # Erweitert Tagesname ausschreiben und Datum zusammensetzen
while($l < $l1) {
$k = $no1+$l;
my $we = "hfc".$k."_condition";
my $te = "hfc".$k."_tempHigh";
my $wi = "hfc".$k."_wind";
$u = "Um ".$h." Uhr ist es ".(ReadingsVal($wet,$we,0)).". Die Temperatur beträgt voraussichtlich ".(ReadingsVal($wet,$te,0))." Grad Celsius."." Die Windgeschwindigkeit beträgt ".(ReadingsVal($wet,$wi,0))." Kilometer pro Stunde. ";
$v = $v.$u;
$h += 3;
$l += 1;
}
$w = "Das Wetter vom ".$da2.". ".$v;
return $w;
}
sub WoTa($) {
my ($da3) = @_;
my $da4 ="";
if ($da3 eq "Mo")
{ $da4 = "Montag"; }
elsif ($da3 eq "Di")
{ $da4 = "Dienstag"; }
elsif ($da3 eq "Mi")
{ $da4 = "Mittwoch"; }
elsif ($da3 eq "Do")
{ $da4 = "Donnerstag"; }
elsif ($da3 eq "Fr")
{ $da4 = "Freitag"; }
elsif ($da3 eq "Sa")
{ $da4 = "Samstag"; }
elsif ($da3 eq "So")
{ $da4 = "Sonntag"; };
return $da4;
}
sub Mona($) {
my ($Mon1) = @_;
my $Mon2 ="";
if ($Mon1 eq "Jan")
{ $Mon2 = "Januar"; }
elsif ($Mon1 eq "Feb")
{ $Mon2 = "Februar"; }
elsif ($Mon1 eq "Mär")
{ $Mon2 = "März"; }
elsif ($Mon1 eq "Apr")
{ $Mon2 = "April"; }
elsif ($Mon1 eq "Mai")
{ $Mon2 = "Mai"; }
elsif ($Mon1 eq "Jun")
{ $Mon2 = "Juni"; }
elsif ($Mon1 eq "Jul")
{ $Mon2 = "Juli"; }
elsif ($Mon1 eq "Aug")
{ $Mon2 = "August"; }
elsif ($Mon1 eq "Sep")
{ $Mon2 = "September"; }
elsif ($Mon1 eq "Okt")
{ $Mon2 = "Oktober"; }
elsif ($Mon1 eq "Nov")
{ $Mon2 = "November"; }
elsif ($Mon1 eq "Dez")
{ $Mon2 = "Dezember"; };
return $Mon2;
}
Die Abkürzung Feb wird bei mir als Februar ausgegeben. Sollte es da in Zukunft Probleme geben, werde ich es entsprechend der sub WoTa($) noch erweitern.
Wie befürchtet, ist erledigt
Viel Spaß
Andreas
Hallo Andreas,
ich würde gerne Deine Wettervorhersage verwenden, aber ich habe bis jetzt nicht herausbekommen, wie das Kürzel meiner Stadt (PLZ 72622) lautet. In der 99_MyUtils steht:
my $wet = "OpenWetterWhv"; # Name des Wetter-Device
Wobei das ...Whv ja wohl für Wilhemshaven steht. Wie bist Du auf dieses Kürzel in OpenWeatherMap gekommen? Bitte hilf mir auf die Sprünge, kann das nicht finden ...
Das OpenWetterWhv ... ist das richtig? Sollte das nicht OpenWeatherWhv heißen?
Moin,
du musst ein Weather-Device anlegen und der Name dieses Devices muss dann bei $wet eingetragen werden.
LG
Andreas
https://fhem.de/commandref_DE.html#Weatherdefine
Gruß, Joachim
Moin Andreas
habe deinen Vorschlag bei mir eingebaut, allerdings bekomme ich immer nur den Wetterbericht für heute. Egal was ich sage: Morgen, Übermorgen, egal. Es kommt immer als Antwort der Bericht von heute.
Hier mal ein List vom Wetterdevice:Internals:
API DarkSkyAPI
APIKEY XXXX
APIOPTIONS cachemaxage:600
DEF apikey=XXXX
FUUID 5c42c851-f33f-7f96-4335-dbfbd8a8bfa555e0
INTERVAL 3600
LANG de
LOCATION 52.354500,9.769590
MODEL DarkSkyAPI
NAME Darksky
NOTIFYDEV global
NR 888
NTFY_ORDER 50-Darksky
STATE T: 3 °C F: 93 % W: 11 km/h P: 1028 hPa
TYPE Weather
READINGS:
2019-02-05 19:50:29 apiMaintainer Leon Gaultier (<a href=https://forum.fhem.de/index.php?action=profile;u=13684>CoolTux</a>)
2019-02-05 19:50:29 apiVersion 0.2.4
2019-02-05 19:50:29 apparentTemperature 0
2019-02-05 19:50:29 cloudCover 79
2019-02-05 19:50:29 code 29
2019-02-05 19:50:29 condition Überwiegend bewölkt
2019-02-05 19:50:29 current_date_time Di, 5 Feb 2019 19:50
2019-02-05 19:50:29 dewPoint 2
2019-02-05 19:50:29 fc1_apparentTempHigh 1
2019-02-05 19:50:29 fc1_apparentTempHighTime Di, 5 Feb 2019 17:00
2019-02-05 19:50:29 fc1_apparentTempLow -3
2019-02-05 19:50:29 fc1_apparentTempLowTime Mi, 6 Feb 2019 07:00
2019-02-05 19:50:29 fc1_cloudCover 89
2019-02-05 19:50:29 fc1_code 30
2019-02-05 19:50:29 fc1_condition Den ganzen Tag lang überwiegend bewölkt.
2019-02-05 19:50:29 fc1_day_of_week Di
2019-02-05 19:50:29 fc1_dewPoint 1
2019-02-05 19:50:29 fc1_high_c 4
2019-02-05 19:50:29 fc1_humidity 85
2019-02-05 19:50:29 fc1_icon partly_cloudy
2019-02-05 19:50:29 fc1_iconAPI partly-cloudy-day
2019-02-05 19:50:29 fc1_low_c 0
2019-02-05 19:50:29 fc1_moonPhase 0.02
2019-02-05 19:50:29 fc1_ozone 339.56
2019-02-05 19:50:29 fc1_precipIntensity 0.0203
2019-02-05 19:50:29 fc1_precipIntensityMax 0.0787
2019-02-05 19:50:29 fc1_precipIntensityMaxTime Di, 5 Feb 2019 04:00
2019-02-05 19:50:29 fc1_precipProbability 22
2019-02-05 19:50:29 fc1_precipType rain
2019-02-05 19:50:29 fc1_pressure 1026
2019-02-05 19:50:29 fc1_pubDate Di, 5 Feb 2019 00:00
2019-02-05 19:50:29 fc1_sunriseTime Di, 5 Feb 2019 07:57
2019-02-05 19:50:29 fc1_sunsetTime Di, 5 Feb 2019 17:15
2019-02-05 19:50:29 fc1_tempHigh 4
2019-02-05 19:50:29 fc1_tempHighTime Di, 5 Feb 2019 16:00
2019-02-05 19:50:29 fc1_tempLow 0
2019-02-05 19:50:29 fc1_tempLowTime Mi, 6 Feb 2019 06:00
2019-02-05 19:50:29 fc1_uvIndex 1
2019-02-05 19:50:29 fc1_uvIndexTime Di, 5 Feb 2019 11:00
2019-02-05 19:50:29 fc1_visibility 10
2019-02-05 19:50:29 fc1_wind 15
2019-02-05 19:50:29 fc1_windGust 51
2019-02-05 19:50:29 fc1_windGustTime Di, 5 Feb 2019 00:00
2019-02-05 19:50:29 fc1_wind_condition Wind: WSW 15 km/h
2019-02-05 19:50:29 fc1_wind_direction 240
2019-02-05 19:50:29 fc1_wind_speed 15
2019-02-05 19:50:29 fc2_apparentTempHigh 3
2019-02-05 19:50:29 fc2_apparentTempHighTime Mi, 6 Feb 2019 14:00
2019-02-05 19:50:29 fc2_apparentTempLow 0
2019-02-05 19:50:29 fc2_apparentTempLowTime Do, 7 Feb 2019 08:00
2019-02-05 19:50:29 fc2_cloudCover 83
2019-02-05 19:50:29 fc2_code 20
2019-02-05 19:50:29 fc2_condition Nebel in der Nacht.
2019-02-05 19:50:29 fc2_day_of_week Mi
2019-02-05 19:50:29 fc2_dewPoint 0
2019-02-05 19:50:29 fc2_high_c 7
2019-02-05 19:50:29 fc2_humidity 78
2019-02-05 19:50:29 fc2_icon fog
2019-02-05 19:50:29 fc2_iconAPI fog
2019-02-05 19:50:29 fc2_low_c 4
2019-02-05 19:50:29 fc2_moonPhase 0.05
2019-02-05 19:50:29 fc2_ozone 303.21
2019-02-05 19:50:29 fc2_precipIntensity 0.0737
2019-02-05 19:50:29 fc2_precipIntensityMax 0.3607
2019-02-05 19:50:29 fc2_precipIntensityMaxTime Mi, 6 Feb 2019 23:00
2019-02-05 19:50:29 fc2_precipProbability 42
2019-02-05 19:50:29 fc2_precipType rain
2019-02-05 19:50:29 fc2_pressure 1023
2019-02-05 19:50:29 fc2_pubDate Mi, 6 Feb 2019 00:00
2019-02-05 19:50:29 fc2_sunriseTime Mi, 6 Feb 2019 07:55
2019-02-05 19:50:29 fc2_sunsetTime Mi, 6 Feb 2019 17:17
2019-02-05 19:50:29 fc2_tempHigh 7
2019-02-05 19:50:29 fc2_tempHighTime Mi, 6 Feb 2019 14:00
2019-02-05 19:50:29 fc2_tempLow 4
2019-02-05 19:50:29 fc2_tempLowTime Do, 7 Feb 2019 03:00
2019-02-05 19:50:29 fc2_uvIndex 1
2019-02-05 19:50:29 fc2_uvIndexTime Mi, 6 Feb 2019 11:00
2019-02-05 19:50:29 fc2_visibility 16
2019-02-05 19:50:29 fc2_wind 14
2019-02-05 19:50:29 fc2_windGust 43
2019-02-05 19:50:29 fc2_windGustTime Mi, 6 Feb 2019 11:00
2019-02-05 19:50:29 fc2_wind_condition Wind: SSW 14 km/h
2019-02-05 19:50:29 fc2_wind_direction 200
2019-02-05 19:50:29 fc2_wind_speed 14
2019-02-05 19:50:29 fc3_apparentTempHigh 4
2019-02-05 19:50:29 fc3_apparentTempHighTime Do, 7 Feb 2019 14:00
2019-02-05 19:50:29 fc3_apparentTempLow 0
2019-02-05 19:50:29 fc3_apparentTempLowTime Fr, 8 Feb 2019 00:00
2019-02-05 19:50:29 fc3_cloudCover 95
2019-02-05 19:50:29 fc3_code 20
2019-02-05 19:50:29 fc3_condition Nebel am Abend.
2019-02-05 19:50:29 fc3_day_of_week Do
2019-02-05 19:50:29 fc3_dewPoint 3
2019-02-05 19:50:29 fc3_high_c 8
2019-02-05 19:50:29 fc3_humidity 85
2019-02-05 19:50:29 fc3_icon fog
2019-02-05 19:50:29 fc3_iconAPI fog
2019-02-05 19:50:29 fc3_low_c 5
2019-02-05 19:50:29 fc3_moonPhase 0.08
2019-02-05 19:50:29 fc3_ozone 342.64
2019-02-05 19:50:29 fc3_precipIntensity 0.254
2019-02-05 19:50:29 fc3_precipIntensityMax 0.8534
2019-02-05 19:50:29 fc3_precipIntensityMaxTime Do, 7 Feb 2019 04:00
2019-02-05 19:50:29 fc3_precipProbability 91
2019-02-05 19:50:29 fc3_precipType rain
2019-02-05 19:50:29 fc3_pressure 1011
2019-02-05 19:50:29 fc3_pubDate Do, 7 Feb 2019 00:00
2019-02-05 19:50:29 fc3_sunriseTime Do, 7 Feb 2019 07:53
2019-02-05 19:50:29 fc3_sunsetTime Do, 7 Feb 2019 17:19
2019-02-05 19:50:29 fc3_tempHigh 8
2019-02-05 19:50:29 fc3_tempHighTime Do, 7 Feb 2019 14:00
2019-02-05 19:50:29 fc3_tempLow 5
2019-02-05 19:50:29 fc3_tempLowTime Do, 7 Feb 2019 23:00
2019-02-05 19:50:29 fc3_uvIndex 1
2019-02-05 19:50:29 fc3_uvIndexTime Do, 7 Feb 2019 11:00
2019-02-05 19:50:29 fc3_visibility 7
2019-02-05 19:50:29 fc3_wind 22
2019-02-05 19:50:29 fc3_windGust 47
2019-02-05 19:50:29 fc3_windGustTime Do, 7 Feb 2019 11:00
2019-02-05 19:50:29 fc3_wind_condition Wind: SW 22 km/h
2019-02-05 19:50:29 fc3_wind_direction 218
2019-02-05 19:50:29 fc3_wind_speed 22
2019-02-05 19:50:29 fc4_apparentTempHigh 4
2019-02-05 19:50:29 fc4_apparentTempHighTime Fr, 8 Feb 2019 18:00
2019-02-05 19:50:29 fc4_apparentTempLow 4
2019-02-05 19:50:29 fc4_apparentTempLowTime Fr, 8 Feb 2019 23:00
2019-02-05 19:50:29 fc4_cloudCover 95
2019-02-05 19:50:29 fc4_code 11
2019-02-05 19:50:29 fc4_condition Vormittag und Nachmittag leichter Regen und Nachmittag leichter Wind.
2019-02-05 19:50:29 fc4_day_of_week Fr
2019-02-05 19:50:29 fc4_dewPoint 4
2019-02-05 19:50:29 fc4_high_c 8
2019-02-05 19:50:29 fc4_humidity 87
2019-02-05 19:50:29 fc4_icon chance_of_rain
2019-02-05 19:50:29 fc4_iconAPI rain
2019-02-05 19:50:29 fc4_low_c 8
2019-02-05 19:50:29 fc4_moonPhase 0.11
2019-02-05 19:50:29 fc4_ozone 391.53
2019-02-05 19:50:29 fc4_precipIntensity 0.3683
2019-02-05 19:50:29 fc4_precipIntensityMax 1.1709
2019-02-05 19:50:29 fc4_precipIntensityMaxTime Fr, 8 Feb 2019 07:00
2019-02-05 19:50:29 fc4_precipProbability 89
2019-02-05 19:50:29 fc4_precipType rain
2019-02-05 19:50:29 fc4_pressure 1007
2019-02-05 19:50:29 fc4_pubDate Fr, 8 Feb 2019 00:00
2019-02-05 19:50:29 fc4_sunriseTime Fr, 8 Feb 2019 07:51
2019-02-05 19:50:29 fc4_sunsetTime Fr, 8 Feb 2019 17:21
2019-02-05 19:50:29 fc4_tempHigh 8
2019-02-05 19:50:29 fc4_tempHighTime Fr, 8 Feb 2019 18:00
2019-02-05 19:50:29 fc4_tempLow 8
2019-02-05 19:50:29 fc4_tempLowTime Fr, 8 Feb 2019 23:00
2019-02-05 19:50:29 fc4_uvIndex 1
2019-02-05 19:50:29 fc4_uvIndexTime Fr, 8 Feb 2019 11:00
2019-02-05 19:50:29 fc4_visibility 11
2019-02-05 19:50:29 fc4_wind 26
2019-02-05 19:50:29 fc4_windGust 68
2019-02-05 19:50:29 fc4_windGustTime Fr, 8 Feb 2019 17:00
2019-02-05 19:50:29 fc4_wind_condition Wind: SW 26 km/h
2019-02-05 19:50:29 fc4_wind_direction 227
2019-02-05 19:50:29 fc4_wind_speed 26
2019-02-05 19:50:29 fc5_apparentTempHigh 5
2019-02-05 19:50:29 fc5_apparentTempHighTime Sa, 9 Feb 2019 10:00
2019-02-05 19:50:29 fc5_apparentTempLow 1
2019-02-05 19:50:29 fc5_apparentTempLowTime So, 10 Feb 2019 07:00
2019-02-05 19:50:29 fc5_cloudCover 80
2019-02-05 19:50:29 fc5_code 24
2019-02-05 19:50:29 fc5_condition Den ganzen Tag lang frische Brise sowie überwiegend bewölkt bis abends.
2019-02-05 19:50:29 fc5_day_of_week Sa
2019-02-05 19:50:29 fc5_dewPoint 5
2019-02-05 19:50:29 fc5_high_c 10
2019-02-05 19:50:29 fc5_humidity 76
2019-02-05 19:50:29 fc5_icon windy
2019-02-05 19:50:29 fc5_iconAPI wind
2019-02-05 19:50:29 fc5_low_c 5
2019-02-05 19:50:29 fc5_moonPhase 0.14
2019-02-05 19:50:29 fc5_ozone 360.04
2019-02-05 19:50:29 fc5_precipIntensity 0.0965
2019-02-05 19:50:29 fc5_precipIntensityMax 0.3226
2019-02-05 19:50:29 fc5_precipIntensityMaxTime Sa, 9 Feb 2019 07:00
2019-02-05 19:50:29 fc5_precipProbability 77
2019-02-05 19:50:29 fc5_precipType rain
2019-02-05 19:50:29 fc5_pressure 999
2019-02-05 19:50:29 fc5_pubDate Sa, 9 Feb 2019 00:00
2019-02-05 19:50:29 fc5_sunriseTime Sa, 9 Feb 2019 07:49
2019-02-05 19:50:29 fc5_sunsetTime Sa, 9 Feb 2019 17:22
2019-02-05 19:50:29 fc5_tempHigh 10
2019-02-05 19:50:29 fc5_tempHighTime Sa, 9 Feb 2019 10:00
2019-02-05 19:50:29 fc5_tempLow 5
2019-02-05 19:50:29 fc5_tempLowTime So, 10 Feb 2019 07:00
2019-02-05 19:50:29 fc5_uvIndex 1
2019-02-05 19:50:29 fc5_uvIndexTime Sa, 9 Feb 2019 11:00
2019-02-05 19:50:29 fc5_visibility 16
2019-02-05 19:50:29 fc5_wind 35
2019-02-05 19:50:29 fc5_windGust 87
2019-02-05 19:50:29 fc5_windGustTime Sa, 9 Feb 2019 12:00
2019-02-05 19:50:29 fc5_wind_condition Wind: SW 35 km/h
2019-02-05 19:50:29 fc5_wind_direction 232
2019-02-05 19:50:29 fc5_wind_speed 35
2019-02-05 19:50:29 fc6_apparentTempHigh 6
2019-02-05 19:50:29 fc6_apparentTempHighTime So, 10 Feb 2019 16:00
2019-02-05 19:50:29 fc6_apparentTempLow 0
2019-02-05 19:50:29 fc6_apparentTempLowTime Mo, 11 Feb 2019 08:00
2019-02-05 19:50:29 fc6_cloudCover 43
2019-02-05 19:50:29 fc6_code 11
2019-02-05 19:50:29 fc6_condition Vormittag frische Brise und Nacht Regen.
2019-02-05 19:50:29 fc6_day_of_week So
2019-02-05 19:50:29 fc6_dewPoint 3
2019-02-05 19:50:29 fc6_high_c 9
2019-02-05 19:50:29 fc6_humidity 79
2019-02-05 19:50:29 fc6_icon chance_of_rain
2019-02-05 19:50:29 fc6_iconAPI rain
2019-02-05 19:50:29 fc6_low_c 4
2019-02-05 19:50:29 fc6_moonPhase 0.17
2019-02-05 19:50:29 fc6_ozone 400.66
2019-02-05 19:50:29 fc6_precipIntensity 0.1168
2019-02-05 19:50:29 fc6_precipIntensityMax 0.7798
2019-02-05 19:50:29 fc6_precipIntensityMaxTime So, 10 Feb 2019 23:00
2019-02-05 19:50:29 fc6_precipProbability 67
2019-02-05 19:50:29 fc6_precipType rain
2019-02-05 19:50:29 fc6_pressure 1004
2019-02-05 19:50:29 fc6_pubDate So, 10 Feb 2019 00:00
2019-02-05 19:50:29 fc6_sunriseTime So, 10 Feb 2019 07:48
2019-02-05 19:50:29 fc6_sunsetTime So, 10 Feb 2019 17:24
2019-02-05 19:50:29 fc6_tempHigh 9
2019-02-05 19:50:29 fc6_tempHighTime So, 10 Feb 2019 16:00
2019-02-05 19:50:29 fc6_tempLow 4
2019-02-05 19:50:29 fc6_tempLowTime Mo, 11 Feb 2019 08:00
2019-02-05 19:50:29 fc6_uvIndex 1
2019-02-05 19:50:29 fc6_uvIndexTime So, 10 Feb 2019 11:00
2019-02-05 19:50:29 fc6_visibility 16
2019-02-05 19:50:29 fc6_wind 22
2019-02-05 19:50:29 fc6_windGust 67
2019-02-05 19:50:29 fc6_windGustTime So, 10 Feb 2019 01:00
2019-02-05 19:50:29 fc6_wind_condition Wind: WSW 22 km/h
2019-02-05 19:50:29 fc6_wind_direction 240
2019-02-05 19:50:29 fc6_wind_speed 22
2019-02-05 19:50:29 fc7_apparentTempHigh 3
2019-02-05 19:50:29 fc7_apparentTempHighTime Mo, 11 Feb 2019 16:00
2019-02-05 19:50:29 fc7_apparentTempLow -3
2019-02-05 19:50:29 fc7_apparentTempLowTime Di, 12 Feb 2019 07:00
2019-02-05 19:50:29 fc7_cloudCover 79
2019-02-05 19:50:29 fc7_code 11
2019-02-05 19:50:29 fc7_condition Leichter Regen am Vormittag.
2019-02-05 19:50:29 fc7_day_of_week Mo
2019-02-05 19:50:29 fc7_dewPoint 1
2019-02-05 19:50:29 fc7_high_c 6
2019-02-05 19:50:29 fc7_humidity 81
2019-02-05 19:50:29 fc7_icon chance_of_rain
2019-02-05 19:50:29 fc7_iconAPI rain
2019-02-05 19:50:29 fc7_low_c 0
2019-02-05 19:50:29 fc7_moonPhase 0.21
2019-02-05 19:50:29 fc7_ozone 413.3
2019-02-05 19:50:29 fc7_precipIntensity 0.6096
2019-02-05 19:50:29 fc7_precipIntensityMax 1.7729
2019-02-05 19:50:29 fc7_precipIntensityMaxTime Mo, 11 Feb 2019 01:00
2019-02-05 19:50:29 fc7_precipProbability 96
2019-02-05 19:50:29 fc7_precipType rain
2019-02-05 19:50:29 fc7_pressure 1013
2019-02-05 19:50:29 fc7_pubDate Mo, 11 Feb 2019 00:00
2019-02-05 19:50:29 fc7_sunriseTime Mo, 11 Feb 2019 07:46
2019-02-05 19:50:29 fc7_sunsetTime Mo, 11 Feb 2019 17:26
2019-02-05 19:50:29 fc7_tempHigh 6
2019-02-05 19:50:29 fc7_tempHighTime Mo, 11 Feb 2019 16:00
2019-02-05 19:50:29 fc7_tempLow 0
2019-02-05 19:50:29 fc7_tempLowTime Di, 12 Feb 2019 07:00
2019-02-05 19:50:29 fc7_uvIndex 1
2019-02-05 19:50:29 fc7_uvIndexTime Mo, 11 Feb 2019 11:00
2019-02-05 19:50:29 fc7_visibility 12
2019-02-05 19:50:29 fc7_wind 11
2019-02-05 19:50:29 fc7_windGust 42
2019-02-05 19:50:29 fc7_windGustTime Mo, 11 Feb 2019 20:00
2019-02-05 19:50:29 fc7_wind_condition Wind: NNW 11 km/h
2019-02-05 19:50:29 fc7_wind_direction 341
2019-02-05 19:50:29 fc7_wind_speed 11
2019-02-05 19:50:29 fc8_apparentTempHigh 2
2019-02-05 19:50:29 fc8_apparentTempHighTime Di, 12 Feb 2019 15:00
2019-02-05 19:50:29 fc8_apparentTempLow -3
2019-02-05 19:50:29 fc8_apparentTempLowTime Mi, 13 Feb 2019 07:00
2019-02-05 19:50:29 fc8_cloudCover 48
2019-02-05 19:50:29 fc8_code 29
2019-02-05 19:50:29 fc8_condition Den ganzen Tag lang überwiegend bewölkt.
2019-02-05 19:50:29 fc8_day_of_week Di
2019-02-05 19:50:29 fc8_dewPoint -1
2019-02-05 19:50:29 fc8_high_c 5
2019-02-05 19:50:29 fc8_humidity 77
2019-02-05 19:50:29 fc8_icon partly_cloudy_night
2019-02-05 19:50:29 fc8_iconAPI partly-cloudy-night
2019-02-05 19:50:29 fc8_low_c 0
2019-02-05 19:50:29 fc8_moonPhase 0.24
2019-02-05 19:50:29 fc8_ozone 353.93
2019-02-05 19:50:29 fc8_precipIntensity 0.0025
2019-02-05 19:50:29 fc8_precipIntensityMax 0.0279
2019-02-05 19:50:29 fc8_precipIntensityMaxTime Di, 12 Feb 2019 16:00
2019-02-05 19:50:29 fc8_precipProbability 5
2019-02-05 19:50:29 fc8_precipType rain
2019-02-05 19:50:29 fc8_pressure 1033
2019-02-05 19:50:29 fc8_pubDate Di, 12 Feb 2019 00:00
2019-02-05 19:50:29 fc8_sunriseTime Di, 12 Feb 2019 07:44
2019-02-05 19:50:29 fc8_sunsetTime Di, 12 Feb 2019 17:28
2019-02-05 19:50:29 fc8_tempHigh 5
2019-02-05 19:50:29 fc8_tempHighTime Di, 12 Feb 2019 15:00
2019-02-05 19:50:29 fc8_tempLow 0
2019-02-05 19:50:29 fc8_tempLowTime Mi, 13 Feb 2019 07:00
2019-02-05 19:50:29 fc8_uvIndex 1
2019-02-05 19:50:29 fc8_uvIndexTime Di, 12 Feb 2019 11:00
2019-02-05 19:50:29 fc8_visibility 16
2019-02-05 19:50:29 fc8_wind 12
2019-02-05 19:50:29 fc8_windGust 42
2019-02-05 19:50:29 fc8_windGustTime Di, 12 Feb 2019 09:00
2019-02-05 19:50:29 fc8_wind_condition Wind: NW 12 km/h
2019-02-05 19:50:29 fc8_wind_direction 313
2019-02-05 19:50:29 fc8_wind_speed 12
2019-02-05 19:50:29 hfc10_cloudCover 40
2019-02-05 19:50:29 hfc10_code 29
2019-02-05 19:50:29 hfc10_condition Leicht bewölkt
2019-02-05 19:50:29 hfc10_day_of_week Mi, 04:00
2019-02-05 19:50:29 hfc10_dewPoint -0.7
2019-02-05 19:50:29 hfc10_humidity 89
2019-02-05 19:50:29 hfc10_icon partly_cloudy_night
2019-02-05 19:50:29 hfc10_iconAPI partly-cloudy-night
2019-02-05 19:50:29 hfc10_ozone 308.68
2019-02-05 19:50:29 hfc10_precipIntensity 0
2019-02-05 19:50:29 hfc10_precipProbability 0
2019-02-05 19:50:29 hfc10_precipType -
2019-02-05 19:50:29 hfc10_pressure 1026.5
2019-02-05 19:50:29 hfc10_pubDate Mi, 6 Feb 2019 04:00
2019-02-05 19:50:29 hfc10_temperature 0.9
2019-02-05 19:50:29 hfc10_uvIndex 0
2019-02-05 19:50:29 hfc10_visibility 16.1
2019-02-05 19:50:29 hfc10_wind 10
2019-02-05 19:50:29 hfc10_windGust 18
2019-02-05 19:50:29 hfc10_wind_condition Wind: S 10 km/h
2019-02-05 19:50:29 hfc10_wind_direction 189
2019-02-05 19:50:29 hfc10_wind_speed 10
2019-02-05 19:50:29 hfc11_cloudCover 36
2019-02-05 19:50:29 hfc11_code 29
2019-02-05 19:50:29 hfc11_condition Leicht bewölkt
2019-02-05 19:50:29 hfc11_day_of_week Mi, 05:00
2019-02-05 19:50:29 hfc11_dewPoint -1.0
2019-02-05 19:50:29 hfc11_humidity 90
2019-02-05 19:50:29 hfc11_icon partly_cloudy_night
2019-02-05 19:50:29 hfc11_iconAPI partly-cloudy-night
2019-02-05 19:50:29 hfc11_ozone 307.68
2019-02-05 19:50:29 hfc11_precipIntensity 0
2019-02-05 19:50:29 hfc11_precipProbability 0
2019-02-05 19:50:29 hfc11_precipType -
2019-02-05 19:50:29 hfc11_pressure 1026.0
2019-02-05 19:50:29 hfc11_pubDate Mi, 6 Feb 2019 05:00
2019-02-05 19:50:29 hfc11_temperature 0.5
2019-02-05 19:50:29 hfc11_uvIndex 0
2019-02-05 19:50:29 hfc11_visibility 16.1
2019-02-05 19:50:29 hfc11_wind 11
2019-02-05 19:50:29 hfc11_windGust 23
2019-02-05 19:50:29 hfc11_wind_condition Wind: S 11 km/h
2019-02-05 19:50:29 hfc11_wind_direction 184
2019-02-05 19:50:29 hfc11_wind_speed 11
2019-02-05 19:50:29 hfc12_cloudCover 40
2019-02-05 19:50:29 hfc12_code 29
2019-02-05 19:50:29 hfc12_condition Leicht bewölkt
2019-02-05 19:50:29 hfc12_day_of_week Mi, 06:00
2019-02-05 19:50:29 hfc12_dewPoint -1.5
2019-02-05 19:50:29 hfc12_humidity 89
2019-02-05 19:50:29 hfc12_icon partly_cloudy_night
2019-02-05 19:50:29 hfc12_iconAPI partly-cloudy-night
2019-02-05 19:50:29 hfc12_ozone 307.08
2019-02-05 19:50:29 hfc12_precipIntensity 0
2019-02-05 19:50:29 hfc12_precipProbability 0
2019-02-05 19:50:29 hfc12_precipType -
2019-02-05 19:50:29 hfc12_pressure 1025.6
2019-02-05 19:50:29 hfc12_pubDate Mi, 6 Feb 2019 06:00
2019-02-05 19:50:29 hfc12_temperature 0.2
2019-02-05 19:50:29 hfc12_uvIndex 0
2019-02-05 19:50:29 hfc12_visibility 16.1
2019-02-05 19:50:29 hfc12_wind 12
2019-02-05 19:50:29 hfc12_windGust 28
2019-02-05 19:50:29 hfc12_wind_condition Wind: S 12 km/h
2019-02-05 19:50:29 hfc12_wind_direction 182
2019-02-05 19:50:29 hfc12_wind_speed 12
2019-02-05 19:50:29 hfc13_cloudCover 47
2019-02-05 19:50:29 hfc13_code 29
2019-02-05 19:50:29 hfc13_condition Leicht bewölkt
2019-02-05 19:50:29 hfc13_day_of_week Mi, 07:00
2019-02-05 19:50:29 hfc13_dewPoint -1.8
2019-02-05 19:50:29 hfc13_humidity 86
2019-02-05 19:50:29 hfc13_icon partly_cloudy_night
2019-02-05 19:50:29 hfc13_iconAPI partly-cloudy-night
2019-02-05 19:50:29 hfc13_ozone 306.36
2019-02-05 19:50:29 hfc13_precipIntensity 0
2019-02-05 19:50:29 hfc13_precipProbability 0
2019-02-05 19:50:29 hfc13_precipType -
2019-02-05 19:50:29 hfc13_pressure 1025.1
2019-02-05 19:50:29 hfc13_pubDate Mi, 6 Feb 2019 07:00
2019-02-05 19:50:29 hfc13_temperature 0.2
2019-02-05 19:50:29 hfc13_uvIndex 0
2019-02-05 19:50:29 hfc13_visibility 16.1
2019-02-05 19:50:29 hfc13_wind 14
2019-02-05 19:50:29 hfc13_windGust 33
2019-02-05 19:50:29 hfc13_wind_condition Wind: S 14 km/h
2019-02-05 19:50:29 hfc13_wind_direction 181
2019-02-05 19:50:29 hfc13_wind_speed 14
2019-02-05 19:50:29 hfc14_cloudCover 59
2019-02-05 19:50:29 hfc14_code 29
2019-02-05 19:50:29 hfc14_condition Leicht bewölkt
2019-02-05 19:50:29 hfc14_day_of_week Mi, 08:00
2019-02-05 19:50:29 hfc14_dewPoint -2.0
2019-02-05 19:50:29 hfc14_humidity 84
2019-02-05 19:50:29 hfc14_icon partly_cloudy_night
2019-02-05 19:50:29 hfc14_iconAPI partly-cloudy-night
2019-02-05 19:50:29 hfc14_ozone 305.2
2019-02-05 19:50:29 hfc14_precipIntensity 0
2019-02-05 19:50:29 hfc14_precipProbability 0
2019-02-05 19:50:29 hfc14_precipType -
2019-02-05 19:50:29 hfc14_pressure 1024.7
2019-02-05 19:50:29 hfc14_pubDate Mi, 6 Feb 2019 08:00
2019-02-05 19:50:29 hfc14_temperature 0.5
2019-02-05 19:50:29 hfc14_uvIndex 0
2019-02-05 19:50:29 hfc14_visibility 16.1
2019-02-05 19:50:29 hfc14_wind 15
2019-02-05 19:50:29 hfc14_windGust 37
2019-02-05 19:50:29 hfc14_wind_condition Wind: S 15 km/h
2019-02-05 19:50:29 hfc14_wind_direction 182
2019-02-05 19:50:29 hfc14_wind_speed 15
2019-02-05 19:50:29 hfc15_cloudCover 76
2019-02-05 19:50:29 hfc15_code 30
2019-02-05 19:50:29 hfc15_condition Überwiegend bewölkt
2019-02-05 19:50:29 hfc15_day_of_week Mi, 09:00
2019-02-05 19:50:29 hfc15_dewPoint -2.1
2019-02-05 19:50:29 hfc15_humidity 79
2019-02-05 19:50:29 hfc15_icon partly_cloudy
2019-02-05 19:50:29 hfc15_iconAPI partly-cloudy-day
2019-02-05 19:50:29 hfc15_ozone 303.83
2019-02-05 19:50:29 hfc15_precipIntensity 0
2019-02-05 19:50:29 hfc15_precipProbability 0
2019-02-05 19:50:29 hfc15_precipType -
2019-02-05 19:50:29 hfc15_pressure 1024.3
2019-02-05 19:50:29 hfc15_pubDate Mi, 6 Feb 2019 09:00
2019-02-05 19:50:29 hfc15_temperature 1.1
2019-02-05 19:50:29 hfc15_uvIndex 0
2019-02-05 19:50:29 hfc15_visibility 16.1
2019-02-05 19:50:29 hfc15_wind 16
2019-02-05 19:50:29 hfc15_windGust 40
2019-02-05 19:50:29 hfc15_wind_condition Wind: S 16 km/h
2019-02-05 19:50:29 hfc15_wind_direction 187
2019-02-05 19:50:29 hfc15_wind_speed 16
2019-02-05 19:50:29 hfc16_cloudCover 88
2019-02-05 19:50:29 hfc16_code 30
2019-02-05 19:50:29 hfc16_condition Überwiegend bewölkt
2019-02-05 19:50:29 hfc16_day_of_week Mi, 10:00
2019-02-05 19:50:29 hfc16_dewPoint -2.0
2019-02-05 19:50:29 hfc16_humidity 75
2019-02-05 19:50:29 hfc16_icon partly_cloudy
2019-02-05 19:50:29 hfc16_iconAPI partly-cloudy-day
2019-02-05 19:50:29 hfc16_ozone 302.7
2019-02-05 19:50:29 hfc16_precipIntensity 0
2019-02-05 19:50:29 hfc16_precipProbability 0
2019-02-05 19:50:29 hfc16_precipType -
2019-02-05 19:50:29 hfc16_pressure 1023.9
2019-02-05 19:50:29 hfc16_pubDate Mi, 6 Feb 2019 10:00
2019-02-05 19:50:29 hfc16_temperature 2.1
2019-02-05 19:50:29 hfc16_uvIndex 0
2019-02-05 19:50:29 hfc16_visibility 16.1
2019-02-05 19:50:29 hfc16_wind 17
2019-02-05 19:50:29 hfc16_windGust 42
2019-02-05 19:50:29 hfc16_wind_condition Wind: S 17 km/h
2019-02-05 19:50:29 hfc16_wind_direction 191
2019-02-05 19:50:29 hfc16_wind_speed 17
2019-02-05 19:50:29 hfc17_cloudCover 93
2019-02-05 19:50:29 hfc17_code 30
2019-02-05 19:50:29 hfc17_condition Überwiegend bewölkt
2019-02-05 19:50:29 hfc17_day_of_week Mi, 11:00
2019-02-05 19:50:29 hfc17_dewPoint -1.6
2019-02-05 19:50:29 hfc17_humidity 71
2019-02-05 19:50:29 hfc17_icon partly_cloudy
2019-02-05 19:50:29 hfc17_iconAPI partly-cloudy-day
2019-02-05 19:50:29 hfc17_ozone 301.94
2019-02-05 19:50:29 hfc17_precipIntensity 0
2019-02-05 19:50:29 hfc17_precipProbability 0
2019-02-05 19:50:29 hfc17_precipType -
2019-02-05 19:50:29 hfc17_pressure 1023.3
2019-02-05 19:50:29 hfc17_pubDate Mi, 6 Feb 2019 11:00
2019-02-05 19:50:29 hfc17_temperature 3.2
2019-02-05 19:50:29 hfc17_uvIndex 1
2019-02-05 19:50:29 hfc17_visibility 16.1
2019-02-05 19:50:29 hfc17_wind 17
2019-02-05 19:50:29 hfc17_windGust 43
2019-02-05 19:50:29 hfc17_wind_condition Wind: SSW 17 km/h
2019-02-05 19:50:29 hfc17_wind_direction 197
2019-02-05 19:50:29 hfc17_wind_speed 17
2019-02-05 19:50:29 hfc18_cloudCover 93
2019-02-05 19:50:29 hfc18_code 30
2019-02-05 19:50:29 hfc18_condition Überwiegend bewölkt
2019-02-05 19:50:29 hfc18_day_of_week Mi, 12:00
2019-02-05 19:50:29 hfc18_dewPoint -1.0
2019-02-05 19:50:29 hfc18_humidity 66
2019-02-05 19:50:29 hfc18_icon partly_cloudy
2019-02-05 19:50:29 hfc18_iconAPI partly-cloudy-day
2019-02-05 19:50:29 hfc18_ozone 301.55
2019-02-05 19:50:29 hfc18_precipIntensity 0
2019-02-05 19:50:29 hfc18_precipProbability 0
2019-02-05 19:50:29 hfc18_precipType -
2019-02-05 19:50:29 hfc18_pressure 1022.8
2019-02-05 19:50:29 hfc18_pubDate Mi, 6 Feb 2019 12:00
2019-02-05 19:50:29 hfc18_temperature 4.8
2019-02-05 19:50:29 hfc18_uvIndex 1
2019-02-05 19:50:29 hfc18_visibility 16.1
2019-02-05 19:50:29 hfc18_wind 18
2019-02-05 19:50:29 hfc18_windGust 42
2019-02-05 19:50:29 hfc18_wind_condition Wind: SSW 18 km/h
2019-02-05 19:50:29 hfc18_wind_direction 202
2019-02-05 19:50:29 hfc18_wind_speed 18
2019-02-05 19:50:29 hfc19_cloudCover 94
2019-02-05 19:50:29 hfc19_code 26
2019-02-05 19:50:29 hfc19_condition Stark bewölkt
2019-02-05 19:50:29 hfc19_day_of_week Mi, 13:00
2019-02-05 19:50:29 hfc19_dewPoint -0.4
2019-02-05 19:50:29 hfc19_humidity 64
2019-02-05 19:50:29 hfc19_icon cloudy
2019-02-05 19:50:29 hfc19_iconAPI cloudy
2019-02-05 19:50:29 hfc19_ozone 300.99
2019-02-05 19:50:29 hfc19_precipIntensity 0
2019-02-05 19:50:29 hfc19_precipProbability 0
2019-02-05 19:50:29 hfc19_precipType -
2019-02-05 19:50:29 hfc19_pressure 1022.2
2019-02-05 19:50:29 hfc19_pubDate Mi, 6 Feb 2019 13:00
2019-02-05 19:50:29 hfc19_temperature 5.9
2019-02-05 19:50:29 hfc19_uvIndex 1
2019-02-05 19:50:29 hfc19_visibility 16.1
2019-02-05 19:50:29 hfc19_wind 18
2019-02-05 19:50:29 hfc19_windGust 41
2019-02-05 19:50:29 hfc19_wind_condition Wind: SSW 18 km/h
2019-02-05 19:50:29 hfc19_wind_direction 206
2019-02-05 19:50:29 hfc19_wind_speed 18
2019-02-05 19:50:29 hfc1_cloudCover 75
2019-02-05 19:50:29 hfc1_code 29
2019-02-05 19:50:29 hfc1_condition Überwiegend bewölkt
2019-02-05 19:50:29 hfc1_day_of_week Di, 19:00
2019-02-05 19:50:29 hfc1_dewPoint 2.0
2019-02-05 19:50:29 hfc1_humidity 93
2019-02-05 19:50:29 hfc1_icon partly_cloudy_night
2019-02-05 19:50:29 hfc1_iconAPI partly-cloudy-night
2019-02-05 19:50:29 hfc1_ozone 324.92
2019-02-05 19:50:29 hfc1_precipIntensity 0.0127
2019-02-05 19:50:29 hfc1_precipProbability 2
2019-02-05 19:50:29 hfc1_precipType rain
2019-02-05 19:50:29 hfc1_pressure 1027.4
2019-02-05 19:50:29 hfc1_pubDate Di, 5 Feb 2019 19:00
2019-02-05 19:50:29 hfc1_temperature 3.0
2019-02-05 19:50:29 hfc1_uvIndex 0
2019-02-05 19:50:29 hfc1_visibility 9.1
2019-02-05 19:50:29 hfc1_wind 12
2019-02-05 19:50:29 hfc1_windGust 23
2019-02-05 19:50:29 hfc1_wind_condition Wind: SW 12 km/h
2019-02-05 19:50:29 hfc1_wind_direction 228
2019-02-05 19:50:29 hfc1_wind_speed 12
2019-02-05 19:50:29 hfc20_cloudCover 96
2019-02-05 19:50:29 hfc20_code 26
2019-02-05 19:50:29 hfc20_condition Stark bewölkt
2019-02-05 19:50:29 hfc20_day_of_week Mi, 14:00
2019-02-05 19:50:29 hfc20_dewPoint -0.1
2019-02-05 19:50:29 hfc20_humidity 63
2019-02-05 19:50:29 hfc20_icon cloudy
2019-02-05 19:50:29 hfc20_iconAPI cloudy
2019-02-05 19:50:29 hfc20_ozone 300.55
2019-02-05 19:50:29 hfc20_precipIntensity 0
2019-02-05 19:50:29 hfc20_precipProbability 0
2019-02-05 19:50:29 hfc20_precipType -
2019-02-05 19:50:29 hfc20_pressure 1021.6
2019-02-05 19:50:29 hfc20_pubDate Mi, 6 Feb 2019 14:00
2019-02-05 19:50:29 hfc20_temperature 6.5
2019-02-05 19:50:29 hfc20_uvIndex 1
2019-02-05 19:50:29 hfc20_visibility 16.1
2019-02-05 19:50:29 hfc20_wind 18
2019-02-05 19:50:29 hfc20_windGust 40
2019-02-05 19:50:29 hfc20_wind_condition Wind: SSW 18 km/h
2019-02-05 19:50:29 hfc20_wind_direction 209
2019-02-05 19:50:29 hfc20_wind_speed 18
2019-02-05 19:50:29 hfc21_cloudCover 98
2019-02-05 19:50:29 hfc21_code 26
2019-02-05 19:50:29 hfc21_condition Stark bewölkt
2019-02-05 19:50:29 hfc21_day_of_week Mi, 15:00
2019-02-05 19:50:29 hfc21_dewPoint 0.2
2019-02-05 19:50:29 hfc21_humidity 65
2019-02-05 19:50:29 hfc21_icon cloudy
2019-02-05 19:50:29 hfc21_iconAPI cloudy
2019-02-05 19:50:29 hfc21_ozone 300.06
2019-02-05 19:50:29 hfc21_precipIntensity 0.0127
2019-02-05 19:50:29 hfc21_precipProbability 4
2019-02-05 19:50:29 hfc21_precipType rain
2019-02-05 19:50:29 hfc21_pressure 1021.0
2019-02-05 19:50:29 hfc21_pubDate Mi, 6 Feb 2019 15:00
2019-02-05 19:50:29 hfc21_temperature 6.3
2019-02-05 19:50:29 hfc21_uvIndex 0
2019-02-05 19:50:29 hfc21_visibility 16.1
2019-02-05 19:50:29 hfc21_wind 17
2019-02-05 19:50:29 hfc21_windGust 38
2019-02-05 19:50:29 hfc21_wind_condition Wind: SSW 17 km/h
2019-02-05 19:50:29 hfc21_wind_direction 211
2019-02-05 19:50:29 hfc21_wind_speed 17
2019-02-05 19:50:29 hfc22_cloudCover 99
2019-02-05 19:50:29 hfc22_code 26
2019-02-05 19:50:29 hfc22_condition Stark bewölkt
2019-02-05 19:50:29 hfc22_day_of_week Mi, 16:00
2019-02-05 19:50:29 hfc22_dewPoint 0.3
2019-02-05 19:50:29 hfc22_humidity 66
2019-02-05 19:50:29 hfc22_icon cloudy
2019-02-05 19:50:29 hfc22_iconAPI cloudy
2019-02-05 19:50:29 hfc22_ozone 299.41
2019-02-05 19:50:29 hfc22_precipIntensity 0.033
2019-02-05 19:50:29 hfc22_precipProbability 5
2019-02-05 19:50:29 hfc22_precipType rain
2019-02-05 19:50:29 hfc22_pressure 1020.5
2019-02-05 19:50:29 hfc22_pubDate Mi, 6 Feb 2019 16:00
2019-02-05 19:50:29 hfc22_temperature 6.1
2019-02-05 19:50:29 hfc22_uvIndex 0
2019-02-05 19:50:29 hfc22_visibility 16.1
2019-02-05 19:50:29 hfc22_wind 16
2019-02-05 19:50:29 hfc22_windGust 36
2019-02-05 19:50:29 hfc22_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc22_wind_direction 211
2019-02-05 19:50:29 hfc22_wind_speed 16
2019-02-05 19:50:29 hfc23_cloudCover 100
2019-02-05 19:50:29 hfc23_code 26
2019-02-05 19:50:29 hfc23_condition Stark bewölkt
2019-02-05 19:50:29 hfc23_day_of_week Mi, 17:00
2019-02-05 19:50:29 hfc23_dewPoint 0.2
2019-02-05 19:50:29 hfc23_humidity 69
2019-02-05 19:50:29 hfc23_icon cloudy
2019-02-05 19:50:29 hfc23_iconAPI cloudy
2019-02-05 19:50:29 hfc23_ozone 298.24
2019-02-05 19:50:29 hfc23_precipIntensity 0.0686
2019-02-05 19:50:29 hfc23_precipProbability 13
2019-02-05 19:50:29 hfc23_precipType rain
2019-02-05 19:50:29 hfc23_pressure 1020.2
2019-02-05 19:50:29 hfc23_pubDate Mi, 6 Feb 2019 17:00
2019-02-05 19:50:29 hfc23_temperature 5.4
2019-02-05 19:50:29 hfc23_uvIndex 0
2019-02-05 19:50:29 hfc23_visibility 16.1
2019-02-05 19:50:29 hfc23_wind 16
2019-02-05 19:50:29 hfc23_windGust 36
2019-02-05 19:50:29 hfc23_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc23_wind_direction 211
2019-02-05 19:50:29 hfc23_wind_speed 16
2019-02-05 19:50:29 hfc24_cloudCover 100
2019-02-05 19:50:29 hfc24_code 26
2019-02-05 19:50:29 hfc24_condition Stark bewölkt
2019-02-05 19:50:29 hfc24_day_of_week Mi, 18:00
2019-02-05 19:50:29 hfc24_dewPoint 0.1
2019-02-05 19:50:29 hfc24_humidity 72
2019-02-05 19:50:29 hfc24_icon cloudy
2019-02-05 19:50:29 hfc24_iconAPI cloudy
2019-02-05 19:50:29 hfc24_ozone 296.91
2019-02-05 19:50:29 hfc24_precipIntensity 0.1372
2019-02-05 19:50:29 hfc24_precipProbability 16
2019-02-05 19:50:29 hfc24_precipType rain
2019-02-05 19:50:29 hfc24_pressure 1020.0
2019-02-05 19:50:29 hfc24_pubDate Mi, 6 Feb 2019 18:00
2019-02-05 19:50:29 hfc24_temperature 4.7
2019-02-05 19:50:29 hfc24_uvIndex 0
2019-02-05 19:50:29 hfc24_visibility 13.2
2019-02-05 19:50:29 hfc24_wind 16
2019-02-05 19:50:29 hfc24_windGust 36
2019-02-05 19:50:29 hfc24_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc24_wind_direction 210
2019-02-05 19:50:29 hfc24_wind_speed 16
2019-02-05 19:50:29 hfc25_cloudCover 99
2019-02-05 19:50:29 hfc25_code 26
2019-02-05 19:50:29 hfc25_condition Stark bewölkt
2019-02-05 19:50:29 hfc25_day_of_week Mi, 19:00
2019-02-05 19:50:29 hfc25_dewPoint -0.0
2019-02-05 19:50:29 hfc25_humidity 75
2019-02-05 19:50:29 hfc25_icon cloudy
2019-02-05 19:50:29 hfc25_iconAPI cloudy
2019-02-05 19:50:29 hfc25_ozone 296.02
2019-02-05 19:50:29 hfc25_precipIntensity 0.2159
2019-02-05 19:50:29 hfc25_precipProbability 24
2019-02-05 19:50:29 hfc25_precipType rain
2019-02-05 19:50:29 hfc25_pressure 1019.7
2019-02-05 19:50:29 hfc25_pubDate Mi, 6 Feb 2019 19:00
2019-02-05 19:50:29 hfc25_temperature 4.1
2019-02-05 19:50:29 hfc25_uvIndex 0
2019-02-05 19:50:29 hfc25_visibility 8.6
2019-02-05 19:50:29 hfc25_wind 16
2019-02-05 19:50:29 hfc25_windGust 36
2019-02-05 19:50:29 hfc25_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc25_wind_direction 209
2019-02-05 19:50:29 hfc25_wind_speed 16
2019-02-05 19:50:29 hfc26_cloudCover 100
2019-02-05 19:50:29 hfc26_code 26
2019-02-05 19:50:29 hfc26_condition Stark bewölkt
2019-02-05 19:50:29 hfc26_day_of_week Mi, 20:00
2019-02-05 19:50:29 hfc26_dewPoint 0.0
2019-02-05 19:50:29 hfc26_humidity 76
2019-02-05 19:50:29 hfc26_icon cloudy
2019-02-05 19:50:29 hfc26_iconAPI cloudy
2019-02-05 19:50:29 hfc26_ozone 295.99
2019-02-05 19:50:29 hfc26_precipIntensity 0.2692
2019-02-05 19:50:29 hfc26_precipProbability 30
2019-02-05 19:50:29 hfc26_precipType rain
2019-02-05 19:50:29 hfc26_pressure 1019.3
2019-02-05 19:50:29 hfc26_pubDate Mi, 6 Feb 2019 20:00
2019-02-05 19:50:29 hfc26_temperature 3.9
2019-02-05 19:50:29 hfc26_uvIndex 0
2019-02-05 19:50:29 hfc26_visibility 5.8
2019-02-05 19:50:29 hfc26_wind 16
2019-02-05 19:50:29 hfc26_windGust 34
2019-02-05 19:50:29 hfc26_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc26_wind_direction 207
2019-02-05 19:50:29 hfc26_wind_speed 16
2019-02-05 19:50:29 hfc27_cloudCover 100
2019-02-05 19:50:29 hfc27_code 26
2019-02-05 19:50:29 hfc27_condition Stark bewölkt
2019-02-05 19:50:29 hfc27_day_of_week Mi, 21:00
2019-02-05 19:50:29 hfc27_dewPoint 0.1
2019-02-05 19:50:29 hfc27_humidity 76
2019-02-05 19:50:29 hfc27_icon cloudy
2019-02-05 19:50:29 hfc27_iconAPI cloudy
2019-02-05 19:50:29 hfc27_ozone 296.38
2019-02-05 19:50:29 hfc27_precipIntensity 0.3048
2019-02-05 19:50:29 hfc27_precipProbability 34
2019-02-05 19:50:29 hfc27_precipType rain
2019-02-05 19:50:29 hfc27_pressure 1018.9
2019-02-05 19:50:29 hfc27_pubDate Mi, 6 Feb 2019 21:00
2019-02-05 19:50:29 hfc27_temperature 3.9
2019-02-05 19:50:29 hfc27_uvIndex 0
2019-02-05 19:50:29 hfc27_visibility 3.8
2019-02-05 19:50:29 hfc27_wind 16
2019-02-05 19:50:29 hfc27_windGust 33
2019-02-05 19:50:29 hfc27_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc27_wind_direction 204
2019-02-05 19:50:29 hfc27_wind_speed 16
2019-02-05 19:50:29 hfc28_cloudCover 100
2019-02-05 19:50:29 hfc28_code 20
2019-02-05 19:50:29 hfc28_condition Nebel
2019-02-05 19:50:29 hfc28_day_of_week Mi, 22:00
2019-02-05 19:50:29 hfc28_dewPoint 0.1
2019-02-05 19:50:29 hfc28_humidity 77
2019-02-05 19:50:29 hfc28_icon fog
2019-02-05 19:50:29 hfc28_iconAPI fog
2019-02-05 19:50:29 hfc28_ozone 296.83
2019-02-05 19:50:29 hfc28_precipIntensity 0.3353
2019-02-05 19:50:29 hfc28_precipProbability 35
2019-02-05 19:50:29 hfc28_precipType rain
2019-02-05 19:50:29 hfc28_pressure 1018.4
2019-02-05 19:50:29 hfc28_pubDate Mi, 6 Feb 2019 22:00
2019-02-05 19:50:29 hfc28_temperature 3.8
2019-02-05 19:50:29 hfc28_uvIndex 0
2019-02-05 19:50:29 hfc28_visibility 2.6
2019-02-05 19:50:29 hfc28_wind 16
2019-02-05 19:50:29 hfc28_windGust 32
2019-02-05 19:50:29 hfc28_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc28_wind_direction 202
2019-02-05 19:50:29 hfc28_wind_speed 16
2019-02-05 19:50:29 hfc29_cloudCover 100
2019-02-05 19:50:29 hfc29_code 20
2019-02-05 19:50:29 hfc29_condition Nebel
2019-02-05 19:50:29 hfc29_day_of_week Mi, 23:00
2019-02-05 19:50:29 hfc29_dewPoint 0.3
2019-02-05 19:50:29 hfc29_humidity 79
2019-02-05 19:50:29 hfc29_icon fog
2019-02-05 19:50:29 hfc29_iconAPI fog
2019-02-05 19:50:29 hfc29_ozone 296.73
2019-02-05 19:50:29 hfc29_precipIntensity 0.3607
2019-02-05 19:50:29 hfc29_precipProbability 39
2019-02-05 19:50:29 hfc29_precipType rain
2019-02-05 19:50:29 hfc29_pressure 1018.0
2019-02-05 19:50:29 hfc29_pubDate Mi, 6 Feb 2019 23:00
2019-02-05 19:50:29 hfc29_temperature 3.6
2019-02-05 19:50:29 hfc29_uvIndex 0
2019-02-05 19:50:29 hfc29_visibility 2.6
2019-02-05 19:50:29 hfc29_wind 16
2019-02-05 19:50:29 hfc29_windGust 32
2019-02-05 19:50:29 hfc29_wind_condition Wind: SSW 16 km/h
2019-02-05 19:50:29 hfc29_wind_direction 201
2019-02-05 19:50:29 hfc29_wind_speed 16
2019-02-05 19:50:29 hfc2_cloudCover 80
2019-02-05 19:50:29 hfc2_code 29
2019-02-05 19:50:29 hfc2_condition Überwiegend bewölkt
2019-02-05 19:50:29 hfc2_day_of_week Di, 20:00
2019-02-05 19:50:29 hfc2_dewPoint 1.6
2019-02-05 19:50:29 hfc2_humidity 93
2019-02-05 19:50:29 hfc2_icon partly_cloudy_night
2019-02-05 19:50:29 hfc2_iconAPI partly-cloudy-night
2019-02-05 19:50:29 hfc2_ozone 323.27
2019-02-05 19:50:29 hfc2_precipIntensity 0.0127
2019-02-05 19:50:29 hfc2_precipProbability 1
2019-02-05 19:50:29 hfc2_precipType rain
2019-02-05 19:50:29 hfc2_pressure 1027.6
2019-02-05 19:50:29 hfc2_pubDate Di, 5 Feb 2019 20:00
2019-02-05 19:50:29 hfc2_temperature 2.6
2019-02-05 19:50:29 hfc2_uvIndex 0
2019-02-05 19:50:29 hfc2_visibility 11.4
2019-02-05 19:50:29 hfc2_wind 11
2019-02-05 19:50:29 hfc2_windGust 20
2019-02-05 19:50:29 hfc2_wind_condition Wind: SW 11 km/h
2019-02-05 19:50:29 hfc2_wind_direction 225
2019-02-05 19:50:29 hfc2_wind_speed 11
2019-02-05 19:50:29 hfc30_cloudCover 100
2019-02-05 19:50:29 hfc30_code 26
2019-02-05 19:50:29 hfc30_condition Stark bewölkt
2019-02-05 19:50:29 hfc30_day_of_week Do, 00:00
2019-02-05 19:50:29 hfc30_dewPoint 0.5
2019-02-05 19:50:29 hfc30_humidity 80
2019-02-05 19:50:29 hfc30_icon cloudy
2019-02-05 19:50:29 hfc30_iconAPI cloudy
2019-02-05 19:50:29 hfc30_ozone 296.63
2019-02-05 19:50:29 hfc30_precipIntensity 0.3785
2019-02-05 19:50:29 hfc30_precipProbability 41
2019-02-05 19:50:29 hfc30_precipType rain
2019-02-05 19:50:29 hfc30_pressure 1017.5
Gruss
Enno
Moin,
Du hast auch Darksky, nicht OpenWeatherMap, da sind die Stunden im 1-Stunden-Takt, nicht im 3-Stunden-Takt.
LG
Andreas
Ok das ist eine einfache Erklärung. Dann baue ich das mal für mich um.
Gruss
Enno
@Andreas und Joachim
Da hätte ich noch lange suchen können. :-[ ::) Funktioniert einwandfrei. Danke.
Moin,
Wie befürchtet, werden die Monatsnamen nicht voll ausgelesen. Daher habe ich im ersten Post die 99_MyUtils um die sub für die Monate erweitert und das 'Hauptprogramm' um die entsprechende Zeile ergänzt. Auch die Aufrufparameter in den Shortcuts von Snips wurden geändert.
LG
Andreas
Bei den Shortcuts sind die Zahlen in Klammern aufsteigend jeweils +8. Nur bei übermorgen und in 3 Tagen steht beides Mal 17. Ist das korrekt?
Weiteres Problem: Auf meine Frage: "Wie wird das Wetter heute?" gibt Snips zur Antwort "Das Wetter vom", dann Pause und dann kommen schon die Bewölkung, Temperaturen usw. Also Wochentag und Datum wird nicht (mehr) angesagt :(.
Hinweis: im Code sehe ich nirgends die Verwendung von $Mon2 und $da4 (ohne dass ich jetzt viel davon verstehe).
Moin,
wenn man heute als 1 zählt, ist übermorgen in 3 Tagen. Ich habe es gerade ausprobiert und bekomme das heutige Wetter mit Datumsansage.
LG
Andreas
Hast Du auch die Änderungen im 'Hauptprogramm' gemacht?
my $da1 = substr((ReadingsVal($wet,$da,0)), 3, 3); # Nummerisches Datum
my $Mona1 = &Mona(substr((ReadingsVal($wet,$da,0)),-15,4)); # NEU Monatsname ausschreiben
my $da2 = &WoTa(substr((ReadingsVal($wet,$da,0)),0,2))." ".$da1.". ".$Mona1.". "; # Erweitert Tagesname ausschreiben und Datum zusammensetzen
LG
Andreas
Ich habe den gesamten Code aus Deinem 1. Post kopiert und den Code in meiner 99_myUtils damit ersetzt. Natürlich das Wetter-Device wieder angepasst. Die Shortcuts sind ebenfalls geändert.
Passt das mit den 2x 17? Was sagst Du zu meinem Hinweis bezüglich den Variablen $Mon2 und $da4?
Moin,
das mit dem 2 mal 17 stimmt. s. Antwort 10. Eigentlich sollte es so klappen.
Mit &Mona bzw. &WoTa werden die jeweiligen sub aufgerufen. Mit return wird dann der Wert dort eingesetzt. Die Variablen der subs enthalten nur den entsprechenden Wert und werden als solche im Hauptcode nicht verwendet. Wenn man z.B. nach return das Wort "Hallo" schreibt, würde eben statt des Monats- bzw. Tagesnamen Hallo angesagt.
Wenn Du es jetzt für heute probierst, kommt allerdings nur noch das Datum, da die Ansage nur bis 18.00 Uhr geht.
LG
Andreas
Habe eben FHEM neu gestartet. Keine Änderung. Das Datum wird nicht mehr angesagt. Schade, dass ich zur Gegenprobe den alten Code nicht mehr habe.
Kannst Du mal FHEM neu starten, ob es bei Dir dann immer noch geht?
Moin,
funktioniert. Vielleicht habe ich aber auch einen Kopierfehler beim Kommentieren gemacht. Versuch mal bitte diese:
sub WetterMorgen($) {
my ($no) = @_;
my $wet = "OpenWetterWhv";
my $i = "";
my $no1 = "";
my $k = 1;
my $h = 6;
my $l = "";
my $l1 = 5;
my $u = "";
my $v = "";
my $w = "";
my $h1 = substr(ReadingsVal($wet,"hfc1_pubDate",0), -5, -3);
if ($h1 eq "06")
{$i = 0}
elsif ($h1 eq "09")
{$i = 1}
elsif ($h1 eq "12")
{$i = 2}
elsif ($h1 eq "15")
{$i = 3}
elsif ($h1 eq "18")
{$i = 4}
elsif ($h1 eq "21")
{$i = 5};
if ($no > 1)
{$no1 = $no-$i}
else {$no1 = $no;
$l1 = $l1 - $i;
$h = $h1};
my $da = "hfc".$no1."_pubDate";
my $da1 = substr((ReadingsVal($wet,$da,0)), 3, 3);
my $Mona1 = &Mona(substr((ReadingsVal($wet,$da,0)),-15,4));
my $da2 = &WoTa(substr((ReadingsVal($wet,$da,0)),0,2))." ".$da1.". ".$Mona1.". ";
while($l < $l1) {
$k = $no1+$l;
my $we = "hfc".$k."_condition";
my $te = "hfc".$k."_tempHigh";
my $wi = "hfc".$k."_wind";
$u = "Um ".$h." Uhr ist es ".(ReadingsVal($wet,$we,0)).". Die Temperatur beträgt voraussichtlich ".(ReadingsVal($wet,$te,0))." Grad Celsius."." Die Windgeschwindigkeit beträgt ".(ReadingsVal($wet,$wi,0))." Kilometer pro Stunde. ";
$v = $v.$u;
$h += 3;
$l += 1;
}
$w = "Das Wetter vom ".$da2.". ".$v;
return $w;
}
sub WoTa($) {
my ($da3) = @_;
my $da4 ="";
if ($da3 eq "Mo")
{ $da4 = "Montag"; }
elsif ($da3 eq "Di")
{ $da4 = "Dienstag"; }
elsif ($da3 eq "Mi")
{ $da4 = "Mittwoch"; }
elsif ($da3 eq "Do")
{ $da4 = "Donnerstag"; }
elsif ($da3 eq "Fr")
{ $da4 = "Freitag"; }
elsif ($da3 eq "Sa")
{ $da4 = "Samstag"; }
elsif ($da3 eq "So")
{ $da4 = "Sonntag"; };
return $da4;
}
sub Mona($) {
my ($Mon1) = @_;
my $Mon2 ="";
if ($Mon1 eq "Jan")
{ $Mon2 = "Januar"; }
elsif ($Mon1 eq "Feb")
{ $Mon2 = "Februar"; }
elsif ($Mon1 eq "Mär")
{ $Mon2 = "März"; }
elsif ($Mon1 eq "Apr")
{ $Mon2 = "April"; }
elsif ($Mon1 eq "Mai")
{ $Mon2 = "Mai"; }
elsif ($Mon1 eq "Jun")
{ $Mon2 = "Juni"; }
elsif ($Mon1 eq "Jul")
{ $Mon2 = "Juli"; }
elsif ($Mon1 eq "Aug")
{ $Mon2 = "August"; }
elsif ($Mon1 eq "Sep")
{ $Mon2 = "September"; }
elsif ($Mon1 eq "Okt")
{ $Mon2 = "Oktober"; }
elsif ($Mon1 eq "Nov")
{ $Mon2 = "November"; }
elsif ($Mon1 eq "Dez")
{ $Mon2 = "Dezember"; };
return $Mon2;
}
Hallo,
geht leider auch nicht. Im Logfile bekomme ich folgende Warnmeldung:
PERL WARNING: Argument "" isn't numeric in numeric lt (<) at ./FHEM/99_myUtils.pm line 106.
Ob es damit zusammen hängt? Müsste diese Stelle sein:
my $da2 = &WoTa(substr((ReadingsVal($wet,$da,0)),0,2))." ".$da1.". ".$Mona1.". ";
while($l < $l1) {
$k = $no1+$l;
Die Warnmeldung kam auch schon mit der vorherigen neuen Version.
Moin,
die Warnung habe ich auch. Muss wahrscheinlich in der Variablendeklarierung eine 0 oder 1 reingeschrieben werden. Da es aber trotzdem funktioniert, war und bin ich zu faul, es auszuprobieren.
Das einzige was mir jetzt noch einfällt: Hast Du bei Snips nach dem Ändern der Shortcuts ein 'set Snipsdevice updateModel' ausgeführt?
Ansonsten bin ich leider überfragt, da es bei mir funktioniert.
LG
Andreas
Hallo Andreas,
Snips updateModel habe ich mehrfach ausgeführt.
Könnte ich bei Openweather etwas falsch konfiguriert haben? Hat ja aber schon mal funktioniert, meine ich.
Was mir auffällt: im Wetterdevice sind die Wochentage und der Monat auf englisch. Ist das die Ursache des Problems?
... Muss eigentlich die Ursache sein. Ich mache den Versuch und schreibs auf englische Namen um.
Moin,
dann ist bei Dir die Sprache vom Pi noch auf Englisch. Aber Du könntest Recht haben, da er ja die Namen nicht auflösen kann. Vielleicht hast Du es ja beim letzten Mal zufällig mit einem Montag probiert, da ist die Abkürzung ja gleich.
LG
Andreas
Die Sprache vom Pi ist auf deutsch eingestellt. Kann aber sein, dass auf dem Pi irgendetwas im Argen liegt. Ist auch noch Wheezy drauf. Aber es läuft soweit und ich möchte jetzt deswegen keine größeren Aktionen machen.
Habe jetzt die Umstellung des Codes auf englisch probiert, aber außer den englischen Namensabkürzungen müssen natürlich auch die substr-Berechnungen von 2 auf 3 Zeichen geändert werden. Da tue ich mich gerade ein wenig schwer. Könntest Du mir sagen, an welchen Stellen ich da eingreifen muss?
Moin,
kannst Du mir mal bitte die hfc1-Readings hier posten. Dann schaue ich mir das heute Abend mal an.
LG
Andreas
Hallo Andreas,
hier die gewünschten Readings:
hfc1_cloudCover
0
hfc1_code
35
hfc1_condition
leichter regen
hfc1_day_of_week
Mon, 15:00
hfc1_high_c
9
hfc1_humidity
61
hfc1_icon
heavyrain
hfc1_iconAPI
10d
hfc1_low_c
8
hfc1_pressure
1001
hfc1_pubDate
Mon, 4 Mar 2019 15:00
hfc1_rain3h
0.09
hfc1_snow3h
0.003
hfc1_tempHigh
9
hfc1_tempLow
8
hfc1_temp_c
8
hfc1_temperature
8
hfc1_wind
45
hfc1_wind_speed
45
Hoffe, das reicht so. Werde parallel selbst weiter probieren, ob ich es hinbekomme. Danke für Deine Hilfe.
Bin jetzt ein Stück weiter. Wochentag (Montag) und Tag (4.) werden nun angesagt. Nur beim Monat komme ich nicht weiter, obwohl sich gerade da im März an der Stringposition und Länge (-15,4) nichts geändert haben dürfte. Ist ja nur aus dem "Mär" ein "Mar" geworden. Vorausgesetzt, der hintere Teil des Strings ist in englisch und deutsch gleich. Da brauche ich jetzt Deine Hilfe.
Bei den 4-stelligen Monatsnamen June, July, Sept (sofern die so geliefert werden) braucht man dann wahrscheinlich auch noch eine Sonderbehandlung.
my $l = "";
Das ist ein leerer String. Aber eben ein String. Da kann man nicht mit > oder < arbeiten.
my $l;
So sollte es gehen.
Moin,
@CoolTux
funktioniert, habe es im ersten Post geändert.
@rih
Hier die vollständige Fassung für Englische Readings. Dort muss es -14,3 heißen.
sub WetterMorgen($) {
my ($no) = @_;
my $wet = "OpenWetterWhv";
my $i = "";
my $no1 = "";
my $k = 1;
my $h = 6;
my $l;
my $l1 = 5;
my $u = "";
my $v = "";
my $w = "";
my $h1 = substr(ReadingsVal($wet,"hfc1_pubDate",0), -5, -3);
if ($h1 eq "06")
{$i = 0}
elsif ($h1 eq "09")
{$i = 1}
elsif ($h1 eq "12")
{$i = 2}
elsif ($h1 eq "15")
{$i = 3}
elsif ($h1 eq "18")
{$i = 4}
elsif ($h1 eq "21")
{$i = 5};
if ($no > 1)
{$no1 = $no-$i}
else {$no1 = $no;
$l1 = $l1 - $i;
$h = $h1};
my $da = "hfc".$no1."_pubDate";
my $da1 = substr((ReadingsVal($wet,$da,0)), 4, 3);
my $Mona1 = &Mona(substr((ReadingsVal($wet,$da,0)),-14,3));
my $da2 = &WoTa(substr((ReadingsVal($wet,$da,0)),0,3))." ".$da1.". ".$Mona1.". ";
while($l < $l1) {
$k = $no1+$l;
my $we = "hfc".$k."_condition";
my $te = "hfc".$k."_tempHigh";
my $wi = "hfc".$k."_wind";
$u = "Um ".$h." Uhr ist es ".(ReadingsVal($wet,$we,0)).". Die Temperatur beträgt voraussichtlich ".(ReadingsVal($wet,$te,0))." Grad Celsius."." Die Windgeschwindigkeit beträgt ".(ReadingsVal($wet,$wi,0))." Kilometer pro Stunde. ";
$v = $v.$u;
$h += 3;
$l += 1;
}
$w = "Das Wetter vom ".$da2.". ".$v;
return $w;
}
sub WoTa($) {
my ($da3) = @_;
my $da4 ="";
if ($da3 eq "Mon")
{ $da4 = "Montag"; }
elsif ($da3 eq "Tue")
{ $da4 = "Dienstag"; }
elsif ($da3 eq "Wed")
{ $da4 = "Mittwoch"; }
elsif ($da3 eq "Thu")
{ $da4 = "Donnerstag"; }
elsif ($da3 eq "Fri")
{ $da4 = "Freitag"; }
elsif ($da3 eq "Sat")
{ $da4 = "Samstag"; }
elsif ($da3 eq "Sun")
{ $da4 = "Sonntag"; };
return $da4;
}
sub Mona($) {
my ($Mon1) = @_;
my $Mon2 ="";
if ($Mon1 eq "Jan")
{ $Mon2 = "Januar"; }
elsif ($Mon1 eq "Feb")
{ $Mon2 = "Februar"; }
elsif ($Mon1 eq "Mar")
{ $Mon2 = "März"; }
elsif ($Mon1 eq "Apr")
{ $Mon2 = "April"; }
elsif ($Mon1 eq "May")
{ $Mon2 = "Mai"; }
elsif ($Mon1 eq "Jun")
{ $Mon2 = "Juni"; }
elsif ($Mon1 eq "Jul")
{ $Mon2 = "Juli"; }
elsif ($Mon1 eq "Aug")
{ $Mon2 = "August"; }
elsif ($Mon1 eq "Sep")
{ $Mon2 = "September"; }
elsif ($Mon1 eq "Oct")
{ $Mon2 = "Oktober"; }
elsif ($Mon1 eq "Nov")
{ $Mon2 = "November"; }
elsif ($Mon1 eq "Dec")
{ $Mon2 = "Dezember"; };
return $Mon2;
}
LG
Andreas
my $i = "";
Wäre auch so ein Kandidat ;)
Grüße
Moin,
könnte man das dann bei allen so machen, oder gäbe es dann Deklarationsfehler?
LG
Andreas
Kannst Du bei allen machen, so lange Du später in der Routine erst eine Zuweisung machst bevor Du ab fragst.
Hallo Andreas,
vielen Dank für Deine Hilfe. Nun läuft die Vorhersage korrekt auf meinem "halb-englischen" Pi.
Was den Meinungsaustausch zwischen Dir und CoolTux anbelangt: da scheint es nun doch zu Deklarationswarnungen zu kommen.
2019.03.04 18:15:05 1: PERL WARNING: Use of uninitialized value $l in numeric lt (<) at ./FHEM/99_myUtils.pm line 106.
2019.03.04 18:15:05 1: PERL WARNING: Use of uninitialized value $l in addition (+) at ./FHEM/99_myUtils.pm line 107.
Moin,
OT
Wenn Du ihn irgendwann auf Komplett-Deutsch umstellen möchtest:
sudo raspi-config
Punkt 4 Localisation Options
Chang Locale
und dann nicht nur bei de_DE.utf-8 das Kreuz setzen, sondern auch bei en_GB rausnehmen.
/OT
LG
Andreas
Das habe ich wegen einem ähnlichen Fall schon alles durchprobiert. Die aktuelle Einstellung ist so wie von Dir vorgeschlagen.
Der richtige Weg wird wohl sein, endlich auf Stretch umzustellen. Schon aus Sicherheitsgründen.
ZitatMoin,
wenn man heute als 1 zählt, ist übermorgen in 3 Tagen. Ich habe es gerade ausprobiert und bekomme das heutige Wetter mit Datumsansage.
LG
Andreas
Hallo Andreas,
muss das leider nochmal hervor holen. Mit der 17 im Shortcut bei übermorgen und in 3 Tagen bekomme ich beide Male den gleichen Tag, nähmlich übermorgen angesagt. Ist ja auch logisch.
Egal, ob heute als 0 oder 1 zählt: übermorgen ist in zwei Tagen ;D. Heisst in den Shortcuts: heute=1, morgen=9, übermorgen=in 2 Tagen=17, in 3 Tagen=25, in 4 Tagen=33, in 5 Tagen=41. Hab's getestet und funktioniert so einwandfrei.
Moin,
ich rechne, vielleicht auch als Einziger, eben anders. Aber zum Glück sind die Aufrufe ja nicht in Stein gemeisselt, sondern können individuell angepasst werden, solange man den 8er Abstand einhält.
LG
Amdreas