def setPluginVariables(self): self.clockfont = os.path.join(self.plugindir, "resources", "SFDigitalReadout-Medium.ttf") self.myfont = pygame.font.SysFont(None, 20) self.icalurl = self.pluginConfig["Calendar"]["icalurl"] self.datarefresh = int(self.pluginConfig["Calendar"]["datarefresh"]) self.ical = PyGCal(self.icalurl) self.lastrefresh = datetime.now() self.weathersource = self.pluginConfig["Weather"]["weatherurl"] self.weatherrefresh = int( self.pluginConfig["Weather"]["weatherrefresh"]) * 60 self.cacheFile = os.path.join(self.plugindir, "resources", "cachedWeather.json")