Raphael Maenle
ee54dd5daa
- credentials still lost the refresh token after a certain event - this was now fixed by completely removing any saves past the first one - https://trello.com/c/iORYLYHl/44-1-check-on-credentials - Color Coding is now updated - fixed an incorrect color mapping in the colors.json - updates some calls to functions to correctly get the natural colors - the incorrect red -> yellow mapping might have to do with the previous credentials error
18 lines
333 B
Python
Executable File
18 lines
333 B
Python
Executable File
#!/usr/bin/env python3
|
|
from backend.Routine import Routine
|
|
import sched, time
|
|
|
|
s = sched.scheduler(time.time, time.sleep)
|
|
routine = Routine()
|
|
|
|
def run_routine(sc):
|
|
# do some stuff
|
|
routine.start()
|
|
|
|
#schedule next routine
|
|
s.enter(600, 1, run_routine, (sc,))
|
|
|
|
routine.start()
|
|
s.enter(600, 1, run_routine, (s, ))
|
|
s.run()
|