Re: [SlimDevices: Plugins] Custombrowse CLI

2010-03-08 Thread jwmelvin

Thanks for the additional help. Do you think you could point me to an
implementation of a CLI interface in one of your plugins that I can use
as a model for adapting the JiveStatistics or JiveBrowse?

It looks like that is going to be the best option, rather than trying
to use the JSON interface (so our module can stick to a single
interface).


-- 
jwmelvin

jwmelvin's Profile: http://forums.slimdevices.com/member.php?userid=2564
View this thread: http://forums.slimdevices.com/showthread.php?t=75979

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Custombrowse CLI

2010-03-06 Thread erland

I'm sorry, it seems like I've mislead you earlier.

The "Statistics" (TrackStat) menu in Custom Browse isn't offered over
CLI, you will only get the first level and it feels like a bug that you
even get that. This is also the reason why the "Statistics" menu isn't
available on the Radio/Touch/Controller interface within the Custom
Browse menu, it's only available as separate menu.

If you are able to use JSON instead of CLI, there is a "trackstat
browse" and "trackstat statisticsjive" JSON command available, this is
what's used to render the TrackStat menus on the
Controller/Radio/Touch.

If you enable debug logging on "network.cometd" when using a
Controller/Radio/Touch or desktop SqueezePlay, you will see how the
commands look like. When using the JSON interface over telnet it just
displays things like "HASH(0x1053c288)" so you won't be able to return
the structures. 

If you know some perl, the implementation is in the jiveBrowse and
jiveStatistcs function in Plugins/TrackStat/Plugin.pm. If you provide a
patch for a working CLI interface I'll consider including it in a future
TrackStat version. It's probably possible to base it on the current
implementation in the jiveBrowse and jiveStatistics functions, just
flattening the result before returning it.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=75979

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] Custombrowse CLI

2010-03-06 Thread jwmelvin

I'm trying to access trackstat information through the custombrowse CLI.
I have a basic understanding of the query from the wiki, but although I
can retrieve information from other levels, I get nothing when I use
hierarchy:trackstat_trackstat.  

It looks from the web interface that perhaps I need to go further to
get any results, but isn't there a way to return the possible values, to
narrow the selection without knowing ahead of time what the possible
values are?

I hope I'm missing something easy; any help is appreciated.


-- 
jwmelvin

jwmelvin's Profile: http://forums.slimdevices.com/member.php?userid=2564
View this thread: http://forums.slimdevices.com/showthread.php?t=75979

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins