-
-
Notifications
You must be signed in to change notification settings - Fork 852
Open
Description
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.
- Method: POST
- URI: https://lms-host:port/jsonrpc.js
- Header: Content-Type: application/json
- Body:
{
"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:
- LMS version
- 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
Labels
No labels