I'm building an interface to work with C-Bus HomeGate. It's going really well - the CLI is very easy to work with.
One requirement is to display the "next five songs" that are queued up to play behind the current one - ie, the five songs next in the playlist. At the moment, I am doing this with: <playerid> status - 10 tags: That works (I then parse the string looking for "playlist%20index%3A" and, from there, can find everything I need. I ignore the first occurrence (as that is the current song) and then just use the next five. The other "stuff" that comes back before the playlist means that I get a lot of data back. I'm not sure why I need to use "10" (if I use a lower number, then I don't always seem to get all six playlist entries back) - it may just be me, but itemsPerResponse seems to be pretty random on this call. I guess I could also do: <playerid> playlist index ? Followed by a number of calls like (assuming that ? is 5) <playerid> playlist title 6 ? <playerid> playlist title 7 ? <playerid> playlist title 8 ? That's more "round trips", but, maybe gives me more control and less need to parse strings. Clues please on which of those is better (ie more reliable). Maybe I am missing something and there is actually a completely different/better way. Thanks, Nick -- NickLocke ------------------------------------------------------------------------ NickLocke's Profile: http://forums.slimdevices.com/member.php?userid=10438 View this thread: http://forums.slimdevices.com/showthread.php?t=50487 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
