Jump to content

Motion Low Battery notification program


gfrancis0

Recommended Posts

Posted
6 hours ago, LarryM said:

@jca001   Much appreciated, thank you for putting that together.

============================================================================================

Then
        $State_Check_MS_Low_Battery  = 1
        Wait  30 seconds
        $State_Check_MS_Low_Battery  = 0

Side note: from my readings, you are using a 'State' variable above to take advantage of the fact that when it changes 

then  FD MS Low Battery Check - [ID 0026][Parent 0060] will be run every time that variable changes.

 

It takes a bit of time getting use to 'Event driven programming'. ;)

 

 

Correct. In the FD MS Low Battery Check program the IF is evaluating 2 variables, one is a State Variable and the other is an Integer Variable. The IF will be evaluated when the State Variable changes value, but it takes both variables being greater than 0 to make the IF true and run the THEN.

 

Yes, Event driven programming takes some getting use to if you have done top down programming.

 

  • Like 1
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.6k
×
×
  • Create New...