def __init__(self, session, parent): Screen.__init__(self, session, parent=parent) self["selected"] = StaticText("openATV:" + getImageVersionString()) AboutText = _("Model:\t%s %s\n") % (getMachineBrand(), getMachineName()) if path.exists('/proc/stb/info/chipset'): chipset = open('/proc/stb/info/chipset', 'r').read() AboutText += _("Chipset: BCM%s") % chipset.replace('\n', '') + "\n" AboutText += _("Version: %s") % getImageVersionString() + "\n" AboutText += _("Build: %s") % getBuildVersionString() + "\n" AboutText += _("Kernel: %s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers: %s") % driversdate + "\n" AboutText += _("Last update: %s") % getEnigmaVersionString() + "\n\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): tempinfo = open('/proc/stb/sensors/temp0/value', 'r').read() elif path.exists('/proc/stb/fp/temp_sensor'): tempinfo = open('/proc/stb/fp/temp_sensor', 'r').read() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace( '\n', '') + mark + "C\n\n" self["AboutText"] = StaticText(AboutText)
def __init__(self, session, parent): Screen.__init__(self, session, parent = parent) self["selected"] = StaticText("openATV:" + getImageVersionString()) AboutText = _("Model:\t%s %s\n") % (getMachineBrand(), getMachineName()) if path.exists('/proc/stb/info/chipset'): chipset = open('/proc/stb/info/chipset', 'r').read() AboutText += _("Chipset: BCM%s") % chipset.replace('\n','') + "\n" AboutText += _("Version: %s") % getImageVersionString() + "\n" AboutText += _("Build: %s") % getBuildVersionString() + "\n" AboutText += _("Kernel: %s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers: %s") % driversdate + "\n" AboutText += _("Last update: %s") % getEnigmaVersionString() + "\n\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): tempinfo = open('/proc/stb/sensors/temp0/value', 'r').read() elif path.exists('/proc/stb/fp/temp_sensor'): tempinfo = open('/proc/stb/fp/temp_sensor', 'r').read() if tempinfo and int(tempinfo.replace('\n','')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace('\n','') + mark + "C\n\n" self["AboutText"] = StaticText(AboutText)
def populate(self): self["lab1"] = StaticText(_("openATV")) self["lab2"] = StaticText(_("By openATV Image Team")) model = None AboutText = "" self["lab3"] = StaticText(_("Support at") + " www.opena.tv") AboutText += _("Model:\t%s %s\n") % (getMachineBrand(), getMachineName()) if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset:\tBCM%s") % about.getChipSetString().lower( ).replace('\n', '').replace('bcm', '') + "\n" AboutText += _("CPU:\t%s") % about.getCPUString() + "\n" AboutText += _("Cores:\t%s") % about.getCpuCoresString() + "\n" AboutText += _("Version:\t%s") % getImageVersionString() + "\n" AboutText += _("Build:\t%s") % getBuildVersionString() + "\n" AboutText += _("Kernel:\t%s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers:\t%s") % driversdate + "\n" AboutText += _("Last update:\t%s") % getEnigmaVersionString() + "\n\n" fp_version = getFPVersion() if fp_version is None: fp_version = "" elif fp_version != 0: fp_version = _("Frontprocessor version: %d") % fp_version AboutText += fp_version + "\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): f = open('/proc/stb/sensors/temp0/value', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/fp/temp_sensor'): f = open('/proc/stb/fp/temp_sensor', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace( '\n', '') + mark + "C\n\n" self["AboutScrollLabel"] = ScrollLabel(AboutText)
def populate(self): self["lab1"] = StaticText(_("openATV")) self["lab2"] = StaticText(_("By openATV Image Team")) model = None AboutText = "" self["lab3"] = StaticText(_("Support at") + " www.opena.tv") AboutText += _("Model:\t%s %s\n") % (getMachineBrand(), getMachineName()) if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset:\t%s") % about.getChipSetString() + "\n" AboutText += _("CPU:\t%s") % about.getCPUString() + "\n" AboutText += _("Cores:\t%s") % about.getCpuCoresString() + "\n" AboutText += _("Version:\t%s") % getImageVersionString() + "\n" AboutText += _("Build:\t%s") % getBuildVersionString() + "\n" AboutText += _("Kernel:\t%s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers:\t%s") % driversdate + "\n" AboutText += _("Last update:\t%s") % getEnigmaVersionString() + "\n\n" fp_version = getFPVersion() if fp_version is None: fp_version = "" elif fp_version != 0: fp_version = _("Frontprocessor version: %d") % fp_version AboutText += fp_version + "\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): f = open('/proc/stb/sensors/temp0/value', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/fp/temp_sensor'): f = open('/proc/stb/fp/temp_sensor', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n','')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace('\n','') + mark + "C\n\n" self["AboutScrollLabel"] = ScrollLabel(AboutText)
def imageInfo(self): AboutText = _("Full Image Backup ") AboutText += _("By openATV Image Team") + "\n" AboutText += _("Support at") + " www.opena.tv\n\n" AboutText += _("[Image Info]\n") AboutText += _("Model: %s %s\n") % (getMachineBrand(), getMachineName()) AboutText += _("Backup Date: %s\n") % strftime("%Y-%m-%d", localtime(self.START)) if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset: BCM%s") % about.getChipSetString().lower( ).replace('\n', '').replace('bcm', '') + "\n" AboutText += _("CPU: %s") % about.getCPUString() + "\n" AboutText += _("Cores: %s") % about.getCpuCoresString() + "\n" AboutText += _("Version: %s") % getImageVersionString() + "\n" AboutText += _("Build: %s") % getBuildVersionString() + "\n" AboutText += _("Kernel: %s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers:\t%s") % driversdate + "\n" AboutText += _("Last update:\t%s") % getEnigmaVersionString() + "\n\n" AboutText += _("[Enigma2 Settings]\n") AboutText += commands.getoutput("cat /etc/enigma2/settings") AboutText += _("\n\n[User - bouquets (TV)]\n") try: f = open("/etc/enigma2/bouquets.tv", "r") lines = f.readlines() f.close() for line in lines: if line.startswith("#SERVICE:"): bouqet = line.split() if len(bouqet) > 3: bouqet[3] = bouqet[3].replace('"', '') f = open("/etc/enigma2/" + bouqet[3], "r") userbouqet = f.readline() AboutText += userbouqet.replace('#NAME ', '') f.close() except: AboutText += "Error reading bouquets.tv" AboutText += _("\n[User - bouquets (RADIO)]\n") try: f = open("/etc/enigma2/bouquets.radio", "r") lines = f.readlines() f.close() for line in lines: if line.startswith("#SERVICE:"): bouqet = line.split() if len(bouqet) > 3: bouqet[3] = bouqet[3].replace('"', '') f = open("/etc/enigma2/" + bouqet[3], "r") userbouqet = f.readline() AboutText += userbouqet.replace('#NAME ', '') f.close() except: AboutText += "Error reading bouquets.radio" AboutText += _("\n[Installed Plugins]\n") AboutText += commands.getoutput( "opkg list_installed | grep enigma2-plugin-") return AboutText
def __init__(self, session, parent): Screen.__init__(self, session, parent = parent) self["selected"] = StaticText("openATV:" + getImageVersionString()) AboutText = "" model = None if getBoxType() == 'vuuno': model = "Vu+ Uno" elif getBoxType() == 'vuultimo': model = "Vu+ Ultimo" elif getBoxType() == 'vusolo': model = "Vu+ Solo" elif getBoxType() == 'vusolo2': model = "Vu+ Solo" + chr(178) elif getBoxType() == 'vuduo': model = "Vu+ Duo" elif getBoxType() == 'vuduo2': model = "Vu+ Duo" + chr(178) elif getBoxType() == 'et4x00': model = "Xtrend ET4x00 Series" elif getBoxType() == 'et5x00': model = "Xtrend ET5x00 Series" elif getBoxType() == 'et6x00': model = "Xtrend ET6x00 Series" elif getBoxType() == 'et9x00': model = "Xtrend ET9x00 Series" elif getBoxType() == 'odinm7': model = "Odin M7" elif getBoxType() == 'odinm9': model = "Odin M9" elif getBoxType() == 'gb800solo': model = "GigaBlue HD 800 Solo" elif getBoxType() == 'gb800se': model = "GigaBlue HD 800 SE" elif getBoxType() == 'gb800ue': model = "GigaBlue HD 800 UE" elif getBoxType() == 'gbquad': model = "GigaBlue HD Quad" elif getBoxType() == 'ventonhdx': model = "Venton Unibox HDx" elif getBoxType() == 'ventonhde': model = "Venton Unibox HDe" elif getBoxType() == 'ixussone': model = "Ixuss One" elif getBoxType() == 'ixusszero': model = "Ixuss Zero" elif getBoxType() == 'ixussduo': model = "Ixuss Duo" elif getBoxType() == 'tmtwin': model = "Technomate Twin" elif getBoxType() == 'tm2t': model = "Technomate 2T" elif getBoxType() == 'tmsingle': model = "Technomate Single" elif getBoxType() == 'tmnano': model = "Technomate Nano OE" elif getBoxType() == 'iqonios100hd': model = "iqon IOS 100HD" elif getBoxType() == 'iqonios200hd': model = "iqon IOS 200HD" elif getBoxType() == 'iqonios300hd': model = "iqon IOS 300HD" elif getBoxType() == 'xp1000': model = "XP1000" elif getBoxType() == 'ebox5000': model = "MixOS F5" elif getBoxType() == 'ebox5100': model = "MixOS F5mini" elif getBoxType() == 'dm500hd': model = "DREAMBOX DM500HD" elif getBoxType() == 'dm800': model = "DREAMBOX DM800HD" elif getBoxType() == 'dm800se': model = "DREAMBOX DM800se" elif getBoxType() == 'dm7020hd': model = "DREAMBOX DM7020HD" elif getBoxType() == 'dm8000': model = "DREAMBOX DM8000HD" else: model = getBoxType() if model: AboutText += _("Model: %s") % model + "\n" if path.exists('/proc/stb/info/chipset'): chipset = open('/proc/stb/info/chipset', 'r').read() AboutText += _("Chipset: BCM%s") % chipset.replace('\n','') + "\n" AboutText += _("Version: %s") % getImageVersionString() + "\n" AboutText += _("Build: %s") % getBuildVersionString() + "\n" AboutText += _("Kernel: %s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers: %s") % driversdate + "\n" AboutText += _("Last update: %s") % getEnigmaVersionString() + "\n\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): tempinfo = open('/proc/stb/sensors/temp0/value', 'r').read() elif path.exists('/proc/stb/fp/temp_sensor'): tempinfo = open('/proc/stb/fp/temp_sensor', 'r').read() if tempinfo and int(tempinfo.replace('\n','')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace('\n','') + mark + "C\n\n" self["AboutText"] = StaticText(AboutText)
def populate(self): self["lab1"] = StaticText(_("openATV")) self["lab2"] = StaticText(_("By openATV Image Team")) model = None AboutText = "" self["lab3"] = StaticText(_("Support at") + " www.opena.tv") if getBoxType() == 'vuuno': model = "Vu+ Uno" elif getBoxType() == 'vuultimo': model = "Vu+ Ultimo" elif getBoxType() == 'vusolo': model = "Vu+ Solo\n" elif getBoxType() == 'vusolo2': model = "Vu+ Solo" + chr(178) elif getBoxType() == 'vuduo': model = "Vu+ Duo" elif getBoxType() == 'vuduo2': model = "Vu+ Duo" + chr(178) elif getBoxType() == 'et4x00': model = "Xtrend ET4x00 Series" elif getBoxType() == 'et5x00': model = "Xtrend ET5x00 Series" elif getBoxType() == 'et6x00': model = "Xtrend ET6x00 Series" elif getBoxType() == 'et9x00': model = "Xtrend ET9x00 Series" elif getBoxType() == 'odinm7': model = "Odin M/" elif getBoxType() == 'odinm9': model = "Odin M9" elif getBoxType() == 'gb800solo': model = "GigaBlue HD 800 Solo" elif getBoxType() == 'gb800se': model = "GigaBlue HD 800 SE" elif getBoxType() == 'gb800ue': model = "GigaBlue HD 800 UE" elif getBoxType() == 'gbquad': model = "GigaBlue HD Quad" elif getBoxType() == 'ventonhdx': model = "Venton Unibox HDx" elif getBoxType() == 'ventonhde': model = "Venton Unibox HDe" elif getBoxType() == 'ixussone': model = "Ixuss One" elif getBoxType() == 'ixusszero': model = "Ixuss Zero" elif getBoxType() == 'ixussduo': model = "Ixuss Duo" elif getBoxType() == 'tmtwin': model = "Technomate Twin" elif getBoxType() == 'tm2t': model = "Technomate 2T" elif getBoxType() == 'tmsingle': model = "Technomate Single" elif getBoxType() == 'tmnano': model = "Technomate Nano OE" elif getBoxType() == 'iqonios100hd': model = "iqon IOS 100HD" elif getBoxType() == 'iqonios200hd': model = "iqon IOS 200HD" elif getBoxType() == 'iqonios300hd': model = "iqon IOS 300HD" elif getBoxType() == 'xp1000': model = "XP1000" elif getBoxType() == 'ebox5000': model = "MixOS F5" elif getBoxType() == 'ebox5100': model = "MixOS F5mini" elif getBoxType() == 'dm500hd': model = "DREAMBOX DM500HD" elif getBoxType() == 'dm800': model = "DREAMBOX DM800HD" elif getBoxType() == 'dm800se': model = "DREAMBOX DM800se" elif getBoxType() == 'dm7020hd': model = "DREAMBOX DM7020HD" elif getBoxType() == 'dm8000': model = "DREAMBOX DM8000HD" else: model = getBoxType() if model: AboutText += _("Model:\t%s") % model + "\n" if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset:\tBCM%s") % about.getChipSetString().lower().replace('\n','').replace('bcm','') + "\n" AboutText += _("CPU:\t%s") % about.getCPUString() + "\n" AboutText += _("Cores:\t%s") % about.getCpuCoresString() + "\n" AboutText += _("Version:\t%s") % getImageVersionString() + "\n" AboutText += _("Build:\t%s") % getBuildVersionString() + "\n" AboutText += _("Kernel:\t%s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers:\t%s") % driversdate + "\n" AboutText += _("Last update:\t%s") % getEnigmaVersionString() + "\n\n" fp_version = getFPVersion() if fp_version is None: fp_version = "" elif fp_version != 0: fp_version = _("Frontprocessor version: %d") % fp_version AboutText += fp_version + "\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): f = open('/proc/stb/sensors/temp0/value', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/fp/temp_sensor'): f = open('/proc/stb/fp/temp_sensor', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n','')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace('\n','') + mark + "C\n\n" self["AboutScrollLabel"] = ScrollLabel(AboutText)
def populate(self): self["lab1"] = StaticText(_("Virtuosso Image Xtreme")) self["lab2"] = StaticText(_("By Team ViX")) model = None AboutText = "" self["lab3"] = StaticText(_("Support at") + " www.world-of-satellite.co.uk") if getBoxType() == 'vuuno': self["lab3"] = StaticText(_("Support at") + " www.vuplus-support.co.uk") elif getBoxType() == 'vuultimo': self["lab3"] = StaticText(_("Support at") + " www.vuplus-support.co.uk") elif getBoxType() == 'vusolo': self["lab3"] = StaticText(_("Support at") + " www.vuplus-support.co.uk") elif getBoxType() == 'vusolo2': self["lab3"] = StaticText(_("Support at") + " www.vuplus-support.co.uk") elif getBoxType() == 'vuduo': self["lab3"] = StaticText(_("Support at") + " www.vuplus-support.co.uk") elif getBoxType() == 'vuduo2': self["lab3"] = StaticText(_("Support at") + " www.vuplus-support.co.uk") elif getBoxType() == 'et4x00': self["lab3"] = StaticText(_("Support at") + " www.xtrend-support.co.uk") elif getBoxType() == 'et5x00': self["lab3"] = StaticText(_("Support at") + " www.xtrend-support.co.uk") elif getBoxType() == 'et6x00': self["lab3"] = StaticText(_("Support at") + " www.xtrend-support.co.uk") elif getBoxType() == 'et9x00': self["lab3"] = StaticText(_("Support at") + " www.xtrend-support.co.uk") elif getBoxType() == 'odinm7': self["lab3"] = StaticText(_("Support at") + " www.odin-support.co.uk") elif getBoxType() == 'odinm9': self["lab3"] = StaticText(_("Support at") + " www.odin-support.co.uk") AboutText += _("Model:\t%s %s\n") % (getMachineBrand(), getMachineName()) if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset:\tBCM%s") % about.getChipSetString().lower().replace('\n','').replace('bcm','') + "\n" AboutText += _("CPU:\t%s") % about.getCPUString() + "\n" AboutText += _("Cores:\t%s") % about.getCpuCoresString() + "\n" AboutText += _("Version:\t%s") % getImageVersionString() + "\n" AboutText += _("Build:\t%s") % getBuildVersionString() + "\n" AboutText += _("Kernel:\t%s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers:\t%s") % driversdate + "\n" AboutText += _("Last update:\t%s") % getEnigmaVersionString() + "\n\n" fp_version = getFPVersion() if fp_version is None: fp_version = "" elif fp_version != 0: fp_version = _("Frontprocessor version: %d") % fp_version AboutText += fp_version + "\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): f = open('/proc/stb/sensors/temp0/value', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/fp/temp_sensor'): f = open('/proc/stb/fp/temp_sensor', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n','')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace('\n','') + mark + "C\n\n" self["AboutScrollLabel"] = ScrollLabel(AboutText)
def imageInfo(self): AboutText = _("Full Image Backup ") AboutText += _("By openATV Image Team") + "\n" AboutText += _("Support at") + " www.opena.tv\n\n" AboutText += _("[Image Info]\n") AboutText += _("Model: %s %s\n") % (getMachineBrand(), getMachineName()) AboutText += _("Backup Date: %s\n") % strftime("%Y-%m-%d", localtime(self.START)) if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset: BCM%s") % about.getChipSetString().lower().replace('\n','').replace('bcm','') + "\n" AboutText += _("CPU: %s") % about.getCPUString() + "\n" AboutText += _("Cores: %s") % about.getCpuCoresString() + "\n" AboutText += _("Version: %s") % getImageVersionString() + "\n" AboutText += _("Build: %s") % getBuildVersionString() + "\n" AboutText += _("Kernel: %s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers:\t%s") % driversdate + "\n" AboutText += _("Last update:\t%s") % getEnigmaVersionString() + "\n\n" AboutText += _("[Enigma2 Settings]\n") AboutText += commands.getoutput("cat /etc/enigma2/settings") AboutText += _("\n\n[User - bouquets (TV)]\n") try: f = open("/etc/enigma2/bouquets.tv","r") lines = f.readlines() f.close() for line in lines: if line.startswith("#SERVICE:"): bouqet = line.split() if len(bouqet) > 3: bouqet[3] = bouqet[3].replace('"','') f = open("/etc/enigma2/" + bouqet[3],"r") userbouqet = f.readline() AboutText += userbouqet.replace('#NAME ','') f.close() except: AboutText += "Error reading bouquets.tv" AboutText += _("\n[User - bouquets (RADIO)]\n") try: f = open("/etc/enigma2/bouquets.radio","r") lines = f.readlines() f.close() for line in lines: if line.startswith("#SERVICE:"): bouqet = line.split() if len(bouqet) > 3: bouqet[3] = bouqet[3].replace('"','') f = open("/etc/enigma2/" + bouqet[3],"r") userbouqet = f.readline() AboutText += userbouqet.replace('#NAME ','') f.close() except: AboutText += "Error reading bouquets.radio" AboutText += _("\n[Installed Plugins]\n") AboutText += commands.getoutput("opkg list_installed | grep enigma2-plugin-") return AboutText
def __init__(self, session, parent): Screen.__init__(self, session, parent=parent) self["selected"] = StaticText("openATV:" + getImageVersionString()) AboutText = "" model = None if getBoxType() == 'vuuno': model = "Vu+ Uno" elif getBoxType() == 'vuultimo': model = "Vu+ Ultimo" elif getBoxType() == 'vusolo': model = "Vu+ Solo" elif getBoxType() == 'vusolo2': model = "Vu+ Solo" + chr(178) elif getBoxType() == 'vuduo': model = "Vu+ Duo" elif getBoxType() == 'vuduo2': model = "Vu+ Duo" + chr(178) elif getBoxType() == 'et4x00': model = "Xtrend ET4x00 Series" elif getBoxType() == 'et5x00': model = "Xtrend ET5x00 Series" elif getBoxType() == 'et6x00': model = "Xtrend ET6x00 Series" elif getBoxType() == 'et9x00': model = "Xtrend ET9x00 Series" elif getBoxType() == 'odinm7': model = "Odin M7" elif getBoxType() == 'odinm9': model = "Odin M9" elif getBoxType() == 'gb800solo': model = "GigaBlue HD 800 Solo" elif getBoxType() == 'gb800se': model = "GigaBlue HD 800 SE" elif getBoxType() == 'gb800ue': model = "GigaBlue HD 800 UE" elif getBoxType() == 'gbquad': model = "GigaBlue HD Quad" elif getBoxType() == 'ventonhdx': model = "Venton Unibox HDx" elif getBoxType() == 'ventonhde': model = "Venton Unibox HDe" elif getBoxType() == 'ixussone': model = "Ixuss One" elif getBoxType() == 'ixusszero': model = "Ixuss Zero" elif getBoxType() == 'ixussduo': model = "Ixuss Duo" elif getBoxType() == 'tmtwin': model = "Technomate Twin" elif getBoxType() == 'tm2t': model = "Technomate 2T" elif getBoxType() == 'tmsingle': model = "Technomate Single" elif getBoxType() == 'tmnano': model = "Technomate Nano OE" elif getBoxType() == 'iqonios100hd': model = "iqon IOS 100HD" elif getBoxType() == 'iqonios200hd': model = "iqon IOS 200HD" elif getBoxType() == 'iqonios300hd': model = "iqon IOS 300HD" elif getBoxType() == 'xp1000': model = "XP1000" elif getBoxType() == 'ebox5000': model = "MixOS F5" elif getBoxType() == 'ebox5100': model = "MixOS F5mini" elif getBoxType() == 'dm500hd': model = "DREAMBOX DM500HD" elif getBoxType() == 'dm800': model = "DREAMBOX DM800HD" elif getBoxType() == 'dm800se': model = "DREAMBOX DM800se" elif getBoxType() == 'dm7020hd': model = "DREAMBOX DM7020HD" elif getBoxType() == 'dm8000': model = "DREAMBOX DM8000HD" else: model = getBoxType() if model: AboutText += _("Model: %s") % model + "\n" if path.exists('/proc/stb/info/chipset'): chipset = open('/proc/stb/info/chipset', 'r').read() AboutText += _("Chipset: BCM%s") % chipset.replace('\n', '') + "\n" AboutText += _("Version: %s") % getImageVersionString() + "\n" AboutText += _("Build: %s") % getBuildVersionString() + "\n" AboutText += _("Kernel: %s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers: %s") % driversdate + "\n" AboutText += _("Last update: %s") % getEnigmaVersionString() + "\n\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): tempinfo = open('/proc/stb/sensors/temp0/value', 'r').read() elif path.exists('/proc/stb/fp/temp_sensor'): tempinfo = open('/proc/stb/fp/temp_sensor', 'r').read() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace( '\n', '') + mark + "C\n\n" self["AboutText"] = StaticText(AboutText)
def populate(self): self["lab1"] = StaticText(_("openATV")) self["lab2"] = StaticText(_("By openATV Image Team")) model = None AboutText = "" self["lab3"] = StaticText(_("Support at") + " www.opena.tv") if getBoxType() == 'vuuno': model = "Vu+ Uno" elif getBoxType() == 'vuultimo': model = "Vu+ Ultimo" elif getBoxType() == 'vusolo': model = "Vu+ Solo\n" elif getBoxType() == 'vusolo2': model = "Vu+ Solo" + chr(178) elif getBoxType() == 'vuduo': model = "Vu+ Duo" elif getBoxType() == 'vuduo2': model = "Vu+ Duo" + chr(178) elif getBoxType() == 'et4x00': model = "Xtrend ET4x00 Series" elif getBoxType() == 'et5x00': model = "Xtrend ET5x00 Series" elif getBoxType() == 'et6x00': model = "Xtrend ET6x00 Series" elif getBoxType() == 'et9x00': model = "Xtrend ET9x00 Series" elif getBoxType() == 'odinm7': model = "Odin M/" elif getBoxType() == 'odinm9': model = "Odin M9" elif getBoxType() == 'gb800solo': model = "GigaBlue HD 800 Solo" elif getBoxType() == 'gb800se': model = "GigaBlue HD 800 SE" elif getBoxType() == 'gb800ue': model = "GigaBlue HD 800 UE" elif getBoxType() == 'gbquad': model = "GigaBlue HD Quad" elif getBoxType() == 'ventonhdx': model = "Venton Unibox HDx" elif getBoxType() == 'ventonhde': model = "Venton Unibox HDe" elif getBoxType() == 'ixussone': model = "Ixuss One" elif getBoxType() == 'ixusszero': model = "Ixuss Zero" elif getBoxType() == 'ixussduo': model = "Ixuss Duo" elif getBoxType() == 'tmtwin': model = "Technomate Twin" elif getBoxType() == 'tm2t': model = "Technomate 2T" elif getBoxType() == 'tmsingle': model = "Technomate Single" elif getBoxType() == 'tmnano': model = "Technomate Nano OE" elif getBoxType() == 'iqonios100hd': model = "iqon IOS 100HD" elif getBoxType() == 'iqonios200hd': model = "iqon IOS 200HD" elif getBoxType() == 'iqonios300hd': model = "iqon IOS 300HD" elif getBoxType() == 'xp1000': model = "XP1000" elif getBoxType() == 'ebox5000': model = "MixOS F5" elif getBoxType() == 'ebox5100': model = "MixOS F5mini" elif getBoxType() == 'dm500hd': model = "DREAMBOX DM500HD" elif getBoxType() == 'dm800': model = "DREAMBOX DM800HD" elif getBoxType() == 'dm800se': model = "DREAMBOX DM800se" elif getBoxType() == 'dm7020hd': model = "DREAMBOX DM7020HD" elif getBoxType() == 'dm8000': model = "DREAMBOX DM8000HD" else: model = getBoxType() if model: AboutText += _("Model:\t%s") % model + "\n" if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset:\tBCM%s") % about.getChipSetString().lower( ).replace('\n', '').replace('bcm', '') + "\n" AboutText += _("CPU:\t%s") % about.getCPUString() + "\n" AboutText += _("Cores:\t%s") % about.getCpuCoresString() + "\n" AboutText += _("Version:\t%s") % getImageVersionString() + "\n" AboutText += _("Build:\t%s") % getBuildVersionString() + "\n" AboutText += _("Kernel:\t%s") % about.getKernelVersionString() + "\n" string = getDriverDateString() year = string[0:4] month = string[4:6] day = string[6:8] driversdate = '-'.join((year, month, day)) AboutText += _("Drivers:\t%s") % driversdate + "\n" AboutText += _("Last update:\t%s") % getEnigmaVersionString() + "\n\n" fp_version = getFPVersion() if fp_version is None: fp_version = "" elif fp_version != 0: fp_version = _("Frontprocessor version: %d") % fp_version AboutText += fp_version + "\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): f = open('/proc/stb/sensors/temp0/value', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/fp/temp_sensor'): f = open('/proc/stb/fp/temp_sensor', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature: %s") % tempinfo.replace( '\n', '') + mark + "C\n\n" self["AboutScrollLabel"] = ScrollLabel(AboutText)