add wundergroundAPI for setter newLocation
This commit is contained in:
parent
7885ec01bd
commit
c45d3be028
@ -572,8 +572,10 @@ sub Weather_Set($@) {
|
|||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
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])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user