mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
73_AutoShuttersControl: fix typo in Event RegEx for Twilight Event
git-svn-id: https://svn.fhem.de/fhem/trunk@18753 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
363e7c4143
commit
21c6e10610
@ -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.
|
||||
- bugfix: 73_AutoShuttersControl: fix typo in Event RegEx for Twilight Event
|
||||
- bugfix: 73_AutoShuttersControl: fix little winrec bug then state opened
|
||||
(max winrec sensors)
|
||||
- feature: DarkSkyAPI: add demo support for FHEM demo konfiguration
|
||||
|
@ -41,7 +41,7 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $version = '0.4.0.8';
|
||||
my $version = '0.4.0.9';
|
||||
|
||||
sub AutoShuttersControl_Initialize($) {
|
||||
my ($hash) = @_;
|
||||
@ -1303,14 +1303,14 @@ sub EventProcessingTwilightDevice($@) {
|
||||
#
|
||||
# Astro
|
||||
# SunAz = azimuth = Sonnenwinkel
|
||||
# SunAlt = evaluation = Sonnenhöhe
|
||||
# SunAlt = elevation = Sonnenhöhe
|
||||
|
||||
if ( $events =~ m#(azimuth|evaluation|SunAz|SunAlt):\s(\d+.\d+)# ) {
|
||||
if ( $events =~ m#(azimuth|elevation|SunAz|SunAlt):\s(\d+.\d+)# ) {
|
||||
my $name = $device;
|
||||
my ( $azimuth, $elevation );
|
||||
|
||||
$azimuth = $2 if ( $1 eq 'azimuth' or $1 eq 'SunAz' );
|
||||
$elevation = $2 if ( $1 eq 'evaluation' or $1 eq 'SunAlt' );
|
||||
$elevation = $2 if ( $1 eq 'elevation' or $1 eq 'SunAlt' );
|
||||
|
||||
$azimuth = $ascDev->getAzimuth
|
||||
if ( not defined($azimuth) and not $azimuth );
|
||||
|
Loading…
x
Reference in New Issue
Block a user