|
172 | 172 | if find_library("usb-0.1") is not None or find_library("usb-1.0") is not None:
|
173 | 173 | print("[LCD4linux] libusb found :-)", getEnigmaVersionString())
|
174 | 174 | USBok = True
|
175 |
| -Version = "V5.0-r33" |
| 175 | +Version = "V5.0-r34" |
176 | 176 | L4LElist = L4Lelement()
|
177 | 177 | L4LdoThread = True
|
178 | 178 | LCD4enigma2config = resolveFilename(SCOPE_CONFIG) # /etc/enigma2/
|
@@ -5516,7 +5516,7 @@ def __init__(self, session, args=0):
|
5516 | 5516 | self.PicTimer = eTimer()
|
5517 | 5517 | self.PicTimer.callback.append(self.showpic)
|
5518 | 5518 | self["introduction"] = StaticText()
|
5519 |
| - self["Version"] = StaticText((Version if L4LElist.getVersion() == True else Version + "") + " (" + _("Mode") + ": Py" + ("3" if PY3 else "2") + ")") |
| 5519 | + self["Version"] = StaticText(Version if L4LElist.getVersion() is True else Version + " (" + _("Mode") + ": Py" + ("3" if PY3 else "2") + ")") |
5520 | 5520 | self["LibUSB"] = StaticText()
|
5521 | 5521 | self["About"] = StaticText()
|
5522 | 5522 | self["LCD1"] = Pixmap()
|
@@ -6693,14 +6693,16 @@ def SetList(self):
|
6693 | 6693 | self.list3.append(getConfigListEntry(_("- LCD 1 Background-Picture [ok]>"), LCD4linux.MPLCDBild1))
|
6694 | 6694 | self.list3.append(getConfigListEntry(_("- LCD 1 Brightness"), LCD4linux.MPHelligkeit))
|
6695 | 6695 | self.list3.append(getConfigListEntry(_("- LCD 1 Night Reduction"), LCD4linux.MPNight))
|
6696 |
| - self.list3.append(getConfigListEntry(_("- LCD 2 Background Color"), LCD4linux.MPLCDColor2)) |
6697 |
| - self.list3.append(getConfigListEntry(_("- LCD 2 Background-Picture [ok]>"), LCD4linux.MPLCDBild2)) |
6698 |
| - self.list3.append(getConfigListEntry(_("- LCD 2 Brightness"), LCD4linux.MPHelligkeit2)) |
6699 |
| - self.list3.append(getConfigListEntry(_("- LCD 2 Night Reduction"), LCD4linux.MPNight2)) |
6700 |
| - self.list3.append(getConfigListEntry(_("- LCD 3 Background Color"), LCD4linux.MPLCDColor3)) |
6701 |
| - self.list3.append(getConfigListEntry(_("- LCD 3 Background-Picture [ok]>"), LCD4linux.MPLCDBild3)) |
6702 |
| - self.list3.append(getConfigListEntry(_("- LCD 3 Brightness"), LCD4linux.MPHelligkeit3)) |
6703 |
| - self.list3.append(getConfigListEntry(_("- LCD 3 Night Reduction"), LCD4linux.MPNight3)) |
| 6696 | + if LCD4linux.LCDType2.value != "00": |
| 6697 | + self.list3.append(getConfigListEntry(_("- LCD 2 Background Color"), LCD4linux.MPLCDColor2)) |
| 6698 | + self.list3.append(getConfigListEntry(_("- LCD 2 Background-Picture [ok]>"), LCD4linux.MPLCDBild2)) |
| 6699 | + self.list3.append(getConfigListEntry(_("- LCD 2 Brightness"), LCD4linux.MPHelligkeit2)) |
| 6700 | + self.list3.append(getConfigListEntry(_("- LCD 2 Night Reduction"), LCD4linux.MPNight2)) |
| 6701 | + if LCD4linux.LCDType3.value != "00": |
| 6702 | + self.list3.append(getConfigListEntry(_("- LCD 3 Background Color"), LCD4linux.MPLCDColor3)) |
| 6703 | + self.list3.append(getConfigListEntry(_("- LCD 3 Background-Picture [ok]>"), LCD4linux.MPLCDBild3)) |
| 6704 | + self.list3.append(getConfigListEntry(_("- LCD 3 Brightness"), LCD4linux.MPHelligkeit3)) |
| 6705 | + self.list3.append(getConfigListEntry(_("- LCD 3 Night Reduction"), LCD4linux.MPNight3)) |
6704 | 6706 | self.list3.append(getConfigListEntry(_("- LCD Auto-OFF"), LCD4linux.MPAutoOFF))
|
6705 | 6707 | self.list3.append(getConfigListEntry(_("- Screens used for Changing"), LCD4linux.MPScreenMax))
|
6706 | 6708 | self.list3.append(getConfigListEntry(_("Background"), LCD4linux.MPBackground1))
|
@@ -7323,14 +7325,16 @@ def SetList(self):
|
7323 | 7325 | self.list4.append(getConfigListEntry(_("- LCD 1 Background-Picture [ok]>"), LCD4linux.StandbyLCDBild1))
|
7324 | 7326 | self.list4.append(getConfigListEntry(_("- LCD 1 Brightness"), LCD4linux.StandbyHelligkeit))
|
7325 | 7327 | self.list4.append(getConfigListEntry(_("- LCD 1 Night Reduction"), LCD4linux.StandbyNight))
|
7326 |
| - self.list4.append(getConfigListEntry(_("- LCD 2 Background Color"), LCD4linux.StandbyLCDColor2)) |
7327 |
| - self.list4.append(getConfigListEntry(_("- LCD 2 Background-Picture [ok]>"), LCD4linux.StandbyLCDBild2)) |
7328 |
| - self.list4.append(getConfigListEntry(_("- LCD 2 Brightness"), LCD4linux.StandbyHelligkeit2)) |
7329 |
| - self.list4.append(getConfigListEntry(_("- LCD 2 Night Reduction"), LCD4linux.StandbyNight2)) |
7330 |
| - self.list4.append(getConfigListEntry(_("- LCD 3 Background Color"), LCD4linux.StandbyLCDColor3)) |
7331 |
| - self.list4.append(getConfigListEntry(_("- LCD 3 Background-Picture [ok]>"), LCD4linux.StandbyLCDBild3)) |
7332 |
| - self.list4.append(getConfigListEntry(_("- LCD 3 Brightness"), LCD4linux.StandbyHelligkeit3)) |
7333 |
| - self.list4.append(getConfigListEntry(_("- LCD 3 Night Reduction"), LCD4linux.StandbyNight3)) |
| 7328 | + if LCD4linux.LCDType2.value != "00": |
| 7329 | + self.list4.append(getConfigListEntry(_("- LCD 2 Background Color"), LCD4linux.StandbyLCDColor2)) |
| 7330 | + self.list4.append(getConfigListEntry(_("- LCD 2 Background-Picture [ok]>"), LCD4linux.StandbyLCDBild2)) |
| 7331 | + self.list4.append(getConfigListEntry(_("- LCD 2 Brightness"), LCD4linux.StandbyHelligkeit2)) |
| 7332 | + self.list4.append(getConfigListEntry(_("- LCD 2 Night Reduction"), LCD4linux.StandbyNight2)) |
| 7333 | + if LCD4linux.LCDType3.value != "00": |
| 7334 | + self.list4.append(getConfigListEntry(_("- LCD 3 Background Color"), LCD4linux.StandbyLCDColor3)) |
| 7335 | + self.list4.append(getConfigListEntry(_("- LCD 3 Background-Picture [ok]>"), LCD4linux.StandbyLCDBild3)) |
| 7336 | + self.list4.append(getConfigListEntry(_("- LCD 3 Brightness"), LCD4linux.StandbyHelligkeit3)) |
| 7337 | + self.list4.append(getConfigListEntry(_("- LCD 3 Night Reduction"), LCD4linux.StandbyNight3)) |
7334 | 7338 | self.list4.append(getConfigListEntry(_("- Screens used for Changing"), LCD4linux.StandbyScreenMax))
|
7335 | 7339 | self.list4.append(getConfigListEntry(_("Background"), LCD4linux.StandbyBackground1))
|
7336 | 7340 | if LCD4linux.StandbyBackground1.value != "0":
|
@@ -9829,7 +9833,7 @@ def downloadWetter(self, ort, wetter):
|
9829 | 9833 | feedurl = "http://api.weatherunlocked.com/api/current/%s,%s" % (self.Long[wetter], self.Lat[wetter])
|
9830 | 9834 | L4logE("WU-getcurrentweather%s: %s" % (wetter, feedurl))
|
9831 | 9835 | callInThread(boundFunction(getPage, feedurl, params=params), boundFunction(self.downloadWUcallback, wetter), self.downloadListError)
|
9832 |
| - if "." in ort: # e.g. 'de.ZIPcode' |
| 9836 | + if "." in ort: # e.g. 'de.ZIPcode' |
9833 | 9837 | feedurl = "http://api.weatherunlocked.com/api/forecast/%s" % city
|
9834 | 9838 | else:
|
9835 | 9839 | feedurl = "http://api.weatherunlocked.com/api/forecast/%s,%s" % (self.Long[wetter], self.Lat[wetter])
|
|
0 commit comments