Umtauscher wrote:Hi Dave,
as you might remember, I am using your great plugin to get json data from my Yamaha musiccast equipment.
Yesterday I stumpled upon a new API document which gives even more possibilities.
Unfortunately Yamaha has put the status variables into different functions. So if I want the complete status of a certain device I have to issue several request to the device to get all the information.
Is there any possibility to put all those custom states in one GhostXML device or asking the othe way arround is there a way to put a bunch of requests into one device?
I suppose not, but it's just a pain to have 4 ghostxml devices that all hold parts of the information for one physical device.
Just asking...
Thanks for you great plugin again.
Cheers
Wilhelm
Glad you continue to find uses for the plugin. Your suggestion goes beyond what the plugin was originally intended to do. While it might be possible, it would be a nontrivial exercise for sure. It would require collecting all of the JSON data from the various sources, combining it, and then parsing it as one big JSON. On the face, that might not be that bad, but ways to combine multiple sources might work for one but not another usage case.
It sounds like you might be saved by a purpose-built plugin for your hardware; that would easily be the best approach because then (beyond being purpose-built) it would allow for control and customizations that there's no way I could provide.
I'll add your suggestion to the todo list in case some epiphany comes to me, but I'wouldn't hold your breath.