Code: Alles auswählen
https://github.com/Belfagor2005/e2openplugin-Foreca/commit/2138279761d1638af0991072bf8e18b1e8643ea4
Code: Alles auswählen
https://github.com/Belfagor2005/e2openplugin-Foreca/commit/2138279761d1638af0991072bf8e18b1e8643ea4
if you want I assign menu to config and txt/tv to Video Satellites?dp24 hat geschrieben: 21 Feb 2025 20:28 Assigning OK to the setup menu instead of city list is the thing I don't like the most!
WHY
Browsing the world was a joy before, the thumb just moves a bit, hitting OK and the list to select distant places popped up. Great!
Now I have to move around the remote control to reach TV in the very down left corner. Sorry, but that really sucks:((
Assigning setup to a new button makes no sense for me at all... Setup and forget! No button needed in main screen.
Search cities is awesome!
is it possible to make the date format configurable in the settings? then everyone can set it country-specifically for themselveslululla hat geschrieben: 21 Feb 2025 19:59 I am Italian and my format is different from the English one. This is not why I inserted the format that I liked![]()
@hammu kannst du die änderung zum alten titel hier für lululla mal posten so das er es wieder rein nehmen kannhammu hat geschrieben: 21 Feb 2025 09:40 Wer basteln möchte - hier eine modifizierte ui.py mit dem "alten" Titel und formatiertem Datum
ui.py
Das formatierte Datum muss im Skin als
<widget source="Titel2"....
oder ohne Jahreszahl als <widget source="Titel5"....
eingesetzt werden.
<widget source="Titel"... löschen oder auskommentieren
grafik.png
grafik.png
Aber wahrscheinlich kommt bald wieder ein Update und das Spiel geht von vorne los.![]()
Code: Alles auswählen
# self.setTitle(_("Foreca Weather Forecast") + ' ' + self.plaats) # .replace("_", " "))
Code: Alles auswählen
datum2f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month} {year}"
datum5f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month}"
Code: Alles auswählen
self["Titel2"].text = datum2f
self["Titel5"].text = datum5f
Code: Alles auswählen
# Date management
self["Titel2"].text = "" # titel[0].strip("'")
# translation date
datum = titel[0]
foundPos = datum.rfind(" ")
foundPos2 = datum.find(" ")
day_text = datum[:foundPos2].strip()
month_text = datum[foundPos2:foundPos].strip()
translated_day = translation_dict.get(day_text.lower(), day_text)
translated_month = translation_dict.get(month_text.lower(), month_text)
translated_day = translated_day.capitalize()
translated_month = translated_month.capitalize()
datum2 = translated_month + " " + datum[foundPos + 1:]
"""
ye = datetime.now()
year = ye.year
datum2 = str(year) + " " + datum2 + " " + translated_day
"""
datum2 = datum2 + " " + translated_day
# Location Management
foundPos = self.ort.find("/")
plaats = _(self.ort[0:foundPos]) + "-" + self.ort[foundPos + 1:len(self.ort)]
self.plaats = plaats.replace("_", " ")
# Set 'Titel' with formatted date
self["Titel"].text = datum2
# Set 'Titel4' with location only
self["Titel4"].text = self.plaats
self.setTitle(_("Foreca Weather Forecast") + ' ' + self.plaats) # .replace("_", " "))
self["Titel5"].text = '' # datum2
self["Titel3"].text = '' # self.ort[:foundPos].replace("_", " ") + "\r\n" + self.ort[foundPos + 1:].replace("_", " ") + "\r\n" + datum2
elf["MainList"].SetList(datalist)
self["MainList"].selectionEnabled(0)
self["MainList"].show
Code: Alles auswählen
"nextBouquet": (self.jump500_down, _("Channel+ - 500 back")),
"prevBouquet": (self.jump500_up, _("Channel- - 500 forward")),
"volumeDown": (self.jump100_up, _("Volume- - 100 forward")),
"volumeUp": (self.jump100_down, _("Volume+ - 100 back")),
you see you can't upset the skin of a plugin that has been on the forums for years, they should change all the skins and remove or insert widgets.hammu hat geschrieben: 22 Feb 2025 12:09 I understand.
Best solution is to take it as it is.
Who ever wants a different appearance has to do it by his own or find a friend who can help.
Thank you for your patience.
wäre es nicht möglich die Datumsformatierung im Einstellungsmenü Einstellbar zu machen?hammu hat geschrieben: 22 Feb 2025 09:47 Zeile 1413Nur Kommentarzeichen "#" davorsetzen. Das ist allesCode: Alles auswählen
# self.setTitle(_("Foreca Weather Forecast") + ' ' + self.plaats) # .replace("_", " "))
-----------------------------------------------------------------------
Und für Datumsformatierung nach Zeile 1400 einfügendatum2f ohne führende 0 mit JahreszahlCode: Alles auswählen
datum2f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month} {year}" datum5f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month}"
datum5f ohne führende 0 ohne Jahreszahl
Zuweisung dann etwas weiter unten:Im Skin dann <widget name="Titel"... ersetzen durch "Titel2" bzw. "Titel5"Code: Alles auswählen
self["Titel2"].text = datum2f self["Titel5"].text = datum5f
Aber das sieht dann wahrscheinlich in Ländern ausserhalb von DE wieder komisch aus.
...name="Titel"... enthält aktuell die neue Originalformatierung {Jahr Monat Tag Wochentag}
Code: Alles auswählen
https://github.com/Belfagor2005/e2openplugin-Foreca/commit/7fc6249f6928bf60c5638849f2168d0242c0af26
Code: Alles auswählen
start = config.plugins.foreca.home.getValue()[config.plugins.foreca.home.getValue().rfind("/") + 1:]
Code: Alles auswählen
plaats = _(self.ort[0:foundPos]) + ", " + self.ort[foundPos + 1:len(self.ort)]
Code: Alles auswählen
TabError: inconsistent use of tabs and spaces in indentation
ui.py:1084:77 E261 at least two spaces before inline comment [pycodestyle]
ui.py:1084:78 E262 inline comment should start with '# ' [pycodestyle]
ui.py:1177:9 W0612 local variable 'start' is assigned to but never used [pyflakes]
ui.py:1425:1 W293 blank line contains whitespace [pycodestyle]
ui.py:1432:37 E261 at least two spaces before inline comment [pycodestyle]
ui.py:1433:1 W293 blank line contains whitespace [pycodestyle]
ui.py:1439:1 W293 blank line contains whitespace [pycodestyle]
Compilazione fallita.
Absolutely truelululla hat geschrieben: 24 Feb 2025 14:53 the hyphen then the dot, now the comma, as I said they are just little things that make no difference.