Cron XBMC - Help Wanted

  Thread Rating:
  • 1 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ThaDraGun Offline
Member
Posts: 81
Joined: Dec 2011
Reputation: 0
Post: #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...
find quote
robweber Offline
Posting Freak
Posts: 881
Joined: Sep 2009
Reputation: 26
Post: #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
find quote
ThaDraGun Offline
Member
Posts: 81
Joined: Dec 2011
Reputation: 0
Post: #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!
find quote
ThaDraGun Offline
Member
Posts: 81
Joined: Dec 2011
Reputation: 0
Post: #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?
(This post was last modified: 2014-05-02 22:29 by ThaDraGun.)
find quote
pkscout Offline
Posting Freak
Posts: 1,067
Joined: Jan 2011
Reputation: 23
Location: Honolulu, HI
Post: #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.
find quote
robweber Offline
Posting Freak
Posts: 881
Joined: Sep 2009
Reputation: 26
Post: #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/
find quote
ThaDraGun Offline
Member
Posts: 81
Joined: Dec 2011
Reputation: 0
Post: #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..
find quote
robweber Offline
Posting Freak
Posts: 881
Joined: Sep 2009
Reputation: 26
Post: #53
The advanced timer in the update addon has a cron timer as well.
find quote
Tjoe70s Offline
Junior Member
Posts: 48
Joined: Jan 2014
Reputation: 0
Post: #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.
find quote
Tjoe70s Offline
Junior Member
Posts: 48
Joined: Jan 2014
Reputation: 0
Post: #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?
find quote
robweber Offline
Posting Freak
Posts: 881
Joined: Sep 2009
Reputation: 26
Post: #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/
find quote
Post Reply