NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 51 52 53 54 55 … 102 Next »
Nscripthelper

 
  • 0 Vote(s) - 0 Average
Nscripthelper
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#11
2020-05-24, 03:00 PM
Thanks JavaWiz, I'm not a programmer, so that is way above my pay grade.  All of my batch files were taken from the forums over the years.  I didn't write any of them.  Wink  But if I understand correctly, that is a Helper Utility that makes it easier to use a Helper DLL???  Wink

It seems to be working now, it didn't reboot while a recording was in progress, then it did reboot when the recording stopped.  Yay!
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#12
2020-05-24, 03:05 PM
Glad you got it working!!
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#13
2020-05-25, 07:13 AM (This post was last modified: 2020-05-25, 07:13 AM by hansol123.)
Hi

Could you please post some idiot type instructions on how to set this up.

My Hauppauge Freesat card has a habit of not starting and I normally have to manually rebooy my PC to wake it up.

Thanks

Maurice
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#14
2020-05-25, 10:52 AM
(2020-05-25, 07:13 AM)hansol123 Wrote: Could you please post some idiot type instructions on how to set this up.

Does this help ... https://github.com/sub3/NextPVR/wiki/nscripthelper
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#15
2020-05-25, 02:02 PM
Hi Maurice, cut and paste the following script into a text file. Then save it as C:\Users\Public\NPVR-Data\scripts\PostUpdateEPG.bat (This location assumes a standard installation of Version 5). NPVR will automatically execute the contents of that file right after it updates the EPG every night. Replace the x's in -pin:xxxx with the PIN for your server. The default is -pin:0000. If you have changed your pin and don't remember it, you can change it again from the web interface at Settings -> Access -> Application Access. The script checks to see if there are currently any recordings in progress (Note that "Live TV" is technically a recording, so if a channel is currently being watched, the script will see that as a "recording in progress" and not reboot.) If it does find a that a recording is in progress, then it waits 60 seconds and checks again. When it finds that there is NOT a recording in progress, then it reboots the server.

echo off
REM Reboot if not recording
cd C:"\Program Files\NextPVR"
set NSHelper=dotnet NScriptHelper.dll -isinuse -pin:xxxx

:check
FOR /F "tokens=*" %%i in ('%NSHelper% -isinuse') do SET condition=%%i
echo %condition%
IF %condition% =="NOT RECORDING" goto reboot

:delay
timeout 60
goto check

:reboot
echo "About to reboot"
shutdown /r
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#16
2020-05-25, 05:08 PM
Thanks Harry for your very clear instructions.

Regards

Maurice
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#17
2021-02-23, 09:07 PM
I'm trying to invoke NScriptHelper.dll using dotnet. I've installed the dotnet support from https://dotnet.microsoft.com/download/do...nt/runtime. Version 5.0.3 I think.

I tried the following command  and got an error:

C:\Users\John>dotnet "c:\program files\nextpvr\nscripthelper.dll" -pin:77890 -server:192.168.1.154:8867 -status
Cannot use file stream for [c:\program files\nextpvr\nscripthelper.deps.json]: No such file or directory
[1] Unable to login

I searched the forum for the missing file but found no help.

Where can I find this file?

Thanks.
Later...JohnC

System Status: Humming nicely!  Smile
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,104
Threads: 957
Joined: May 2006
#18
2021-02-23, 09:11 PM
It has never been available but sub has posted that he will make changes for the next release.

In Windows just run the exe.

Martin
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#19
2021-02-24, 02:48 PM
I could not find nscripthelper.exe in the c:\program files\nextpvr folder and can't seem to find it in the forum somewhere. So I tried the V4 version and that failed also.

Is it available somewhere else?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,104
Threads: 957
Joined: May 2006
#20
2021-02-24, 03:15 PM
Sorry my mistake I am running a prerelease Copy this as NScriptHelper.runtimeconfig.json and it should work from dotnet


Code:
{
  "runtimeOptions": {
    "tfm": "netcoreapp3.1",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "3.1.0"
    }
  }
}

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  nscripthelper in V7.0.0.241105 PRBUK 3 495 2024-12-17, 10:42 PM
Last Post: mvallevand
  How Run NScriptHelper.dll windows 11 NextPVR V6 bertiverson 3 967 2022-10-24, 05:09 PM
Last Post: bertiverson
  EPG Update via command line nscripthelper failing .net error spe109 8 3,532 2021-04-03, 03:41 PM
Last Post: spe109
  updateepg using NScriptHelper is not allowed after recent V5 release upgrade fwpvr789 5 1,870 2020-06-13, 09:50 PM
Last Post: fwpvr789
  dotnet "C:\PROGRA~1\NextPVR\NScriptHelper.dll" -Rename does not rename pascalb 16 4,146 2020-05-25, 06:47 AM
Last Post: pascalb
  NScriptHelper.dll jcole998 35 8,495 2020-02-14, 07:26 PM
Last Post: jcole998

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

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

Linear Mode
Threaded Mode