The changes are either additive, or structural. So far it’s intended to keep the existing interfaces (up for discussion) to make it so people can get the extras without changing existing usages.
The best place for documentation is the Wiki associated with the code.mios.com space, not the forum. Similarly that should be the place people go to find out how to use it, set it up, APIs exposed, sample code, etc.
When changes are ready to be used they’ll be announced here, along with problems found as a result.
The changes so far are things like:
a) addition/exposure of a set of UPnP ACTION hooks
These are there, but not yet callable since I’m not yet including the S_ files that go with them. The intent is that you would use these to script in the UPnP manner, and there would be less need to use the custom methods. Then, if you saw a technique for controlling Sonos on another forum, it would be quick to translate it over since the calls would be consistent.
b) addition of [tt]Say[/tt] (custom) method for TTS
This is experimental, and defendant upon Google, but it’s intent is to have it speak the text specified. It still needs a lot of work to give it the right MetaDaa so it doesn’t play in a loop.
c) Periodic sampling of Various Sonos MetaData.
This is stuff that, in UPnP you’d normally SUBSCRIBE to, but I currently poll. This is done for scene scripting, but also to improve (eventually) the Dasboard display with what’s currently playing (etc)
d) eliminate redundant Tab sections from JSON file
There were 3x entire copies of the tab-sets defined in the file, so I reduced it down to what’s needed. Likely this is what was causing the problems for the user loading it. Not sure where they came from, but they’re a lot better now.
Right now these are largely inline in the I_ file, but they’ll eventually have their implementations moved to the L_ library file, leving only stubs in the Sonos I_ file. Then the lib can be used by others.
[quote=“parkerc, post:281, topic:169644”][quote=“guessed, post:278, topic:169644”]There are a lot of changes going in to trunk right now to reshape the Plugin. I’ve reset the download link to get the last stable/referenced version (18) for general use.
trunk itself is largely untested, so shouldn’t be the reference for general downloads (unless you can program/debug and/or like pain)[/quote]
@guessed, as it seems the next Sonos plugin will be an almost completely re-engineered version, can I propose that we start an entirely new thread for it e.g “Sonos Plugin XP” or something just to differentiate it from @ankers original (no idea why a suffix of ‘XP’ sprung to mind ) ?
A number of plugins here continue to use the same post yet have evolved far beyond their original post’s release details, meaning comments made on e.g page 1-10 are basically redundant, and as a user, you often get confused by the history.
So, in the absence of dedicated child pages (re: my recent poll) for plugins in this forum, I don’t think I would be alone in thinking that it would really help to have a significant release/update made to stand out on its own?
This particular thread could then be signed off/referenced and maybe even locked (if @anker agrees) thus focussing all efforts and attention on the new release.[/quote]