Hi All!
I have been working on a plugin over the last few weeks that is designed to start a specific channel after a power cut occurs / the box loses power etc. The plugin is basically complete bar a few tweaks here and there. The issue I am facing is that I am unable to get the plugin to work properly when the box reboots!
I have attached the code used to boot the code on SESSIONSTART below:
def main(session, **kwargs):
print "\n[Test Program] start\n"
session.open(channelListScreen)
def Plugins(**kwargs):
return PluginDescriptor(
where = PluginDescriptor.WHERE_SESSIONSTART,
fnc = main)
I am able to load the plugin fine from the plugins menu which has allowed me to confirm that the program is able to set the channel correctly however when the box is rebooted the GUI is not displayed to the user and the channel is not changed to the user defined channel.
I have read online that this might be caused by the fact that enigma2 has not loaded enough to be able to display a session. How can i get around this? I assume that adding a delay will just cause the Engima2 boot process to hang...! Is there an alternative option i can use instead of "WHERE_SESSIONSTART" that will allow me to run a session window (session.open(channelListScreen))?
I look forwards to hearing back from everybody!
All the Best!
Oliver