NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 2 3 4 5 … 93 Next »
New verson API logins

 
  • 0 Vote(s) - 0 Average
New verson API logins
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#11
2020-12-18, 02:14 AM (This post was last modified: 2020-12-18, 02:15 AM by mvallevand.)
Code:
From memory you need to add <AutoAuthLocalConnections>true</AutoAuthLocalConnections> in the <WebServer> section.

I don't advise doing this if your server is remotely accessible though.

Is PinLoginAllowSettings>true</PinLoginAllowSettings> required for system calls too?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#12
2020-12-18, 02:15 AM
<PinLoginAllowSettings> is not required for that call.
greg in kansas
Offline

Member

Posts: 178
Threads: 27
Joined: Feb 2007
#13
2020-12-19, 02:21 AM
(2020-12-18, 02:06 AM)sub Wrote: NScriptHelper.exe -status

or

NScriptHelper.exe -server:192.168.1.24:8866 -pin:1234 -status

I can find NScriptHelper.dll but  not the exe.

when I try
NScriptHelper.dll -server:192.168.1.24:8866  -status  I get this error

C:\Users\openhab\Downloads\Openhab>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

thanks
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#14
2020-12-19, 10:23 AM
(2020-12-19, 02:21 AM)greg in kansas Wrote: I can find NScriptHelper.dll but  not the exe.

when I try
NScriptHelper.dll -server:192.168.1.24:8866  -status  I get this error

Does this help ... https://github.com/sub3/NextPVR/wiki/nscripthelper
greg in kansas
Offline

Member

Posts: 178
Threads: 27
Joined: Feb 2007
#15
2020-12-19, 02:59 PM
(2020-12-19, 10:23 AM)Graham Wrote:
(2020-12-19, 02:21 AM)greg in kansas Wrote: I can find NScriptHelper.dll but  not the exe.

when I try
NScriptHelper.dll -server:192.168.1.24:8866  -status  I get this error

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

Yes thanks I had not rebooted after installing dotnet.  Now I am at
C:\Users\openhab\Downloads\Openhab>dotnet NScripthelper.dll -server:192.168.2.10:8866 -status
Cannot use file stream for [C:\Users\openhab\Downloads\Openhab\NScripthelper.deps.json]: No such file or directory
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\openhab\Downloads\Openhab\'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because 'C:\Users\openhab\Downloads\Openhab\NScripthelper.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the 'C:\Users\openhab\Downloads\Openhab\NScripthelper.runtimeconfig.json' file and specify the appropriate framework.

So I wonder if you must have Nextpvr installed on the pc where you are running the DLL from.
Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#16
2020-12-19, 03:09 PM (This post was last modified: 2020-12-19, 03:09 PM by mvallevand.)
Installed and in the program folder. On linux it is more complicated. If you aren't on the internet you can try sub's option to disable security.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#17
2020-12-19, 04:28 PM
(2020-12-19, 02:59 PM)greg in kansas Wrote:
(2020-12-19, 10:23 AM)Graham Wrote:
(2020-12-19, 02:21 AM)greg in kansas Wrote: I can find NScriptHelper.dll but  not the exe.

when I try
NScriptHelper.dll -server:192.168.1.24:8866  -status  I get this error

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

Yes thanks I had not rebooted after installing dotnet.  Now I am at
C:\Users\openhab\Downloads\Openhab>dotnet NScripthelper.dll -server:192.168.2.10:8866 -status
Cannot use file stream for [C:\Users\openhab\Downloads\Openhab\NScripthelper.deps.json]: No such file or directory
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\openhab\Downloads\Openhab\'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because 'C:\Users\openhab\Downloads\Openhab\NScripthelper.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the 'C:\Users\openhab\Downloads\Openhab\NScripthelper.runtimeconfig.json' file and specify the appropriate framework.

So I wonder if you must have Nextpvr installed on the pc where you are running the DLL from.
Thanks
Sorry, I'll try to make it easlier for you to run in the next release.

Drop the attached NScriptHelper.exe into the C:\Program Files\NextPVR directory, and run it from there.


Attached Files
.zip   NScriptHelper.zip (Size: 73.89 KB / Downloads: 5)
greg in kansas
Offline

Member

Posts: 178
Threads: 27
Joined: Feb 2007
#18
2020-12-19, 05:22 PM
I got a good run on the DLL. But still no go.
C:\Program Files\NextPVR>dotnet NScripthelper.dll -server:192.168.2.10:8866 -status
Cannot use file stream for [C:\Program Files\NextPVR\NScripthelper.deps.json]: No such file or directory
[1] <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">

Then ran the openhab jar in the same command window

2020-12-19 11:19:54.402 [WARN ] [.o.b.http.internal.HttpBinding] - Transformation 'JSONPATH($.status.[0].streams)' threw an exception. [response={"stat":"Failed","code":8,"msg":"Invalid Session."}
greg in kansas
Offline

Member

Posts: 178
Threads: 27
Joined: Feb 2007
#19
2020-12-19, 05:29 PM
(2020-12-19, 04:28 PM)sub Wrote:
(2020-12-19, 02:59 PM)greg in kansas Wrote:
(2020-12-19, 10:23 AM)Graham Wrote:
(2020-12-19, 02:21 AM)greg in kansas Wrote: I can find NScriptHelper.dll but  not the exe.

when I try
NScriptHelper.dll -server:192.168.1.24:8866  -status  I get this error

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

Yes thanks I had not rebooted after installing dotnet.  Now I am at
C:\Users\openhab\Downloads\Openhab>dotnet NScripthelper.dll -server:192.168.2.10:8866 -status
Cannot use file stream for [C:\Users\openhab\Downloads\Openhab\NScripthelper.deps.json]: No such file or directory
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\openhab\Downloads\Openhab\'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because 'C:\Users\openhab\Downloads\Openhab\NScripthelper.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the 'C:\Users\openhab\Downloads\Openhab\NScripthelper.runtimeconfig.json' file and specify the appropriate framework.

So I wonder if you must have Nextpvr installed on the pc where you are running the DLL from.
Thanks
Sorry, I'll try to make it easlier for you to run in the next release.

Drop the attached NScriptHelper.exe into the C:\Program Files\NextPVR directory, and run it from there.

Sorry got this app cant run on this pc.  This PC is Win 10 32 bit
Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#20
2020-12-19, 05:30 PM
Here is what I used with linux for that file https://forums.nextpvr.com/showthread.ph...#pid544091

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


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

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

Linear Mode
Threaded Mode