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
greg in kansas
Offline

Member

Posts: 178
Threads: 27
Joined: Feb 2007
#1
2020-12-18, 12:39 AM
I have been using this line for my openhab server to get recording status, after the latest update it stopped working.  Do I need to do something new?

String ISNasRecording "Recording [%s]" {http="<[http://192.168.2.10:8866/services/servic...0:JSONPATH($.status.[0].streams)]" }

I have logged in the web app from the openhab server, also cutting the line from this openhab item and pasting into the edge browser returns a good response
.

Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#2
2020-12-18, 01:00 AM
The new security model forces you to login to get a sid for most commands. It has always been mandatory but wasn't enforced. System command are even more complicated.

The browser test works because the browser has already authenticated.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#3
2020-12-18, 01:49 AM
If you can run nscripthelper to check system.status, it'll do the login etc for you.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#4
2020-12-18, 01:50 AM
If you're only using NextPVR from the local network, and don't care about the added security, there is a config.xml setting you can add to get it behaving the way it was.
greg in kansas
Offline

Member

Posts: 178
Threads: 27
Joined: Feb 2007
#5
2020-12-18, 01:54 AM
(2020-12-18, 01:00 AM)mvallevand Wrote: The new security model forces you to login to get a sid for most commands.  It has always been mandatory but wasn't enforced.  System command are even more complicated.

The browser test works because the browser has already authenticated.

Would you put a password / login in the URL or some how get a sid for the openhab jar.  I am guessing the sid for the browser does not work for openhab on the same PC.

Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#6
2020-12-18, 01:59 AM
(2020-12-18, 01:50 AM)sub Wrote: If you're only using NextPVR from the local network, and don't care about the added security, there is a config.xml setting you can add to get it behaving the way it was.

I think that only gives system status.  Does it enable autologin now too?  It didn't when I first tested.

Martin
greg in kansas
Offline

Member

Posts: 178
Threads: 27
Joined: Feb 2007
#7
2020-12-18, 01:59 AM (This post was last modified: 2020-12-18, 02:09 AM by greg in kansas.)
(2020-12-18, 01:50 AM)sub Wrote: If you're only using NextPVR from the local network, and don't care about the added security, there is a config.xml setting you can add to get it behaving the way it was.

This sounds like it will work for me.  Local only for me.

Thanks, I will look for it now.

Looks like this is the one

<AutoAuthLocalConnections>false</AutoAuthLocalConnections>
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#8
2020-12-18, 02:03 AM
(2020-12-18, 01:59 AM)mvallevand Wrote:
(2020-12-18, 01:50 AM)sub Wrote: If you're only using NextPVR from the local network, and don't care about the added security, there is a config.xml setting you can add to get it behaving the way it was.

I think that only gives system status.  Does it enable autologin now too?  It didn't when I first tested.

Martin
It does the login for you. It'll default to localhost:8866 and pin 0000, but you can specify other if you need to.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#9
2020-12-18, 02:04 AM
(2020-12-18, 01:59 AM)greg in kansas Wrote:
(2020-12-18, 01:50 AM)sub Wrote: If you're only using NextPVR from the local network, and don't care about the added security, there is a config.xml setting you can add to get it behaving the way it was.

This sounds like it will work for me.  Local only for me.

Thanks, I will look for it now.
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.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#10
2020-12-18, 02:06 AM
NScriptHelper.exe -status

or

NScriptHelper.exe -server:192.168.1.24:8866 -pin:1234 -status
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 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