morrisonjd Hi all, How can I know the channel number, with the API, that I am playing? I am trying with 9981/api/status/subscriptions, but it doesn't give the number, same with 9981/api/status/inputs. How can i do it? Thanks to all
davep morrisonjd Here is one way, though there may be others: Use api/status/subscriptions { "entries": [ { "id": 109, "start": 1740773170, "errors": 0, "state": "Running", "hostname": "192.168.0.1", "client": "VLC/3.0.21 LibVLC/3.0.21", "title": "HTTP", "channel": "Blaze", "service": "DVB-T #0/Sandy/570MHz/Blaze", "pids": [ 464, 6065, 6066, 6070 ], "profile": "pass", "in": 224096, "out": 224096, "total_in": 1394020, "total_out": 1394020 } ], "totalCount": 1 } Use /api/service/list?list=lcn. This produces JSON with one entry for each service on your system, so you need to extract the entry where the "text" field matches the "service" field from the subscriptions output. The "value" field in the "params" array is the LCN. { "uuid": "a75b8978e8ceef87e7dab02efcd2a4fd", "id": "a75b8978e8ceef87e7dab02efcd2a4fd", "text": "Sandy/570MHz/Blaze", "caption": "DVB Inputs - Services", "class": "mpegts_service", "event": "service", "params": [ { "id": "lcn", "type": "u16", "caption": "Local channel number", "description": "The service's channel number as set by the provider.", "default": 0, "rdonly": true, "advanced": true, "value": 64 } ] }, [edited] Alternatively call api/channel/grid and search for the entry where the "channel" field from the subscriptions output matches the "name" field. The LCN is then the "number" field.