Skip to content

Lyrion Music Server custom service #907

@madmax76

Description

@madmax76

Is your feature request related to a problem? Please describe.
No, i was interested in finding out how to work in vue.js and get data from LMS via json-rpc. According to the contributing guidelines it would be a good idea to discuss the feature first. Hereby my research so far:

The example below extracts the version of the server.

{
    "id":1,
    "method":"slim.request",
    "params": [ 0,["version","?"]]
}
  • Response:
{
    "params": [
        0,
        [
            "version",
            "?"
        ]
    ],
    "method": "slim.request",
    "id": 1,
    "result": {
        "_version": "9.0.2"
    }
}

Describe the solution you'd like
Custom service that fetches:

  1. LMS version
  2. Number of Artists OR Number of Albums OR Number of Songs

For the second feature the following API-call can be made:

{
    "id":1,
    "method":"slim.request",
    "params": [ 0,["serverstatus"]]
}
{
    "params": [
        0,
        [
            "serverstatus"
        ]
    ],
    "method": "slim.request",
    "id": 1,
    "result": {
        "player count": 1,
        "info total genres": 1,
        "info total albums": 1,
        "other player count": 0,
        "version": "9.0.2",
        "info total songs": 2,
        "info total artists": 1,
        "uuid": "12345678-1234-1234-1234-abcdef123456",
        "lastscan": "1742821713",
        "ip": "10.10.1.10",
        "httpport": "9000",
        "info total duration": 10
    }
}

Describe alternatives you've considered
N.A.

Additional context
N.A.

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