Reply to thread

I'm doing a plugin which have one thing to do every day. How can I do it the "better" way in MediaPortal ?


Actually, I think I will do it like this :

- When Mp start, start a timer with the elaps time to the next time.

- If MP stop, I kill the timer and end the plugin.

- If timer ok, I will do the work and then start a new timer.


explain with an example  :wink:

==> job every day at 9:00

- start MP at 0:00 => start a timer for 9:00

- start MP at 5:00 => start a timer for 4:00

- timer trigger : do the job and start a new timer for 24:00

- start MP at 10:00 => do the job and start a timer for 23:00


Is it ok ? How can I do this in an other better way ?


Top Bottom