Page 1 of 1

Duration Port Is On Per Day

Posted: Thu Feb 08, 2018 3:52 pm
by dlplunkett44
Is there a way to determine how long (seconds) each port was on during the previous day and then display this on a custom screen?

Re: Duration Port Is On Per Day

Posted: Thu Feb 08, 2018 7:49 pm
by binder
there’s nothing built into the libraries to do this. so you would have to write your own code for it.
this could be done several ways. one way would be at midnight, check the status of each port. then whenever the ports status changes, log the current time and compute the elapsed seconds. then keep track of seconds on or off for the day. that’s an oversimplification, but still a starting point.


Sent from my iPad using Tapatalk