• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 8
Cron for Kodi - Support Thread (formally CronXBMC)
#46
(2013-07-23, 17:24)robweber Wrote:
(2013-07-23, 08:38)asleep Wrote: Ha all,
How i can download and install XBMC cron with gui?

I've merged everything into the master branch on github, so just downloading the zip or cloning the repo of https://github.com/robweber/cronxbmc.git will get you the addon. From there just get it into the userdata/addons folder of your xbmc install.

Where do I find the zip file? I went to your link and I dont see one...
Reply
#47
On github there is a zip file download in the lower right part of the website. I've cut/pasted the link here for convenience.

https://github.com/robweber/cronxbmc/archive/master.zip
Reply
#48
(2014-04-27, 03:03)robweber Wrote: On github there is a zip file download in the lower right part of the website. I've cut/pasted the link here for convenience.

https://github.com/robweber/cronxbmc/archive/master.zip

Thanks alot. Ive seen alot of those Github pages linked on here in different threads but never understood how to use it. Can't believe I never saw that button before!
Reply
#49
Haven't figured out how to set up an auto library Update. I want it to scan for files at 9am every morning.
I have command:
xbmc.updatelibrary(database)
It says next run 15h 33m
What's the right command for it?
Reply
#50
There are from the cron.xml file the add on generates, so you'll have to figure out how to translate this into what's in the GUI (I started using this before there was a way to edit stuff in the GUI).

Code:
<cron>
<job name="Update Music Library" expression="0 2 * * *" command="UpdateLibrary(music)" show_notification="false" />
<job name="Update Video Library" expression="00 3 * * *" command="UpdateLibrary(video)" show_notification="false" />

I think if you use UpdateLibrary(database) that might do both in one line.
Reply
#51
pkscuot's information should be good enough for setting up the cron command. Just make sure you have the xbmc command right.

If you're only using this to update the library it might just be simpler to use the Library Updater addon as that has a much simpler timer setup. http://addons.xbmc.org/show/service.libraryautoupdate/
Reply
#52
(2014-05-03, 19:45)robweber Wrote: pkscuot's information should be good enough for setting up the cron command. Just make sure you have the xbmc command right.

If you're only using this to update the library it might just be simpler to use the Library Updater addon as that has a much simpler timer setup. http://addons.xbmc.org/show/service.libraryautoupdate/

I did download that originally but it doesn't have a set time that I could see. I download only in the middle of the night so I only need it to update once in the morning. Like at 9am every day. Not every hour..
Reply
#53
The advanced timer in the update addon has a cron timer as well.
Reply
#54
(2014-04-27, 03:06)ThaDraGun Wrote: Thanks alot. Ive seen alot of those Github pages linked on here in different threads but never understood how to use it. Can't believe I never saw that button before!

tell me about it. I must have passed up a half a dozen or more add-ons because I couldn't figure out where on the site to download from.
Reply
#55
Rob,

I found myself here looking for a way to have my library automatically update when a new item is added to the source, and then run the artwork downloader afterwards. As a fallback, a timer to do these two things daily would be okay (on my secondary xbmc, but not my main unit). To do these two tasks, do I set a separate chron for each? Set one at midnight for updatelibrary(video) and one at 1am for runaddon(artwork downloader) ? Also, is this the correct "ID" for artwork downloader?

Now, for my main unit (mine, not the family's system), do you know of an addon that does this? After I backup my new movie, name it (and the folder) properly, then place it into my source, XBMC should notice it after a short time, update the library with it, and then automatically run Artwork Downloader. Does any such beast exist?
Reply
#56
The timing for how you want this to work using something like the Cron addon is correct. You'd have to set a timer for each task to run and separate them a bit. An hour is probably good, although a scan most likely won't take that long. For the addon id XBMC is expecting the name registered when the addon starts. This can be found in the addon.xml file if you have a way to view that. For the artwork downloader it is "script.artwork.downloader".

Regarding your other question. There is an addon called "Watchdog" that will update the library when new files are added. Not sure if it can kick off another addon after a scan though. I've not used it myself but here is a link to it on the addons website.

http://addons.xbmc.org/show/service.watchdog/
Reply
#57
Is there a option that call only work on idle system, not when there is any video or audio playing?
use +/- ⇓⇓⇓⇓⇓⇓⇓
Reply
#58
Could you give me an example of how this would be used? Seems like you either want it to run on a timer or you don't. What is the use of waiting for stuff not to be playing?
Reply
#59
Great add-on. Very usefull
Reply
#60
For example a script which shows notification text box, but instead of timer showing it while video is on, I want it to wait till video ends.
use +/- ⇓⇓⇓⇓⇓⇓⇓
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 8

Logout Mark Read Team Forum Stats Members Help
Cron for Kodi - Support Thread (formally CronXBMC)1