mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
59_Weather: check newLocation value
git-svn-id: https://svn.fhem.de/fhem/trunk@20169 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2ae3a3c896
commit
e14640a195
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 59_Weather: check newLocation value
|
||||
- change: 49_SSCam: release unnecessary allocated memory
|
||||
- new: 70_SolarEdgeAPI: new module
|
||||
- bugfix: 74_AMADautomagicFlowset: fix openApp bug in SetCommand Flow
|
||||
|
@ -581,7 +581,10 @@ sub Weather_Set($@) {
|
||||
($lat,$long) = split(',',$a[2])
|
||||
if ( defined($a[2]) and $a[2] );
|
||||
($lat,$long) = split(',',$hash->{fhem}->{LOCATION})
|
||||
unless ( defined($lat) and defined($long) );
|
||||
unless ( defined($lat)
|
||||
and defined($long)
|
||||
and $lat =~ /(-?\d+(\.\d+)?)/
|
||||
and $long =~ /(-?\d+(\.\d+)?)/ );
|
||||
|
||||
$hash->{fhem}->{api}->setLocation($lat,$long);
|
||||
Weather_DisarmTimer($hash);
|
||||
|
Loading…
Reference in New Issue
Block a user