Changes between Version 11 and Version 12 of Proposal


Ignore:
Timestamp:
May 27, 2013, 3:32:45 PM (11 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proposal

    v11 v12  
    7979
    8080        # Check alarm speed
    81         if speed >= self.dp["wind_speed_limit"].value and self.dp["wind_alarm_enable"].value == "Enable":
    82             self.dp["wind_alarm"].value = "Alarm"
     81        if self.dp["wind_alarm_enable"].value == "Enable"
     82            if speed >= self.dp["wind_speed_limit"].value:
     83                self.dp["wind_alarm"].value = "Alarm"
     84            elif speed < self.dp["wind_speed_limit"].value - 5.:
     85                self.dp["wind_alarm"].value = "No alarm"
    8386
    8487# Instanciation of the weather station device object