For those of you who may have been interested, this is the latest version of the script.
The syntax for the configuration file has changed slightly (same name + location): instead of
DEVICES, the term is now
SOURCES. The syntax is the same, except it now supports specifying multiple tuners in a single device via comma separation, so the following service syntaxes are supported:
* DEVICE_ID : use all tuners in the given HDHomeRun device ID
* DEVICE_ID-* : same as
DEVICEID_
* DEVICE_ID-P1,P2,P3,...,PN : Use tuners P1, P2, P3, etc. on that device, in the given order. This allows you to restrict to which tuners the script will have access to by default.
This is the updated usage information:
* -s sources: the list of devices to consider as candidates (same syntax as SERVICES, above. Space-separated so be mindful of that)
You may specify multiple -s options with different source lists. They will be analyzed, and duplicates will be removed (see below for details)
* -S : run a channel scan
This overrides the value from the configuration file
* -c channel: the channel to which you wish to tune, in F.P notation where F is the frequency or channel number you wish to tune to, and P is the program number within that frequency. The program number is optional.
* -o output: the file to which output will be written (use - for stdout, this is what TVH needs, if ommitted stdout is assumed)
* -g: enable trace mode, showing every instruction as it's executed
* -h: help message
* -?: help message
Also, the script has been modified to not try tuners twice. That means that if a tuner is listed twice, it will only be tried the first time it's referenced.