Cron for Kodi - Support Thread (formally CronXBMC)
#1
I've started writing an addon that will be a growth of the current XBMC Library Updater addon. Basicaly rather than just update your library, I want to make an addon that will let you schedule multiple XBMC functions to run via a cron-like scheduler. All of your timers can now be handled directly within XBMC.

Examples include:

Rebooting
Restart XBMC
Take a Screenshot
Run another Addon or Script
Play Media
Refresh RSS
Send a Notification
Set XBMC Volume
Update Music/Video Libraries

Additionally you can specifiy your timers to display an XBMC notification when they run. With most of the pieces were already in place from the updater addon I didn't think this would be too difficult.

What It Can Do So Far:

The cron jobs themselves are in an xml format

Code:
<job name="Job Name" expression="* * * * *" command="XBMCCommand()" show_notification="true/false" />

This will also allow some growth if we want to include other things via the GUI in time.

I also have a basic GUI started (see screenshot). I tried to modify the the RSS Editor addon dialog to serve as a job creator/editor, but this is where I got stuck.

Update - 01/08/2017

After growing rather frustrated with the dated GUI code I started over. New version is for Jarvis+ and uses Kodi integrated GUI elements for the display. Not quite as pretty as the old one but all the functionality is there.

Update - 4/22/2012

I've moved all the code for this addon to Github. I'm trying to consolidate all my projects there, plus it will be easier for someone to pick up with should anyone ever be interested. Everything in the release is exactly the same, just a new location.

Cron XBMC on Github - https://github.com/robweber/cronxbmc

Update - 3/02/2015

Due to some interest by third party developers I've updated this addon for Helix to use some more updated service addon functions. I've also added a module extension point so you can import the service.cronxbmc module in your own addons. To interface with the cron.xml file via the CronManager to so as follows:

Code:
from cron import CronManager,CronJob

manager = CronManager()

#get jobs
jobs = manager.getJobs()

#delete a job
manager.deleteJob(job.id)

#add a job
job = CronJob()
job.name = "name"
job.command = "Shutdown"
job.expression = "0 0 * * *"
job.show_notification = "false"

manager.addJob(job)

#Please be aware that adding or removing a job will change the job list (and change job ids) so please refresh your job list each time by using:

jobs = manager.getJobs()

#This will also pull in any new jobs that may have been added via other methods
Reply


Messages In This Thread
Cron for Kodi - Support Thread (formally CronXBMC) - by robweber - 2012-03-07, 00:06
RE: Cron XBMC - Help Wanted - by robweber - 2012-03-09, 23:12
RE: Cron XBMC - Support Thread - by kirkydman - 2016-12-27, 13:34
[No subject] - by GJones - 2012-03-09, 23:48
[No subject] - by HansMayer - 2012-03-10, 00:10
[No subject] - by robweber - 2012-03-10, 01:05
[No subject] - by HansMayer - 2012-03-10, 05:04
[No subject] - by robweber - 2012-03-10, 23:40
RE: Cron XBMC - Help Wanted - by Khendon - 2012-03-14, 11:32
RE: Cron XBMC - Help Wanted - by wilson.joe - 2012-03-21, 21:16
RE: Cron XBMC - Help Wanted - by LoL - 2012-03-23, 22:16
RE: Cron XBMC - Help Wanted - by backspace - 2012-04-03, 03:54
RE: Cron XBMC - Help Wanted - by robweber - 2012-04-03, 16:51
RE: Cron XBMC - Help Wanted - by backspace - 2012-04-03, 22:49
RE: Cron XBMC - Help Wanted - by backspace - 2012-11-01, 21:51
RE: Cron XBMC - Help Wanted - by robweber - 2012-11-02, 15:34
RE: Cron XBMC - Help Wanted - by backspace - 2012-11-03, 02:58
RE: Cron XBMC - Help Wanted - by robweber - 2012-11-03, 03:29
RE: Cron XBMC - Help Wanted - by backspace - 2012-11-05, 01:03
RE: Cron XBMC - Help Wanted - by robweber - 2012-11-05, 17:48
RE: Cron XBMC - Help Wanted - by backspace - 2012-11-08, 10:41
RE: Cron XBMC - Help Wanted - by dspolleke - 2013-01-19, 10:30
RE: Cron XBMC - Help Wanted - by robweber - 2013-01-20, 17:33
RE: Cron XBMC - Help Wanted - by Ferrari - 2013-01-21, 14:22
RE: Cron XBMC - Help Wanted - by robweber - 2013-01-21, 16:56
RE: Cron XBMC - Help Wanted - by Ferrari - 2013-01-22, 14:37
RE: Cron XBMC - Help Wanted - by Kr0nZ - 2013-01-26, 01:02
RE: Cron XBMC - Help Wanted - by robweber - 2013-01-26, 17:31
RE: Cron XBMC - Help Wanted - by backspace - 2013-01-27, 22:39
RE: Cron XBMC - Help Wanted - by robweber - 2013-01-28, 18:05
RE: Cron XBMC - Help Wanted - by Kr0nZ - 2013-02-02, 10:04
RE: Cron XBMC - Help Wanted - by Ferrari - 2013-02-22, 14:24
RE: Cron XBMC - Help Wanted - by robweber - 2013-02-23, 04:38
RE: Cron XBMC - Help Wanted - by backspace - 2013-07-04, 01:41
RE: Cron XBMC - Help Wanted - by robweber - 2013-07-04, 20:27
RE: Cron XBMC - Help Wanted - by asleep - 2013-07-23, 08:38
RE: Cron XBMC - Help Wanted - by robweber - 2013-07-23, 17:24
RE: Cron XBMC - Help Wanted - by ThaDraGun - 2014-04-27, 01:02
RE: Cron XBMC - Help Wanted - by yomammary - 2013-08-13, 22:45
RE: Cron XBMC - Help Wanted - by robweber - 2013-08-14, 16:42
RE: Cron XBMC - Help Wanted - by yomammary - 2013-08-15, 19:22
RE: Cron XBMC - Help Wanted - by Frozin - 2013-11-09, 08:15
RE: Cron XBMC - Help Wanted - by robweber - 2013-11-11, 16:24
RE: Cron XBMC - Help Wanted - by gogiman - 2013-11-14, 21:56
RE: Cron XBMC - Help Wanted - by robweber - 2013-11-15, 17:17
RE: Cron XBMC - Help Wanted - by pieman - 2015-02-28, 15:48
RE: Cron XBMC - Help Wanted - by cronito - 2014-04-06, 04:21
RE: Cron XBMC - Help Wanted - by robweber - 2014-04-07, 19:23
RE: Cron XBMC - Help Wanted - by robweber - 2014-04-27, 03:03
RE: Cron XBMC - Help Wanted - by ThaDraGun - 2014-04-27, 03:06
RE: Cron XBMC - Help Wanted - by Tjoe70s - 2014-05-07, 18:40
RE: Cron XBMC - Help Wanted - by ThaDraGun - 2014-05-02, 22:28
RE: Cron XBMC - Help Wanted - by pkscout - 2014-05-03, 04:29
RE: Cron XBMC - Help Wanted - by robweber - 2014-05-03, 19:45
RE: Cron XBMC - Help Wanted - by robweber - 2014-05-04, 01:20
RE: Cron XBMC - Help Wanted - by Tjoe70s - 2014-05-07, 19:13
RE: Cron XBMC - Help Wanted - by robweber - 2014-05-08, 19:16
RE: Cron XBMC - Help Wanted - by ykhehra1 - 2014-11-24, 23:49
RE: Cron XBMC - Help Wanted - by robweber - 2014-11-25, 16:09
RE: Cron XBMC - Help Wanted - by ysilvela - 2015-01-12, 17:20
RE: Cron XBMC - Help Wanted - by ykhehra1 - 2015-01-21, 05:37
RE: Cron XBMC - Help Wanted - by el_Paraguayo - 2015-01-21, 14:44
RE: Cron XBMC - Help Wanted - by robweber - 2015-03-02, 21:09
RE: Cron XBMC - Help Wanted - by pieman - 2015-03-02, 21:18
RE: Cron XBMC - Support Thread - by pieman - 2015-03-04, 01:21
RE: Cron XBMC - Support Thread - by robweber - 2015-03-02, 21:21
RE: Cron XBMC - Support Thread - by pieman - 2015-03-02, 21:26
RE: Cron XBMC - Support Thread - by robweber - 2015-03-02, 23:34
RE: Cron XBMC - Support Thread - by pieman - 2015-03-02, 23:56
RE: Cron XBMC - Support Thread - by robweber - 2015-03-03, 01:37
RE: Cron XBMC - Support Thread - by pieman - 2015-03-03, 01:40
RE: Cron XBMC - Support Thread - by robweber - 2015-03-03, 05:49
RE: Cron XBMC - Support Thread - by pieman - 2015-03-04, 02:00
RE: Cron XBMC - Support Thread - by robweber - 2015-03-05, 06:01
RE: Cron XBMC - Support Thread - by privado - 2015-03-25, 01:56
RE: Cron XBMC - Support Thread - by Julipo - 2015-03-31, 20:09
RE: Cron XBMC - Support Thread - by meowmoo - 2015-10-12, 00:26
RE: Cron XBMC - Support Thread - by pkscout - 2015-10-13, 08:02
RE: Cron XBMC - Support Thread - by meowmoo - 2015-10-13, 21:38
RE: Cron XBMC - Support Thread - by robweber - 2015-10-15, 23:02
RE: Cron XBMC - Support Thread - by robweber - 2015-10-16, 15:38
RE: Cron XBMC - Support Thread - by pkscout - 2015-10-18, 08:44
RE: Cron XBMC - Support Thread - by meowmoo - 2015-10-18, 16:15
RE: Cron XBMC - Support Thread - by robweber - 2015-10-19, 14:58
RE: Cron XBMC - Support Thread - by Morphy99 - 2015-11-20, 21:38
RE: Cron XBMC - Support Thread - by MikeKL - 2016-08-18, 19:21
RE: Cron XBMC - Support Thread - by wgstarks - 2016-12-03, 01:01
RE: Cron XBMC - Support Thread - by wgstarks - 2016-12-06, 01:12
RE: Cron XBMC - Support Thread - by kirkydman - 2016-12-26, 16:41
RE: Cron XBMC - Support Thread - by kirkydman - 2016-12-26, 16:54
RE: Cron XBMC - Support Thread - by wgstarks - 2016-12-27, 14:33
RE: Cron XBMC - Support Thread - by robweber - 2017-01-08, 05:38
Logout Mark Read Team Forum Stats Members Help
Cron for Kodi - Support Thread (formally CronXBMC)1