2013-11-19, 15:05
Hi All,
Situation is this. I have a service addon and I'm trying to write a web ui for it. My issue is how to get communication between the two.
I get the feeling I've missed something incredibly obvious, because, short of adding an rpc server directly to the service addon, I don't see how it can be done
Closest I've come so far is having the web interface call (via jsonrpc) "Addons.ExecuteAddon", which calls the script portion of the service addon (this works, and can even pass parameters), but I've no idea how to return a value here. The "result" from "Addons.ExecuteAddon" is always just "OK".
Can anyone give me any pointers here?
Any help appreciated
Edit: I'm making this sound rather complicated, when it's not. To rephrase: Is there a way I can return a value from Addons.ExecuteAddon?
Situation is this. I have a service addon and I'm trying to write a web ui for it. My issue is how to get communication between the two.
I get the feeling I've missed something incredibly obvious, because, short of adding an rpc server directly to the service addon, I don't see how it can be done
Closest I've come so far is having the web interface call (via jsonrpc) "Addons.ExecuteAddon", which calls the script portion of the service addon (this works, and can even pass parameters), but I've no idea how to return a value here. The "result" from "Addons.ExecuteAddon" is always just "OK".
Can anyone give me any pointers here?
Any help appreciated
Edit: I'm making this sound rather complicated, when it's not. To rephrase: Is there a way I can return a value from Addons.ExecuteAddon?