XBMC get volume level info?

Hello all,
I have written several python scripts to improve my OSMC / RPi2. I use XBMC built in functions (for example for mute/unmute in python scripts I use: xbmc.executebuiltin(‘xbmc.Mute()’) )

I need to get information about the current volume level in XBMC.
I cannot find a built in function (http://kodi.wiki/view/List_of_built-in_functions) returning volume level info, there is only a set volume function: SetVolume(percent[,showvolumebar]).

JSON-RPC (http://kodi.wiki/view/JSON-RPC_API/v2#XBMC.GetVolume) provides a function to retrieve volume level info (XBMC.GetVolume).

Is there some simple way to get volume level info from XBMC in python scripts w/o the need to use JSON-RPC?

Thank you.

You can use kodi-send or xbmc-send as a wrapper to the JSON API


1 Like

Perhaps texturecache.py can do this job