I have been writing a Kodi add on which uses RI Tools to control the Fan Shim.
I have this working nicely turning the Fan on and off and changing the light based on the temperature.
I want to get the current CPU percentage to turn on the Fan quickly if the CPU goes to over 90% and stays there.
I know this can be called easily in a Skin, but I can't work out how to call it in a service addon.
I should mention this is my first attempt at a Kodi add on so I am probably missing something obvious.