home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Wake via plugin?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="arion_p" data-source="post: 550013" data-attributes="member: 45945"><p>You need to create a "WakeUpHandler" class (there are some implementations already in PowerScheduler to see how it works) and the when your plugin is started register it with PowerScheduler. The wake-up handler is queried at certain times for the next wake up time it wants. This is only for handling wake-up. </p><p></p><p>Scheduling (i.e actually running a task at a specified time) has to be done manually: you can use timers, a sleeping thread polling at regular intervals (e.g. every minute) or by subscribing to the OnPowerSchedulerEvent and poll at every event with type "Elapsed" (which happens once every minute). The latter solution though ties your plugin to PowerScheduler, i.e. scheduling will not work unless PowerScheduler is enabled.</p></blockquote><p></p>
[QUOTE="arion_p, post: 550013, member: 45945"] You need to create a "WakeUpHandler" class (there are some implementations already in PowerScheduler to see how it works) and the when your plugin is started register it with PowerScheduler. The wake-up handler is queried at certain times for the next wake up time it wants. This is only for handling wake-up. Scheduling (i.e actually running a task at a specified time) has to be done manually: you can use timers, a sleeping thread polling at regular intervals (e.g. every minute) or by subscribing to the OnPowerSchedulerEvent and poll at every event with type "Elapsed" (which happens once every minute). The latter solution though ties your plugin to PowerScheduler, i.e. scheduling will not work unless PowerScheduler is enabled. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Wake via plugin?
Contact us
RSS
Top
Bottom