Duration Port Is On Per Day

Do you have a question on how to do something.
Ask in here.

Posts: 74
Joined: Mon Aug 05, 2013 3:16 am
PostPosted: Thu Feb 08, 2018 3:52 pm
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?
User avatar
Posts: 2754
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Thu Feb 08, 2018 7:49 pm
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

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 4 guests