Duration Port Is On Per Day
-
- Posts: 74
- Joined: Mon Aug 05, 2013 3:16 am
Duration Port Is On Per Day
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
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
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