Kodi Community Forum

Full Version: Sending data to a running add-on via JSON-RPC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This may be a stupid question but I did not find a solution in any of the forums.

I have created an XBMC addon (python-script) which launches a GUI window and displays some status information.
That script is launched from an external device with the JSON RPC-call
Code:
Addons.ExecuteAddon(params)
where 'params' contains the status parameters.
The user needs to manually close the window via a button.

This works as expected: The external device can launch the GUI and display the requested status info.

The problem is the external device may send another status message later on.
At that point I do not know if my old Window is still shown on the screen or not.
If I just send another "Addons.ExecuteAddon(params)" I get a stack of multiple windows on XBMC

Question:
- is there a way to send data to an add-on that is currently running?

I know about "Input.ExecuteAction" and "Input.SendText" but they
a)are too limited to pass complex status info
b) are sent to whatever window is currently shown. I also have not found a way to reliably get the windowid of the addon-script I started with Addons.ExecuteAddon()

Any ideas?
Any ideas?
Alternatively: what is the best way ti check if a specific add-on is currently shown?
Is there any mapping of windowid to add-on?