add wundergroundAPI for setter newLocation

This commit is contained in:
Marko Oldenburg 2019-09-13 11:03:44 +02:00
parent 7885ec01bd
commit c45d3be028

View File

@ -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])