Duration Port Is On Per Day

Do you have a question on how to do something.
Ask in here.
Post Reply
dlplunkett44
Posts: 74
Joined: Mon Aug 05, 2013 3:16 am

Duration Port Is On Per Day

Post 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?
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Duration Port Is On Per Day

Post 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
Post Reply