0
I need to run a Python script every 1 second for 3-4 hours a day.
This my script updates the data in a table, performs some calculations and takes an action if the calculation rule determines.
Although simple, I could not find something on the forums that could help me to have a direction.
I’d like some suggestions on how I could do that.
I did the test and it worked to run the period. To restrict the hours period, there is some function in this Time library?
– ToroNero Trader
No, but you can do a simple count of: 3h = 60s * 60m * 3h = 10.800s And then change the loop slightly to "while count < 10800" and at the end of it do "count += 1"
– Sérgio B.