From c45d3be0287d31ff3f52626e62052a8858c9715c Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 13 Sep 2019 11:03:44 +0200 Subject: [PATCH] add wundergroundAPI for setter newLocation --- 59_Weather.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/59_Weather.pm b/59_Weather.pm index f49be9d..ff2eb87 100755 --- a/59_Weather.pm +++ b/59_Weather.pm @@ -572,8 +572,10 @@ sub Weather_Set($@) { return undef; } elsif ( ( @a >= 2 ) && ( $a[1] eq "newLocation" ) ) { - if ( $hash->{API} eq 'DarkSkyAPI' - or $hash->{API} eq 'OpenWeatherMapAPI' ) + if ( $hash->{API} eq 'DarkSkyAPI' + or $hash->{API} eq 'OpenWeatherMapAPI' + or $hash->{API} eq 'wundergroundAPI' + ) { my ($lat,$long); ($lat,$long) = split(',',$a[2])