Python Forum
Combining 2 or more scripts to one.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combining 2 or more scripts to one.
#6
Hi,

I managed to get it partially working.
Task 1 and 2 are updating fine, but task 3(with other time.sleep) doesnt do anything.

This is the code regarding the Scheduler .
while True:
 try:

     task1()
     task2()
     time.sleep(60 - time.time() % 60)
     refresh()
     task3()
     time.sleep(300 - time.time() % 300)
     refresh()
 except:
    pass
    time.sleep(1)

else:
 time.sleep(60)
 refresh()
Reply


Messages In This Thread
Combining 2 or more scripts to one. - by Makada - Mar-29-2020, 08:47 PM
RE: Combining 2 or more scripts to one. - by Makada - Mar-30-2020, 05:16 AM
RE: Combining 2 or more scripts to one. - by Makada - Mar-30-2020, 08:20 AM
RE: Combining 2 or more scripts to one. - by Makada - Mar-30-2020, 04:28 PM
RE: Combining 2 or more scripts to one. - by Makada - Mar-31-2020, 10:34 AM
RE: Combining 2 or more scripts to one. - by Makada - Apr-01-2020, 05:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  interloper help appreciated combining two python3 scripts to add new conditions. Ricktoddfrank 0 1,487 Jun-22-2021, 10:24 PM
Last Post: Ricktoddfrank

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020