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 … 15 16 17 18 19 … 433 Next »
Temporary Log file Folder

Temporary Log file Folder
hdpvr-doug8796
Offline

Senior Member

Posts: 252
Threads: 24
Joined: Sep 2019
#11
2019-10-08, 08:47 PM (This post was last modified: 2019-10-08, 08:59 PM by hdpvr-doug8796.)
Awesome! So if anyone is watching OR recording the pvr the NScriptHelper.exe -isinuse will be the way to go?
Just put that in the script on an if/else statement?

I didn't see information regarding the -isinuse for bat scripts. Please advise when possible. I greatly appreciate your hard work and program.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#12
2019-10-08, 08:59 PM (This post was last modified: 2019-10-08, 08:59 PM by mvallevand.)
I thought of isinuse but I misread "when opening on another device" I thought you were reading remotely.

Martin
hdpvr-doug8796
Offline

Senior Member

Posts: 252
Threads: 24
Joined: Sep 2019
#13
2019-10-08, 09:04 PM
Yes watching from other ips, i have the bandwidth. also watching at home. It runs the script on home pc. What script do I need to add?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#14
2019-10-08, 09:19 PM
No I misread you don't have to do anything, the test on the server with NScripthelper just fine.

Martin
hdpvr-doug8796
Offline

Senior Member

Posts: 252
Threads: 24
Joined: Sep 2019
#15
2019-10-08, 09:21 PM (This post was last modified: 2019-10-08, 09:29 PM by hdpvr-doug8796.)
So, pardon me, how would I incorporate this into my script?

I can figure it out.. What about if someone is watching? Any other way to tell? What about your first suggestion going through the ip?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#16
2019-10-08, 09:29 PM
Sorry - I'm no batch file expert, so don't now the answer.

Basically that command will output "RECORDING" when a tuner is in use for either recording or live tv, or output "NOT RECORDING" when no tuners are in use. You'll have to find the batch file commands to read that output and look for these strings.
hdpvr-doug8796
Offline

Senior Member

Posts: 252
Threads: 24
Joined: Sep 2019
#17
2019-10-08, 09:34 PM (This post was last modified: 2019-10-09, 05:56 PM by hdpvr-doug8796.)
I have it working fully!

https://textuploader.com/1krfa

I made a bat that runs this:

@echo off
call Confusedub >output.txt
exit /b

Confusedub
"C:\Program Files (x86)\NPVR\nscripthelper.exe" -isinuse

This is the "Check On.bat"

Also this:

I use this on startup, and when NRecord.log tricks the program to thinking it was recently used, when it was really a EPG update:

@echo off

call "Check On.bat"
set /p state=<output.txt
Echo State is %state%

if "%state%" == "NOT RECORDING" (
    echo Sending IR Code to ESPN
    "C:\Program Files (x86)\NPVR\Haupblast.exe" 1602
)  else (
    echo Exiting
    exit
)


"STB Turn On - ESPN.bat"

Also please refer to this thread:

https://forums.nextpvr.com/showthread.php?tid=57461

Now we have resolved this issue with those of us with STBs who are pesky and won't turn back on. Thanks for all of your help [b][b]sub[/b][/b] and [b]mvallevand[/b]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  incorrect frequency in adelaide .ini file spin35 5 2,952 2023-02-01, 05:40 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,804 2022-04-14, 04:33 AM
Last Post: Antmannz
  ts file shows length too long? SuttonWillow 2 1,867 2021-03-15, 01:56 PM
Last Post: mvallevand
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,376 2020-10-29, 09:40 PM
Last Post: mvallevand
  ts file shows length too long SamM 4 2,301 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  EPG displaying small subset of xmltv file. Esteban 9 2,958 2020-07-18, 10:07 PM
Last Post: Esteban
  Max File Size jrockow 2 1,506 2020-04-21, 02:38 PM
Last Post: jrockow
  Skip causes fast-forward to the end of the file madbrain 9 3,764 2020-02-27, 10:24 PM
Last Post: Esch
  Be notified when EPG (xml file) is empty ? nonob 2 1,405 2020-02-14, 05:00 PM
Last Post: nonob
  Recording extra 0-byte .ts file seeker_ktf 6 2,617 2020-01-25, 08:40 PM
Last Post: seeker_ktf

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

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

Linear Mode
Threaded Mode