cpd73 wrote:
> @Michael how do I get this info? For the LMS library stats I use the
> "serverstatus" command.
Argh... that serverstatus command is carrying too much information for
my taste already... the information would be available from the
systeminfo call.
Code:
--------------------
{
"id": 0,
"params": [
"00:04:20:ab:cd:ef",
["systeminfo","items",0,25000,"menu:1"]
],
"method": "slim.request"
}
--------------------
But you'd then have to parse and walk that navigation tree - which
sucks.
You could implement another custom call (or add it to one of your
already existing calls) similarly to what the web UI does (see
https://github.com/Logitech/slimserver/blob/0f325ce60c4c326ca34bdc8fd2c6c0da1a21ffcf/Slim/Web/Settings/Server/Status.pm#L31
downwards): Slim::Menu::SystemInfo->menu() would get you all the data.
Part of the that are items with a ->{web}->{group} = 'onlinelibrary'
attribute. That's what you'd use to get the data to display.
Michael
"It doesn't work - what shall I do?" - "Please check your server.log
and/or scanner.log file!"
(LMS: Settings/Information)
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=109624
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins