2016-12-06, 01:12
Would also like to know how to delete cron jobs. I've got one with a typo. Can't edit or delete it from within the addon.
(2012-03-09, 23:12)robweber Wrote: I have to say I'm a little disappointed. Three days and over 100 views later no one seems interested in this type of idea; even after all the "how to automate" type requests that seem to pop up in the forum.Brilliant little script, how do you edit the jobs tho? Cheers
I'm posting a link to what I have coded so far. Hopefully someone will stumble on this and have the know-how to finish up the GUI portion and make it user friendly. As of right now (as reported above) you can certainly add your timers manually via the cron.xml file and view them in the Programs area of XBMC. I added a nextRun() function that will figure out how long until the next run time - may be useful for the GUI or some pop-up notifications.
If anyone is seeing this for the first time and finds it interesting I'd be happy to collaborate on making it better. If downloading - view the README document for information on how to setup the cron.xml file with the correct formatting.
(2017-01-08, 23:53)robweber Wrote: Got a little fed up with the limited GUI functionality myself and ripped it all apart this morning. Anyone interested pull the new version from the repo and try it out. Not quite as pretty as the old one as I tried to use built in Kodi elements rather than skin something custom.
https://github.com/robweber/cronxbmc
19:57:09.402 T:6092 NOTICE: service.cronxbmc-0.0.6 : Cron for Kodi service starting....
19:57:09.420 T:6092 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'module' object has no attribute 'makedir'
Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\Kodi\addons\service.cronxbmc\service.py", line 6, in <module>
CronService().runProgram()
File "C:\Users\admin\AppData\Roaming\Kodi\addons\service.cronxbmc\resources\lib\cron.py", line 155, in __init__
self.manager = CronManager()
File "C:\Users\admin\AppData\Roaming\Kodi\addons\service.cronxbmc\resources\lib\cron.py", line 22, in __init__
self.jobs = self._readCronFile()
File "C:\Users\admin\AppData\Roaming\Kodi\addons\service.cronxbmc\resources\lib\cron.py", line 93, in _readCronFile
xbmcvfs.makedir(xbmc.translatePath(utils.data_dir()))
AttributeError: 'module' object has no attribute 'makedir'
-->End of Python script error report<--
(2017-01-08, 23:53)robweber Wrote: Got a little fed up with the limited GUI functionality myself and ripped it all apart this morning. Anyone interested pull the new version from the repo and try it out. Not quite as pretty as the old one as I tried to use built in Kodi elements rather than skin something custom.My only suggestion would be to allow deleting of jobs from the GUI. While learning cron expressions with your add-on I made some mistakes that would cause it to crash and I would have to run adbLink to delete the cron.xml so I could stat over. Otherwise, it's exactly what I needed. Thanks!
https://github.com/robweber/cronxbmc