__resource__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib')) sys.path.append(__resource__) from settings import Settings from tools import get_version, xbmclog from ambilight_controller import AmbilightController from theater_controller import TheaterController from static_controller import StaticController import bridge import ui import algorithm import image xbmclog("Kodi Hue: In .(argv={}) service started, version: {}".format( sys.argv, get_version())) ev = Event() capture = xbmc.RenderCapture() fmt = capture.getImageFormat() # BGRA or RGBA fmtRGBA = fmt == 'RGBA' class MyMonitor(xbmc.Monitor): def __init__(self, settings): xbmc.Monitor.__init__(self) self.settings = settings def onSettingsChanged(self): hue.settings.readxml()
__resource__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib')) sys.path.append(__resource__) from settings import Settings from tools import get_version, xbmclog from ambilight_controller import AmbilightController from theater_controller import TheaterController from static_controller import StaticController import bridge import ui import algorithm import image xbmclog("Kodi Hue: In .(argv={}) service started, version: {}".format( sys.argv, get_version())) ev = Event() capture = xbmc.RenderCapture() fmt = capture.getImageFormat() # BGRA or RGBA fmtRGBA = fmt == 'RGBA' class MyMonitor(xbmc.Monitor): def __init__(self, settings): xbmc.Monitor.__init__(self) self.settings = settings def onSettingsChanged(self):