Freevo Installation HOWTO: Build your own media box with Freevo and Linux
Prev | Chapter 6. Misc. | Next

# 6.4. Automating Freevo with Cron

If you truly plan on your Freevo box being a stand alone media box you will want to set up your XMLTV and record scripts in cron. This will ensure that your box runs smoothly without any problems.

## 6.4.1. XMLTV

If you have created the script mentioned in the XMLTV setup section then it should be fairly easy to automate the XMLTV channel grabbing. You might want to add a few lines to your XMLTV script that grabs the TV logos as well. Once you have your script working properly add the following to your crontab:

    0 0 * * * /path/to/xmltv_script.sh

Make sure to change the path above to the correct path to your XMLTV script. See the XMLTV section for more information.

## 6.4.2. Freevo Recording Daemon

It's not technically a daemon per se, but you will need to run it via cron every minute so that it can check for programs to record and start recording them if it is time. Some people run it every hour or half hour as well. I personally would hate to miss the first few minutes of a program though so I choose to run it every minute. Once you have set up your directories in freevo_config.py you will need to add the following entry to your cron:

    * * * * * /usr/local/freevo/freevo execute src/tv/record_daemon.py

Prev | Home | Next
Booting into Freevo | Up | Related Documents / Websites