api to get status
Added by Meindert Oldenburger over 9 years ago
From http://127.0.0.1:9981/status.xml I can retrieve some information about current recordings, but not if a client is watching live tv?!
It would be nice to have live tv information to, or is it possible to retrieve this from another xml message?
Replies (3)
RE: api to get status - Added by Mark Clarkstone over 9 years ago
Meindert Oldenburger wrote:
From http://127.0.0.1:9981/status.xml I can retrieve some information about current recordings, but not if a client is watching live tv?!
It would be nice to have live tv information to, or is it possible to retrieve this from another xml message?
Add it as a feature request in the issue tracker. You can use the JSON api to view the current sessions I believe though. so look there. (Use the dev viewer in your browser to see how the UI does it).
RE: api to get status - Added by Ulrich Buck over 9 years ago
I am using the following in a script
wget -q -O - localhost:9981/api/status/subscriptions
to get subscription status information in JSON format.
Look at the bottom of the .c files in https://github.com/tvheadend/tvheadend/tree/master/src/api to find out more api possibilities and try them.
I guess the following found in https://github.com/tvheadend/tvheadend/blob/master/src/api/api_dvr.c could be interesting for you { "dvr/entry/grid_upcoming", ACCESS_RECORDER, api_idnode_grid, api_dvr_entry_grid_upcoming },
{ "dvr/entry/grid_finished", ACCESS_RECORDER, api_idnode_grid, api_dvr_entry_grid_finished },
{ "dvr/entry/grid_failed", ACCESS_RECORDER, api_idnode_grid, api_dvr_entry_grid_failed },
I have not tried all of those, so I am not sure if they will work as the "status/subscriptions"