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 »
Way to tell programmatically if channel load in from NPVR has finished...

 
  • 0 Vote(s) - 0 Average
Way to tell programmatically if channel load in from NPVR has finished...
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#1
2021-03-11, 01:11 AM
I've posted this over on the Kodi forum as well in case there is a way of doing what I want in Kodi...however in case there is an NPVR based method, is there a way of telling via something in the log, a backend DB, anywhere that the channel load into Kodi has been completed? I'm building some automation steps that do various things in both NPVR and Kodi. I could set a timer in a script that says to wait X number of minutes, but I would prefer a more precise method than that if possible...
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#2
2021-03-11, 01:37 AM (This post was last modified: 2021-03-11, 01:52 AM by mvallevand.)
Not really. The backend and the addon dodn't even know this plus that is only one client and there is nothing aggregating or tracking offline clients.

There is an API to tell when the EPG update is performed which in Matrix will trigger an update in Kodi and since these are triggered in channel order you might be able to infer something by monitoring the last update time in the Kodi EPG data base fro each client.

Martin
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#3
2021-03-11, 03:50 PM
(2021-03-11, 01:37 AM)mvallevand Wrote: Not really.  The backend and the addon dodn't even know this plus that is only one client and there is nothing aggregating or tracking offline clients.

There is an API to tell when the EPG update is performed which in Matrix will trigger an update in Kodi and since these are triggered in channel order you might be able to infer something by monitoring the last update time in the Kodi EPG data base fro each client.

Martin

Is the API you are referring to in Kodi or NPVR? What is it called and is there any documentation for it?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#4
2021-03-11, 03:59 PM
It is in NextPVR and none of the NextPVR API is documented,

You will need to get a sid (example in the kodi pvr addon) and issue http://ip:8866/service?method=system.epg.summary&sid=xx

Tthe response

Code:
<rsp stat="ok">
<last_update>1615445669</last_update>
<furthest_listing>1616716500</furthest_listing>
</rsp>

or adding &format=json

{"stat": "ok", "last_update": 1615445669, "furthest_listing": 1616716500}

This doesn't answer your question since it doesn't tell when Kodi gets updated jus when the last EPG update was done on the backend.

I leave you to research the rest of your project on your own,

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  API channel.stream.start mvallevand 2 1,260 2023-05-07, 09:40 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 68,124 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 4,235 2020-09-04, 09:14 PM
Last Post: scJohn
  What is being sent when using /live?channel=3.1 scJohn 2 1,880 2020-01-30, 04:51 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 2,563 2019-02-04, 03:09 PM
Last Post: mvallevand
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,395 2018-10-23, 07:24 AM
Last Post: almightyj
  XMLTV Channel Number Option gdogg371 12 6,657 2018-07-18, 04:32 PM
Last Post: sub
  Channels List by Channel Group Name scJohn 1 2,745 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,039 2017-06-19, 09:14 AM
Last Post: psycik
  Getting all channel listings - decimal channel numbers psycik 11 8,167 2015-12-13, 02:17 AM
Last Post: seejaydee

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

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

Linear Mode
Threaded Mode