# # ####################################################################### from Renderer import Renderer from Components.VariableText import VariableText #import library to do http requests: import urllib2 from enigma import eLabel #import easy to use xml parser called minidom: from xml.dom.minidom import parseString from Components.config import config, configfile from Plugins.Extensions.MyMetrixLite.__init__ import initWeatherConfig from threading import Timer initWeatherConfig() class MetrixHDWeatherUpdaterStandalone(Renderer, VariableText): def __init__(self): Renderer.__init__(self) VariableText.__init__(self) self.test = "3" config.plugins.MetrixWeather.save() configfile.save() self.woeid = config.plugins.MetrixWeather.woeid.value self.timer = None self.startTimer() self.getWeather() GUI_WIDGET = eLabel
from Renderer import Renderer from Components.VariableText import VariableText #import library to do http requests: import urllib2 from enigma import eLabel #import easy to use xml parser called minidom: from xml.dom.minidom import parseString from Components.config import config, configfile from Plugins.Extensions.MyMetrixLite.__init__ import initWeatherConfig from threading import Timer, Thread from time import time, strftime, localtime g_updateRunning = False g_isRunning = False initWeatherConfig() class MetrixHDWeatherUpdaterStandalone(Renderer, VariableText): def __init__(self, once=False, check=False): Renderer.__init__(self) VariableText.__init__(self) self.once = once self.check = check self.timer = None self.refreshcnt = 0 self.refreshcle = 0 if not g_isRunning or self.once or self.check: self.getWeather() GUI_WIDGET = eLabel