Directory Watchdog - Background file monitor service to initiate auto update library?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sireone Offline
Junior Member
Posts: 36
Joined: Jun 2009
Reputation: 3
Lightbulb  Directory Watchdog - Background file monitor service to initiate auto update library? Post: #1
I've been searching and searching and it seems that one feature that needs to be implemented in the next update is Automatically Updating of the video library in XBMC Live!. They took one step forward and added 'Update on Startup', but what we really need is updating at specified intervals.

I did some searching and found some scripts (based on xbmc-eventclients-xbmc-send), but then realized that Camelot 9.11 does not contain cron.

If anyone has any ideas, lemme know,

Thanks,
find quote
hikaricore Offline
Posting Freak
Posts: 1,516
Joined: Dec 2008
Reputation: 0
Location: Tuesday
Post: #2
Why not just map an unused button on your remote?
Does the trick for me.

[Image: output.jpg]
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,703
Joined: May 2004
Reputation: 12
Post: #3
Install cron, live is just a stripped ubuntu.
find quote
robweber Offline
Fan
Posts: 599
Joined: Sep 2009
Reputation: 15
Post: #4
While the suggested solutions all 'work', the fact remains that it requires some additional setup (some platform dependent) for something that could easily be solved with a setting in XBMC where you set the time of day and it just does it.
find quote
sireone Offline
Junior Member
Posts: 36
Joined: Jun 2009
Reputation: 3
Post: #5
Am i missing something here?

Quote:xbmc@XBMCLive:~$ sudo apt-get install cron
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package cron
xbmc@XBMCLive:~$ sudo apt-get install crond
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package crond
xbmc@XBMCLive:~$
find quote
wstewart Offline
Senior Member
Posts: 213
Joined: Jan 2009
Reputation: 1
Location: Canada
Post: #6
cron is the package.

Did you do

apt-get update

Must be something wrong with your sources. Check /etc/apt/sources.list
find quote
sireone Offline
Junior Member
Posts: 36
Joined: Jun 2009
Reputation: 3
Post: #7
That did it! Once I ran 'apt-get update' I was able to run 'apt-get install cron'

Thanks,
find quote
outleradam Offline
Member+
Posts: 1,722
Joined: Sep 2009
Reputation: 20
Location: Louisiana
Post: #8
no need to install cron
get curl. it's more fun. curl provides terminal based web access.
Code:
apt-get install curl
make a script like this

Code:
#! /bin/bash

#FOR ((EVER))
for (( ; ; ))
#Loop
do
#sleep for 1 hour
sleep 3600
#send command to XBMC to update video library
curl "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video))"
done
exit 0
make it executable
Code:
chmod +x /path/to/myscript.sh
then place it in /etc/init.d

Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[Image: newsig-1.png]
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
find quote
The-Boxhead Offline
Member+
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #9
Why all this would work the best way to do it would be that XBMC
had this "built in" in feature rels.

Regular users dont expect to setup scripts, mapping custom keymaps, hacking skins or whatever.

There should be some kinda "monitor" functions on all sources added. When
XBMC senses a change in any of the sources it updates them, and movies / music or whatever is automaticly scanned into the library.

Most "library" programs on PC/MAC has this functions and users are used to it.

PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #10
robweber, then send us the simple diff. i mean, it's just adding a setting to the gui and poof it does it automagically, eh.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Post Reply