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 … 93 94 95 96 97 … 104 Next »
NScriptHelper.dll

 
  • 0 Vote(s) - 0 Average
NScriptHelper.dll
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#1
2019-08-26, 03:13 PM
How does one use NScriptHelper from the command line in Windows? It's a .dll.

Also, I use several "calls" using the http …/services format. Does this already work and can I try it?

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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,987
Threads: 770
Joined: Nov 2003
#2
2019-08-26, 10:17 PM
jcole998 Wrote:How does one use NScriptHelper from the command line in Windows? It's a .dll.
It's a .net core application, so you run it like this:

dotnet NScriptHelper.dll -updateepg
dotnet NScriptHelper.dll -status

Quote:Also, I use several "calls" using the http …/services format. Does this already work and can I try it?
Not sure what you're asking here. Yes, you can directly call these urls if you want.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,516
Threads: 963
Joined: May 2006
#3
2019-08-26, 10:18 PM
sub Wrote:Not sure what you're asking here. Yes, you can directly call these urls if you want.

I thought you didn't want us to call them without going through a sid login.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,987
Threads: 770
Joined: Nov 2003
#4
2019-08-26, 10:19 PM
mvallevand Wrote:I thought you didn't want us to call them without going through a sid login.
Yeah, they need to be logged in, supplying sid etc (like the Kodi addon does). He didn't give enough detail about exactly what he was saying there.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,987
Threads: 770
Joined: Nov 2003
#5
2019-08-26, 10:21 PM
With NScriptHelper, if you're using anything other than localhost, and the default pin of 0000, then you can use these extra parameters:

dotnet NScriptHelper.dll -server:192.168.1.32:8866 -pin:1234 -status
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#6
2019-08-27, 01:22 PM
I was following your replies nicely until the sid login part(post#3). Is this also done from the command line?

Also, can all these commands be included in a batch file and scheduled to run without a user signed in?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,516
Threads: 963
Joined: May 2006
#7
2019-08-27, 02:04 PM
The need for the sid on localhost is something that sub and I disagree on (I like to ask users to do things from the browser) but basically in theory all API calls need to be authenticated. I did post a python example of the process of obtaining the sid here https://forums.nextpvr.com/showthread.ph...post538749

The API is not user/password based it uses the sid for security and no user needs to be signed in. Of course if you are running your server interactively then you running as user. I run as a scheduled task to avoid this.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,987
Threads: 770
Joined: Nov 2003
#8
2019-08-27, 07:38 PM
What type of calls are you wanting to do? I can probably add them to NScriptHelper. It takes care of the logging in etc, and makes these same types of calls.
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#9
2019-08-28, 01:56 PM
I use two "calls"(so far) in addition to SQL calls to the database, all from Powershell:

-Pending recordings
...services/service?method=recording.lists&list=pending
-Schedule recording
...services/service?method=recording.save&event_id=221347890&directory_id=Hallmark

I can't recall even looking if NScriptHelper can do this. Maybe I should use NScriptHelper?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,987
Threads: 770
Joined: Nov 2003
#10
2019-08-28, 07:13 PM
What I might do is make it possible to pass a url to NScriptHelper, and it'll do the login for you and add the sid to the call, then return you the result.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


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

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

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

Linear Mode
Threaded Mode