Skip to content

Add Number of Streams from Xteve in API Status request #59

Description

@iceman73

Is your feature request related to a problem? Please describe.
Currently the API request to xteve allows to find out the active streams, all streams, and xepg streams, all good information in monitoring and alerting if there is an issue with your provider or xteve filters.

It would be really nice if it also reported number of active streams like in the log.

Currently looks like the following:
curl -i -X POST http://xteve.local:34400/api/ -d '{"cmd": "status"}'
HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 08 Dec 2022 18:52:06 GMT
Content-Length: 324

{
"epg.source": "XEPG",
"status": true,
"streams.active": 435,
"streams.all": 118878,
"streams.xepg": 430,
"url.dvr": "xteve.local:34400",
"url.m3u": "http://xteve.local:34400/m3u/xteve.m3u",
"url.xepg": "http://xteve.local:34400/xmltv/xteve.xml",
"version.api": "1.1.0",
"version.xteve": "2.5.3"

Describe the solution you'd like
A clear and concise description of what you want to happen.
curl -i -X POST http://xteve.local:34400/api/ -d '{"cmd": "status"}'
HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 08 Dec 2022 18:52:06 GMT
Content-Length: 324

{
"epg.source": "XEPG",
"status": true,
"streams.active": 435,
"streams.all": 118878,
"streams.xepg": 430,
"streaming.status":Playlist: Playlist1- Tuner: 1 / 3,
"url.dvr": "xteve.local:34400",
"url.m3u": "http://xteve.local:34400/m3u/xteve.m3u",
"url.xepg": "http://xteve.local:34400/xmltv/xteve.xml",
"version.api": "1.1.0",
"version.xteve": "2.5.3"

Describe alternatives you've considered
none

Additional context
Add any other context or screenshots about the feature request here.

Whats in the log when streams are playing

2022-12-08 14:00:56 [xTeVe] Streaming Status: Playlist: Playlist1- Tuner: 1 / 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions