NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Hardware v
« Previous 1 2 3 4 5 … 263 Next »
irblaster fire tv

 
  • 0 Vote(s) - 0 Average
irblaster fire tv
lazybones
Offline

Junior Member

USA
Posts: 3
Threads: 0
Joined: Dec 2022
#21
2022-12-18, 07:15 PM
I'm trying to get this to work as described in the post, but with no success.

chchannel.bat
Code:
@echo off
set /a d1=%1+7
set /a d2=%2+7
set /a d3=%3+7
adb shell input keyevent %d1% %d2% %d3%

If I run the following on a command line all works fine and the channel changes:
C:\Windows\System32\cmd.exe /C C:\Users\Public\NPVR-Data\scripts\chchannel.bat 3 2 8

Under Devices I have Blaster Executable Path set to: C:\Windows\System32\cmd.exe
and channel field set to: {channel_d2} {channel_d3} {channel_d4}

The log file shows the channel arguments resolve correctly, but I can't get NextPVR to actually run it and change the channel.

See log file.

What am I missing?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#22
2022-12-18, 07:19 PM
Why do you ignore d1?

Martin
lazybones
Offline

Junior Member

USA
Posts: 3
Threads: 0
Joined: Dec 2022
#23
2022-12-18, 07:45 PM
When looking in the log {channel_d1} would appear to always get set to 0.  {channel_d2} is my first correct channel number.  The channels I am changing are 3 digits long.

Log when tuning to channel 328.  This all looks correct, but the bat file never seems to get executed:

<tuning>
  <type>HDPVR</type>
  <locator>
    <channel>328</channel>
    <input>3</input>
    <audio_input>3</audio_input>
    <blaster_executable>C:\Windows\System32\cmd.exe</blaster_executable>
    <blaster_args>/C C:\Users\Public\NPVR-Data\scripts\chchannel.bat {channel_d2} {channel_d3} {channel_d4}</blaster_args>
  </locator>
</tuning>

2022-12-18 13:24:23.952 [INFO][4] HDPVRRecorder.StartStream(LIVE&F:\Recorded TV\live-DSCHD-5980-1.ts)
2022-12-18 13:24:23.953 [INFO][4] Running blaster: C:\Windows\System32\cmd.exe /C C:\Users\Public\NPVR-Data\scripts\chchannel.bat 3 2 8
2022-12-18 13:24:24.016 [INFO][4] blasting complete
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#24
2022-12-18, 07:55 PM
Ok I didn't know sub adjusted it to 4 digits but that is why I added the echos for testing.

Did you try running cchannel.bat as the tuning executable? That makes more sense to me.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#25
2022-12-18, 09:11 PM
I can't remember if it changed sometime in the v3/v4 releases, but it's always been 4 digits in v5/v6. (or you can use {channel} for the full number)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#26
2022-12-18, 09:21 PM
Yes sorry, I checked and my scripts all parse the full channel number into digits when needed.

Martin
lazybones
Offline

Junior Member

USA
Posts: 3
Threads: 0
Joined: Dec 2022
#27
2022-12-18, 09:40 PM
Got it working.

The issue turned out to be I need to explicitly set a path to arb in the .bat file. It worked on the command line because I had set and environmental path variable to it.

Thanks for helping!!!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  DCX3220e IRblaster codes toomanyhandles 2 4,432 2014-07-11, 10:37 PM
Last Post: toomanyhandles
  HD-PVR irblaster timing workaround - needs pause before record johnsmallberries 2 2,130 2010-02-17, 04:16 AM
Last Post: johnsmallberries
  DCT700/ IRBlaster issues toomanyhandles 14 5,848 2010-01-01, 05:00 PM
Last Post: toomanyhandles
  IrBlaster paf077 2 1,894 2009-01-02, 04:26 AM
Last Post: paf077
  ATI Fire VGA Card Problem Dhanu 22 5,959 2007-11-06, 05:03 PM
Last Post: Dhanu
  IRBlaster.info Compatibility with HIP gnutech 4 2,178 2007-08-28, 05:27 PM
Last Post: gnutech
  PVR150 and Nova-T 500 - losing IRblaster martint123 3 1,809 2006-12-30, 01:49 PM
Last Post: martint123
  IRBlaster: USB-UIRT? elite 2 1,771 2006-11-15, 08:13 PM
Last Post: nbarsley
  PVR150 IRBlaster Troubles dinki 2 1,920 2006-03-25, 01:03 PM
Last Post: dinki
  Irblaster with 150MCE nemulate 9 3,867 2006-01-31, 12:31 AM
Last Post: offrotor

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

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

Linear Mode
Threaded Mode