NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 7 8 9 10 11 … 93 Next »
[REQ] Additional web service API calls

 
  • 0 Vote(s) - 0 Average
[REQ] Additional web service API calls
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2013-08-04, 11:26 AM (This post was last modified: 2013-08-12, 12:55 AM by reven.)
Hi Sub,

here's the running list (I'll update it as I go) of API calls I would like.
  • Get recording conflicts: recording.list&filter=conflicts. Need all the same info returned that is displayed in the npvr gui
  • Recurring recordings, get the schedule of the recurring (time of day, days of week etc)
  • get epg listings passing in multiple channeloids. I'm also having problems getting whats just finished. If I pass in now-30minutes, I don't always get that, npvr seems to ignore listings that have "expired". but I would still like to display these
  • Pending recordings
  • include if recording service was stopped during a recording to the recordings.list call (so can display same warning as in npvr gui)
  • epg, get whats on now and next (passing in the value for "now"). This is a nice to have, I'm using this info for the mini guide. Currently having to grab about 12 hours of all channels just to ensure I get the next epgevent (some channels have very long shows).
  • Ability to search for listings by regex or simlar. So I can find all listings starting with "x" but also any listings with "batman" in its name
  • Add more settings to Setting.list call (whats new days, skip steps, recording start screen etc)
  • record based on epgevent oid and schedule type with optional prepadding/postpadding/folder/keep values (if optionals arent set, use defaults). Schedule type eg 0 = once, 1 = All new, 2 = this timeslot, mon-fri etc
  • Ability to update a recording schedule. Passing in the recurring oid, and the new schedule
  • Ability to delete a recurring recording
  • Get comskip times for a recording (based on recording oid)
  • Include "watched" status on recordings in recordings.list
  • Include "playposition"/"resumeposition" in reocrdings.list
  • Ability to set watched status of a recordign
  • Ability to set playposition/resumeposition of a recording
  • return JSON data if requested via content-type=application/json or a &type=json parameter (easier to test in browser with a url parameter, but correct method is content-type (i always do both in my apps))
  • ability to get tuner status (live tv, currently recording)
  • ability to get basic server information, free space on tv buffer drive (and drive letter), free space on recordings drive (and drive letter) (in case of multiple drives, return a list of all ones), OS version, system uptime.
  • get a list of recording directories
  • add default postpadding/prepadding/keep days to setting.list call

Sorry it's a pretty big list, just trying to mimic nextpvr which requires these Smile

#1 is the recording stuff and JSON is pretty important to me.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2013-08-05, 11:54 AM
I have added a some of these already, and will work through the others when I'm in NZ next week. I'd say you'll end up with most of them.

JSON support for all calls is probably the least likely, since it'll require a lot of rework of existing stuff, but I could certainly try adding optional support for it with a couple of the calls. ie, probably EPG related calls, since they're most likely to benefit from the smaller transfer size.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2013-08-05, 12:34 PM
cheers, I wasn't sure what you were using (wcf or something similar, where its a simple thing to add in).

epg is definitely the most important as well as recordings (anything that requires a lot of iterate over lots of data. which is basically just those two calls.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#4
2013-08-05, 01:02 PM
Sub how fixed will your web api be? Can I assume if you make changes later on for Gotham that you will leave these calls alone and working and use some kind of versionning in the URL for new calls?

The reason I ask is I would like to use some of these calls in X-NEWA too as this should be more lightweight than SOAP. However it takes many months to get all my devices on the same version of XBMC so the backend needs a lot of support for previos version. I expect reven will have Samsung delays too, if Plex is any indication.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#5
2013-08-05, 02:48 PM
I typically don't change my API, and I expect that to be the case here.

The existing calls are unchanged, other than additional nodes added to the xml results. The new calls are extending that api with adding additional calls.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#6
2013-08-06, 01:16 AM
personally I would never expect an API call to change. Once an API call is added it needs to be left as is. Adding additional output (class property, xml elements/properties) is fine, but breaking the output or adding additional REQUIRED parameters for a call is a big no no, if the API it to be used by 3rd party devs.

In any case that requires breaking changes, its best to make a new api call and eventually deprecate an old one over time.

which I believe sub feels pretty much the same way.

I would love for ndroid to use this standard API service instead of its custom one (I can't for the life of me get that working on my androids...)
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#7
2013-08-06, 07:43 AM
reven Wrote:I would love for ndroid to use this standard API service instead of its custom one (I can't for the life of me get that working on my androids...)
I'd be more than happy to look at any new "open" APIs that sub is willing to make available but there are reasons I'd probably keep the nDroid Service as a proxy even if I reduced the amount the app relied on it.

As for you not being able to get nDroid working on your devices - feel free to pursue any issues in the nDroid forums. I admit it's fiddly and by no means an ideal solution but at last count, according to Google Play and the Amazon Appstore stats , there are about 360 installations of nDroid v1.x and nDroid TE combined. Not saying they're all fully functional or being used on a daily basis (that's impossible to tell) but I'd expect a significant percentage are otherwise people would have un-installed the app or the nDroid forum would be a lot busier with problem reports.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#8
2013-08-06, 07:46 AM
yeah im sure others have got it to work, and I didnt mean to sound like i was complaining. Just would make it a lot easier. It could very well have something to do with the fact I'm running on windows server 2012 (which has stronger security than your vanilla windows 7/8/xp install)
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#9
2013-08-06, 09:16 AM
reven Wrote:yeah im sure others have got it to work, and I didnt mean to sound like i was complaining. Just would make it a lot easier. It could very well have something to do with the fact I'm running on windows server 2012 (which has stronger security than your vanilla windows 7/8/xp install)
It's pretty much just a case that the nDroid Service needs to run under an account with security to access the npvr program files and data folders, username / passwords need to be the same as the npvr web server and firewall ports need to be open. I can't think of much more than that. As I said, if you wan't to pursue it then start a thread in the nDroid folder. The service logs are fairly verbose so I should be able to spot what isn't working if you post them.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#10
2013-08-12, 11:30 PM
sub are you back in nz now?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 7,336 2022-04-11, 04:30 PM
Last Post: mandai
  NextPVR "Service" Backend? jcole998 5 4,922 2018-05-24, 01:17 PM
Last Post: jcole998
  Transcoding service mvallevand 27 12,527 2016-08-26, 07:43 PM
Last Post: sub
  Time to make Touch web Service less experimental fred250 106 29,477 2014-06-15, 09:13 PM
Last Post: fred250
  New web service clarification needed bgowland 6 3,359 2013-10-19, 02:36 AM
Last Post: bgowland
  getting recurring recordings from service?method API? reven 2 2,022 2013-08-03, 10:50 PM
Last Post: reven
  need some doc around service?methods reven 12 4,772 2013-07-25, 11:00 PM
Last Post: reven
  Creating a Windows service McBainUK 8 3,547 2011-03-30, 03:29 AM
Last Post: mvallevand
  GB-PVR rec. service locks my classlib bgowland 6 2,710 2009-02-12, 11:32 PM
Last Post: sub
  restart recording service for a single tuner?? h0st1le 4 2,018 2008-10-27, 10:02 PM
Last Post: h0st1le

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

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

Linear Mode
Threaded Mode