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

@ -573,7 +573,9 @@ sub Weather_Set($@) {
} }
elsif ( ( @a >= 2 ) && ( $a[1] eq "newLocation" ) ) { elsif ( ( @a >= 2 ) && ( $a[1] eq "newLocation" ) ) {
if ( $hash->{API} eq 'DarkSkyAPI' if ( $hash->{API} eq 'DarkSkyAPI'
or $hash->{API} eq 'OpenWeatherMapAPI' ) or $hash->{API} eq 'OpenWeatherMapAPI'
or $hash->{API} eq 'wundergroundAPI'
)
{ {
my ($lat,$long); my ($lat,$long);
($lat,$long) = split(',',$a[2]) ($lat,$long) = split(',',$a[2])