rt2mei - Usage
Usage of the PHP Script, rt2mei.php
Assuming that PHP is in the PATH then
php <path>rt2mei.php [-- options]
Where options are any of the following
| -h | Prints this information. |
| -q | Quiet mode, no informational or error messages are output. |
| -f | Suppresses the generation of a Favourites file. |
| -r | replace ':' in title with '_'. This is useful if you copy recordings to your PC and want to avoid the problem that Windows has with colons in filenames. |
| -i | Used to explicitly specify where to find the Configuration file. It must be followed by the path to the directory where the rt2mei.cfg configuration file is located. If omitted then the directory path for this script is used. |
| -o | Used to explicitly specify where to write the output file(s). It must be followed by the path to the directory where MyStuff.mei and rt2mei.mcl are to be written. If omitted then the directory path for this script is used. |
| -w | When followed by the path to the the wget executable, forces wget to be used to grab the EPG data. This is only normally necessary if you are behind a corporate firewall or similar. wget is not included in rt2mei. |
| -t | followed by the full path to the directory where temporary files should be written. This is only needed when the -w switch is used. |
| -new | Rejects EPG data if it contains a program that ends before 0000 hrs today. Use this option when running rt2mei as a daily scheduled task (recommended start time is 0700 hrs). rt2mei will then wait until the RT website has been updated before grabbing all the EPG data and making the MyStuff.mei file. |
| -mt | Accept empty EPG data files. I recommend that you DO NOT use this option because you may lose EPG data. If you insist on using it then be it on your own head, don't come whining to me! |
Remember to include the two hyphens before the options, e.g.
php c:\rt2mei\rt2mei.php -- -new
Usage of the Shell Script, rt2mei, for the NSLU2 and similar devices
Assuming that this shell script is being run from the current directory
./rt2mei [options]
Where options are any of the following
| -q | Quiet mode, no informational or error messages are output. |
| -nograb | Omits the downloading of EPG data from the Radio Times website. It just copies across any existing files to the Toppy. |
| -f | suppresses the writing of a Favourites file. |
| -r | replace ':' in title with '_'. This is useful if you copy recordings to your PC and want to avoid the problem that Windows has with colons in filenames. |
| -new | Rejects EPG data if it contains a program that ends before 0000 hrs today. Use this option when running rt2mei as a daily scheduled task (recommended start time is 0700 hrs). rt2mei will then wait until the RT website has been updated before grabbing all the EPG data and making the MyStuff.mei file. |
| -mt | Accept empty EPG data files. I recommend that you DO NOT use this option because you may lose EPG data. If you insist on using it then be it on your own head, don't come whining to me! |
| -i | Used to explicitly specify where to find the Configuration file. It must be followed by the path to the directory where the rt2mei.cfg configuration file is located. If omitted then the directory path for this script is used. |
| -w | When followed by the path to the the wget executable, forces wget to be used to grab the EPG data. This is only normally necessary if you are behind a corporate firewall or similar. wget is not included in rt2mei. |
| -tmp | followed by a path to the temp directory (default is /tmp). |
| -ramdisk | Ensures that all files are written to ramdisk (the temp directory). This is useful if you are running from flash disk. The default is for MyStuff.mei and rt2mei.mcl to be written to the directory where this script is. |
| -tidyup | Deletes MyStuff.mei and rt2mei.mcl after transfer. |
|