From 11d0dcce1060cc90a3ca8afb520c84c41043840a Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sat, 7 Jan 2017 11:39:01 +0000 Subject: [PATCH] Unit.pm: extend condition_weather for nightly weather git-svn-id: https://svn.fhem.de/fhem/trunk@12999 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/Unit.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/Unit.pm b/fhem/FHEM/Unit.pm index aca917c27..9a7246e15 100644 --- a/fhem/FHEM/Unit.pm +++ b/fhem/FHEM/Unit.pm @@ -1281,10 +1281,13 @@ my $rtypes = { condition_weather => { ref_base => 900, txt => { - de => [ 'klar', 'sonnig ', 'bewölkt', 'Regen' ], - en => [ 'clear', 'sunny', 'cloudy', 'rain' ], + de => [ 'klar', 'sonnig', 'bewölkt', 'Regen' ], + en => [ 'clear', 'sunny', 'cloudy', 'rain' ], }, - scope => [ '^(clear|0)$', '^(sunny|1)$', '^(cloudy|2)$', '^(rain|3)$' ], + scope => [ + '^((nt_)?clear|nt_sunny|0)$', '^(sunny|1)$', + '^((nt_)?cloudy|2)$', '^((nt_)?rain|3)$' + ], rtype_description => { de => 'Wetterbedingung', en => 'weather condition',