Created Powershell USB-UIRT Tuning script (attached)
Handles TUNING via:
1. sageX
2. uutx
3. uutransmit
Can be invoked standalone or called automatically via OpenDCT.
Standalone invocation:
Unzip and open Command prompt in unzip folder.
1. tune.bat
tune tunerNumber channelNumber
where tunerNumber:
Zone: 0 = All, 1 = Right, 2 = Left, 3 = Internal
2. tune.ps
powershell -ExecutionPolicy ByPass -File tune.ps1 -TunerNumber tunerNumber -ChannelNumber channelNumber -Log
NOTE: -Log flag is optional
Customize the script "tune.ps":
1. modify default tuning method
Param([string]$TunerNumber, [string]$ChannelNumber, [switch]$Log=$false, [int]$DeviceNumber=1, [string]$TuningMethod="sagex")
Currently set to "sagex". Options: sagex, uutx, uutransmit
NOTE: SageX requires the installation of the SageX API package
2. If you have more than one USB-UIRT device change the default DeviceNumber as appropriate
or specify via command line flag: -DeviceNumber deviceNumber
3. Customize the general properties
$SageTVIRCodeFiles = "C:\Program Files (x86)\SageTV\Common\RemoteCodes\USB-UIRT Transceiver"
$IRCodeFile = "PaceRNG150"
$IRRepeatFactor = "1"
$IRDelayMS = 0
$AddEnterKey = $true
$EnterKey = "ok"
a. Adjust IRCodeFile to match your file name
b. Sample IRFiles are in the folder IRFiles (copy to SageTV)
c. set EnterKey to $false to not input enter key.
d. Enterkey can be any key in IRfile
OpenDCT Installation steps:
1. unzip to your ProgramData\OpenDCT folder
2. Add Tuning entries to opendct.properties: (remember to stop OpenDCT service before modifying properties file)
Quote:
|
sagetv.device.79219557.tuning_executable=C\:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe -ExecutionPolicy ByPass -F C\:\\ProgramData\\OpenDCT\\config\\tune.ps1 -TunerNumber 1 -ChannelNumber %c% -Log
|
Modify TunerNumber as appropriate for each tuner in opendct.properties:
Zone: 0 = All, 1 = Right, 2 = Left, 3 = Internal