I beieve getting the control and setting its "info" is the way to go, but
I have no clue how to go about it
1) the addon if no args are added calls a WindowXML
2) in this window I have progress control (created by the skin with id="200")
3) i'd like this progress control to get it's value from the addon whichgets the value from the net
I have the value and I have the XMLskinfile
what's next?
Code:
class thermopage:
def __init__(self):
self.parseargv()
if self.SETTEMP:
self.askfortemperature()
elif self.AWAY:
self.setaway()
elif self.NOFREEZE:
self.setnofreeze()
elif self.TURNON:
self.setmax()
elif self.TURNOFF:
self.setoff()
elif self.PROGRAM:
self.setprogram()
else:
_WINDOW.doModal()
# UPDATE VALUES
temp = str(devList.temperature)
xbmcgui.Window(10000).setProperty('netatmo_HomeTemperature', temp)
settemp = str(float(devList.setpoint_temp))
xbmcgui.Window(10000).setProperty('netatmo_HomeSetTemperature', settemp)
setmode = str(devList.setpoint_mode)
xbmcgui.Window(10000).setProperty('netatmo_HomeSetMode', setmode)
relaycommand = unicode(devList.thermrelaycmd)
xbmcgui.Window(10000).setProperty('netatmo_RelayCommand', relaycommand)
module_name = str(devList.modulename)
xbmcgui.Window(10000).setProperty('netatmo_ModuleName', module_name)
device_name = str(devList.devicename)
xbmcgui.Window(10000).setProperty('netatmo_LocationName', device_name)
respdev = str(devList.respdev)
xbmcgui.Window(10000).setProperty('dev', respdev)
respter = str(devList.respthermo)
xbmcgui.Window(10000).setProperty('ter', respter)
if setmode == 'manual':
manual_end = str(devList.manual_endpoint)
manual_end = lnetatmo.toTimeString(manual_end)
xbmcgui.Window(10000).setProperty('ManualEnd', manual_end)
i tried calling the .getControl after _WINDOW.doModal()
i tried self.getControl -_WINDOW.getControl
oh I almost forgot: Thank You so much for helping.