Dan is probably the best person to answer this question, but I can provide a starting point. If you look at OSPi.py, there is a function called:
I believe that’s the main loop.
p.s. I get lots of requests from users about customizing the software. A lot of the customizations are actually very easy to implement if you have some programming skills. If you are not familiar with programming, I think this provides a good motivation to learn programming 🙂