NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 97 98 99 100 101 … 433 Next »
Direct TV Woes

Direct TV Woes
GaryJ73167
Offline

Member

Posts: 126
Threads: 22
Joined: Jun 2016
#41
2017-02-24, 11:32 PM (This post was last modified: 2017-02-24, 11:59 PM by GaryJ73167.)
mvallevand Wrote:Nope ignore all the SageTV stuff.

Martin

Ok....I downloaded DVTune.Exe and confirmed that (from command line) I can control the channel changing........so, it is seeing my Box and working fine changing channels immediately upon input.

The command is very simple. "dtvTune.exe -ip 192.168.0.8 -channel 258"

Now for the BIG thing

how do I incorporate this into NPVR to bypass the IR blaster?

I realize I need to point the Device to a bat file , bypassing the IR Blaster, but, do i use the bat file that came with DVtune? I thought I was good at scripting, but, dont know what needs to be modified in the batch. Looks a bit confusing to me

The receiver IP is 192.168.0.8

This is the BAT file contents:

echo off
cls
rem Created Jan 10 2011
rem This batch file uses the dtvTune executable to change channels on DTV
rem STBs via the ethernet connection.
rem
rem This batchfile and the dtvTune.exe file go into the SageTV directory
rem
rem You also need to add the following registry key (as a string type) to
rem HKEY_LOCAL_MACHINE\SOFTWARE\Frey Technologies\Common\EXEMultiTunerPlugin
rem "command"="DirecTVMultiChg.bat %DEVICE% %CHANNEL%"
rem
rem In the script below, the %1 represents the tuner device (%DEVICE%) name
rem passed from SageTV. The %2 represents the channel (%CHANNEL%) value passed
rem from SageTV.
rem Both values used as arguments to the executable batch file

rem Each device must be assigned to an IP address
set CURDEVICE=%1
IF %CURDEVICE% EQU StubDevice set USEIP=192.168.0.200
IF %CURDEVICE% EQU DSS2 set USEIP=192.168.0.201
IF %CURDEVICE% EQU DSS3 set USEIP=192.168.0.202
IF %CURDEVICE% EQU DSS4 set USEIP=192.168.0.203
IF %CURDEVICE% EQU DSS5 set USEIP=192.168.0.204

rem Convert channel designations to tuning commands
set CHANRAW=%2
rem It is unclear at this point if we need to support dashed channels. Even
rem if we did, it should probably be added to the dtvTune executable and not
rem here...
rem Keeping this code around just in case
rem set DASHCHECK=%CHANRAW:~-2%
rem set ISDASHED=%DASHCHECK:~0,1%
rem IF %ISDASHED% EQU - goto adddash
rem set CHANPRE=N/A
rem set CHANPRERAW=N/A
rem set CHANSUB=N/A
rem set USECHANNEL=%CHANRAW%
rem goto dotuning

dtvTune.exe -channel %CHANRAW% -ip %USEIP%
GaryJ73167
Offline

Member

Posts: 126
Threads: 22
Joined: Jun 2016
#42
2017-02-25, 12:20 AM
GaryJ73167 Wrote:Ok....I downloaded DVTune.Exe and confirmed that (from command line) I can control the channel changing........so, it is seeing my Box and working fine changing channels immediately upon input.

The command is very simple. "dtvTune.exe -ip 192.168.0.8 -channel 258"

Now for the BIG thing

how do I incorporate this into NPVR to bypass the IR blaster?

I realize I need to point the Device to a bat file , bypassing the IR Blaster, but, do i use the bat file that came with DVtune? I thought I was good at scripting, but, dont know what needs to be modified in the batch. Looks a bit confusing to me

The receiver IP is 192.168.0.8

This is the BAT file contents:

echo off
cls
rem Created Jan 10 2011
rem This batch file uses the dtvTune executable to change channels on DTV
rem STBs via the ethernet connection.
rem
rem This batchfile and the dtvTune.exe file go into the SageTV directory
rem
rem You also need to add the following registry key (as a string type) to
rem HKEY_LOCAL_MACHINE\SOFTWARE\Frey Technologies\Common\EXEMultiTunerPlugin
rem "command"="DirecTVMultiChg.bat %DEVICE% %CHANNEL%"
rem
rem In the script below, the %1 represents the tuner device (%DEVICE%) name
rem passed from SageTV. The %2 represents the channel (%CHANNEL%) value passed
rem from SageTV.
rem Both values used as arguments to the executable batch file

rem Each device must be assigned to an IP address
set CURDEVICE=%1
IF %CURDEVICE% EQU StubDevice set USEIP=192.168.0.200
IF %CURDEVICE% EQU DSS2 set USEIP=192.168.0.201
IF %CURDEVICE% EQU DSS3 set USEIP=192.168.0.202
IF %CURDEVICE% EQU DSS4 set USEIP=192.168.0.203
IF %CURDEVICE% EQU DSS5 set USEIP=192.168.0.204

rem Convert channel designations to tuning commands
set CHANRAW=%2
rem It is unclear at this point if we need to support dashed channels. Even
rem if we did, it should probably be added to the dtvTune executable and not
rem here...
rem Keeping this code around just in case
rem set DASHCHECK=%CHANRAW:~-2%
rem set ISDASHED=%DASHCHECK:~0,1%
rem IF %ISDASHED% EQU - goto adddash
rem set CHANPRE=N/A
rem set CHANPRERAW=N/A
rem set CHANSUB=N/A
rem set USECHANNEL=%CHANRAW%
rem goto dotuning

dtvTune.exe -channel %CHANRAW% -ip %USEIP%

I figured it out

My bat file I am using (and it is working fine) is

C:\Users\Public\NPVR\Scripts\http\dtvtune.exe -ip 192.168.0.8 -channel %1

So simple, yet so effective.....thanks for the guidance all.....
GaryJ73167
Offline

Member

Posts: 126
Threads: 22
Joined: Jun 2016
#43
2017-02-25, 06:12 AM
Wow. This is so great and seems SOOO MUCH more reliable (I hope I didn't just jinx myself). I wish i knew about this months ago. I would have never even bothered using the IR Blaster

Big GrinBig GrinBig Grin
GaryJ73167
Offline

Member

Posts: 126
Threads: 22
Joined: Jun 2016
#44
2017-03-01, 10:46 PM
Now that I have things working smoothly (thanks to the help from this thread), I have a question about the batch file I am using.

Which only has 1 line - "C:\Users\Public\NPVR\Scripts\http\dtvtune.exe -ip 192.168.0.8 -channel %1"

Rather than leave my DirectTV box on 24/7, I want to send a command to turn the box on before a recording, and then turn it off once the recording is finished

The only thing that concerns me about this, is, sometimes, I have recordings scheduled back-to-back. I would be afraid that after one recording ends, and the next recording overlaps it would shut the receiver off and never get the 2nd recording.

Any ideas on this ?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,943
Threads: 956
Joined: May 2006
#45
2017-03-01, 11:32 PM
GaryJ73167 Wrote:Any ideas on this ?

Because of tuning problems I avoid putting my STB to sleep in fact I wake it up in my epg update process.

Assuming you want this and don't use LiveTV I would do it in postprocessing.bat First follow this advice g http://forums.nextpvr.com/showthread.php...post508378 (isRecording code is broken it doesn't check against in-progress recordings plus it won't work with live tv) and shut down as desired.

Martin
GaryJ73167
Offline

Member

Posts: 126
Threads: 22
Joined: Jun 2016
#46
2017-03-02, 04:40 AM
mvallevand Wrote:Because of tuning problems I avoid putting my STB to sleep in fact I wake it up in my epg update process.

Assuming you want this and don't use LiveTV I would do it in postprocessing.bat First follow this advice g http://forums.nextpvr.com/showthread.php...post508378 (isRecording code is broken it doesn't check against in-progress recordings plus it won't work with live tv) and shut down as desired.

Martin

Thanks for the reply......honestly, it kinda sounds like it is more of a hassle than it's worth.......I will just leave my DirectTV receiver powered on for recordings Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording to a network drive woes. 2leftfeet 12 7,183 2022-04-05, 08:03 PM
Last Post: mvallevand
  EPG Schedules Direct jwalbrook 6 4,004 2020-12-07, 07:43 PM
Last Post: mvallevand
  How to delete a Schedules Direct Lineup from Version 4? mwkurt 2 1,663 2020-07-19, 02:32 PM
Last Post: mwkurt
  Schedules Direct issues artmetz 4 1,946 2020-04-22, 12:13 AM
Last Post: artmetz
  EPG/Schedules Direct Epitaph 7 2,852 2019-12-12, 03:59 AM
Last Post: Epitaph
  Record direct from live tv? rv0987 3 1,941 2019-11-01, 12:29 PM
Last Post: rv0987
  How do you get channel icons from Schedules Direct SilverTiger 17 5,883 2019-06-28, 02:13 AM
Last Post: sub
  Schedules direct Username and password within the config file Brucek2839 5 2,284 2019-06-16, 02:44 PM
Last Post: Brucek2839
  NextPVR with Ceton InfiniTV, Comcast Card and Schedules Direct add new channels EiEiOhh 5 5,568 2019-06-02, 12:47 AM
Last Post: EiEiOhh
  Series recording woes SpinyGreen 25 6,833 2018-10-08, 09:07 AM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode