Foreca-Wettervorhersage

Nachricht
Autor
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#261

Beitrag von lululla »

year paused

Code: Alles auswählen

https://github.com/Belfagor2005/e2openplugin-Foreca/commit/2138279761d1638af0991072bf8e18b1e8643ea4
i attach last folder zipped for test git is not updated now
Foreca-20250221.zip
(1.18 MiB) 16-mal heruntergeladen
Benutzeravatar
hammu
Senior member
Senior member
Beiträge: 2275
Registriert: 20 Jun 2018 09:37
Wohnort: OWL
Receiver 1: Gigablue UE 4K mit 7.4 und 7.5
Receiver 2: Gigablue UHD TRIO4K mit 7.4 und 7.5
Receiver 3: Gigablue Quadplus mit 7.4
Receiver 4: Gigablue Ultra UE mit 7.4
Receiver 5: div. alte Boxen
Hat gedankt: 331 Mal
Hat Dank erhalten: 1190 Mal

Re: Foreca-Wettervorhersage

#262

Beitrag von hammu »

Thank you very much.
Opening CityPanel with TEXT/TV was absolutely new to me.
Also the ability to search for a city by red button in city panel
grafik.png
dp24
Member
Member
Beiträge: 48
Registriert: 09 Mai 2020 09:29
Receiver 1: VU+ Solo 4K DVB-S2
Receiver 2: VU+ Solo 4K DVB-S2
Hat gedankt: 10 Mal
Hat Dank erhalten: 8 Mal

Re: Foreca-Wettervorhersage

#263

Beitrag von dp24 »

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!
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#264

Beitrag von lululla »

sorry.. overwrite this for fix Button on search (favX-Home)

Info (help) for assing button and other commands)
Dateianhänge
ui.py
(121.34 KiB) 11-mal heruntergeladen
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#265

Beitrag von lululla »

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!
if you want I assign menu to config and txt/tv to Video Satellites?

as I said before I am not the owner, the lgit is public and everyone can make changes
Benutzeravatar
Masta2002
Moderator
Moderator
Beiträge: 366
Registriert: 23 Aug 2021 11:42
Receiver 1: VU+ VUUno4KSE
Receiver 2: VU+ VUUno4KSE
Hat gedankt: 109 Mal
Hat Dank erhalten: 96 Mal
Geschlecht:

Re: Foreca-Wettervorhersage

#266

Beitrag von Masta2002 »

lululla 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 :)
is it possible to make the date format configurable in the settings? then everyone can set it country-specifically for themselves
hammu 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. :rolleyes:
@hammu kannst du die änderung zum alten titel hier für lululla mal posten so das er es wieder rein nehmen kann


Bild
unter metrix Wird die niederschlagswahrscheinlichkeit abgeschnitten kann das evtl noch jemand anpassen das es komplett angezeigt wird?
Bild
Benutzeravatar
hammu
Senior member
Senior member
Beiträge: 2275
Registriert: 20 Jun 2018 09:37
Wohnort: OWL
Receiver 1: Gigablue UE 4K mit 7.4 und 7.5
Receiver 2: Gigablue UHD TRIO4K mit 7.4 und 7.5
Receiver 3: Gigablue Quadplus mit 7.4
Receiver 4: Gigablue Ultra UE mit 7.4
Receiver 5: div. alte Boxen
Hat gedankt: 331 Mal
Hat Dank erhalten: 1190 Mal

Re: Foreca-Wettervorhersage

#267

Beitrag von hammu »

Zeile 1413

Code: Alles auswählen

# self.setTitle(_("Foreca Weather Forecast") + ' ' + self.plaats)  # .replace("_", " "))
Nur Kommentarzeichen "#" davorsetzen. Das ist alles

-----------------------------------------------------------------------

Und für Datumsformatierung nach Zeile 1400 einfügen

Code: Alles auswählen

datum2f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month} {year}"
datum5f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month}"
datum2f ohne führende 0 mit Jahreszahl
datum5f ohne führende 0 ohne Jahreszahl
Zuweisung dann etwas weiter unten:

Code: Alles auswählen

self["Titel2"].text = datum2f
self["Titel5"].text = datum5f
Im Skin dann <widget name="Titel"... ersetzen durch "Titel2" bzw. "Titel5"
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}
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#268

Beitrag von lululla »

these things are whims for children.
I'm almost tired of this plugin too
They make me make a thousand changes, some want the date in one way, some in another, some want the icons big, some small, some higher and some lower. Sorry for the outburst
At the moment Label5 and Label3 are paused and will remain so for now.

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

There are various commits pending.
Let me breathe a bit ;)

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")),
Ch+/- and Vol+/-
work on City panel.

@jbleyel if you want update git..
Regards.
:D
Benutzeravatar
hammu
Senior member
Senior member
Beiträge: 2275
Registriert: 20 Jun 2018 09:37
Wohnort: OWL
Receiver 1: Gigablue UE 4K mit 7.4 und 7.5
Receiver 2: Gigablue UHD TRIO4K mit 7.4 und 7.5
Receiver 3: Gigablue Quadplus mit 7.4
Receiver 4: Gigablue Ultra UE mit 7.4
Receiver 5: div. alte Boxen
Hat gedankt: 331 Mal
Hat Dank erhalten: 1190 Mal

Re: Foreca-Wettervorhersage

#269

Beitrag von hammu »

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.
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#270

Beitrag von lululla »

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.
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.
But if you want to customize it, no one is stopping you from doing so,
- take the skin file (skin.xml or xml that contains the Foreca screens)
- or pause them or modify them as you like based on the changes you make to the ui.py source
It's not easy to please everyone, I know that graphics are important, but here we're talking about 2 minutes of seeing the time, it's not a movie or a TV series.

Sorry if I was clumsy.
I updated the help for each screen.

:good:
Benutzeravatar
Masta2002
Moderator
Moderator
Beiträge: 366
Registriert: 23 Aug 2021 11:42
Receiver 1: VU+ VUUno4KSE
Receiver 2: VU+ VUUno4KSE
Hat gedankt: 109 Mal
Hat Dank erhalten: 96 Mal
Geschlecht:

Re: Foreca-Wettervorhersage

#271

Beitrag von Masta2002 »

hammu hat geschrieben: 22 Feb 2025 09:47 Zeile 1413

Code: Alles auswählen

# self.setTitle(_("Foreca Weather Forecast") + ' ' + self.plaats)  # .replace("_", " "))
Nur Kommentarzeichen "#" davorsetzen. Das ist alles

-----------------------------------------------------------------------

Und für Datumsformatierung nach Zeile 1400 einfügen

Code: Alles auswählen

datum2f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month} {year}"
datum5f = f"{translated_day}, {int(datum[foundPos:])}. {translated_month}"
datum2f ohne führende 0 mit Jahreszahl
datum5f ohne führende 0 ohne Jahreszahl
Zuweisung dann etwas weiter unten:

Code: Alles auswählen

self["Titel2"].text = datum2f
self["Titel5"].text = datum5f
Im Skin dann <widget name="Titel"... ersetzen durch "Titel2" bzw. "Titel5"
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}
wäre es nicht möglich die Datumsformatierung im Einstellungsmenü Einstellbar zu machen?
Bild
Benutzeravatar
hammu
Senior member
Senior member
Beiträge: 2275
Registriert: 20 Jun 2018 09:37
Wohnort: OWL
Receiver 1: Gigablue UE 4K mit 7.4 und 7.5
Receiver 2: Gigablue UHD TRIO4K mit 7.4 und 7.5
Receiver 3: Gigablue Quadplus mit 7.4
Receiver 4: Gigablue Ultra UE mit 7.4
Receiver 5: div. alte Boxen
Hat gedankt: 331 Mal
Hat Dank erhalten: 1190 Mal

Re: Foreca-Wettervorhersage

#272

Beitrag von hammu »

Geht nicht gibt's nicht.
Das wäre allerdings ziemlich aufwändig und müsste schon im Original-Plugin passieren.
Und wieviele länderspezifische Darstellungen sollen es dann sein?

In den Systemeinstellungen vom Image kann man Zeitformate und Datumsformate konfigurieren.
Die kann man aber auch nicht einfach übernehmen.
Erstens sind die Rohdaten von Foreca und vom Image völlig verschieden.
Zweitens werden die auch nicht in jedem Skin berücksichtigt.

Irgendwann baut dann Foreca wieder etwas bei sich um und das Plugin funktioniert nicht mehr. Hatten wir ja alles schon.
Ich bin inzwischen der Meinung, man lässt alles wie es ist und wer dran herumbasteln will kann das für sich ja tun.
Benutzeravatar
Papi2000
Super Moderator
Super Moderator
Beiträge: 26624
Registriert: 20 Apr 2013 20:09
Receiver 1: Viele GigaBlues
Receiver 2: DM und ZGemma
Receiver 3: bissl VU
Hat gedankt: 4538 Mal
Hat Dank erhalten: 8595 Mal

Re: Foreca-Wettervorhersage

#273

Beitrag von Papi2000 »

Bisher hat sich bewährt, Plugins schlank und offen zu halten. Nur dadurch sind andere motiviert, daran mitzuarbeiten, und auch Fehlerbehebungen anzubieten.
Die anderen Plugins sterben nach und nach aus, weil das meist zu One-man-shows mutiert, und bei der momentanen Imagevielfalt zum Scheitern verurteilt ist.
Zuletzt geändert von Papi2000 am 22 Feb 2025 22:09, insgesamt 1-mal geändert.
Grund: Typo, Ergänzungen
Grüßle
Ralf
--------------------------------------------
---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Bild
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#274

Beitrag von lululla »

With a little patience everything will be fixed, I agree.
And then it's a nice plugin. A little old as a source..
It could be streamlined a lot.

This evening I inserted the help on all the screens (I hope they work because my wife doesn't let me access the TV.) :blush:


:yes4:

Code: Alles auswählen

https://github.com/Belfagor2005/e2openplugin-Foreca/commit/7fc6249f6928bf60c5638849f2168d0242c0af26
Benutzeravatar
Mr.Servo
Developer
Developer
Beiträge: 2989
Registriert: 10 Aug 2020 22:09
Wohnort: Pfalz / Palatinate
Receiver 1: GigaBlue UE 4K Cable (OpenATV 7.5.1)
Receiver 2: Mut@nt HD51 4K Cable (OpenATV 7.6)
Receiver 3: VU+ Uno 4K Cable (OpenATV 7.5.1)
Hat gedankt: 2052 Mal
Hat Dank erhalten: 2498 Mal
Geschlecht:

Re: Foreca-Wettervorhersage

#275

Beitrag von Mr.Servo »

Please don't spend too much in the old Plugin "FORECA".

I am currently working on a very sustainable alternative that you will all like. It just takes a little time!

Greetings......Mr.Servo
dp24
Member
Member
Beiträge: 48
Registriert: 09 Mai 2020 09:29
Receiver 1: VU+ Solo 4K DVB-S2
Receiver 2: VU+ Solo 4K DVB-S2
Hat gedankt: 10 Mal
Hat Dank erhalten: 8 Mal

Re: Foreca-Wettervorhersage

#276

Beitrag von dp24 »

"v3.3.6" stable
Dateianhänge
Foreca_v336.zip
(948.45 KiB) 18-mal heruntergeladen
v336metrix.jpg
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#277

Beitrag von lululla »

​i put here last fix
  • removed and cleaned old code
    info help rewritten in all screens
    fixed a bug that we had been carrying around for several versions: it seems that it didn't give the right city on prev/next
    fix on the config in saving data
    various minor fixes
@dp24
if you want you can edit the last one here, so I can insert your changes in the next version, maybe I think if we can insert the date somehow in the config
Dateianhänge
Foreca.zip
(1.08 MiB) 21-mal heruntergeladen
dp24
Member
Member
Beiträge: 48
Registriert: 09 Mai 2020 09:29
Receiver 1: VU+ Solo 4K DVB-S2
Receiver 2: VU+ Solo 4K DVB-S2
Hat gedankt: 10 Mal
Hat Dank erhalten: 8 Mal

Re: Foreca-Wettervorhersage

#278

Beitrag von dp24 »

@lululla

Thx for the fixes :good2: Have been playing around intensively with city selection and search - works like charm now. Great!

I've also made some changes to the code:
- big titel fix w/o cities as those always right-cutted in Metrix/Kraven
- re-done some titels
- re-assigned OK to cities, txt/tv left untouched
- German mo/po updated (but translation in help screen not working!)
- updated dedict.txt

1st pic's from the fix...
Dateianhänge
Foreca_v337_dp24.zip
(1.05 MiB) 15-mal heruntergeladen
337title.jpg
337titleNew.jpg
337titleKraven.jpg
Benutzeravatar
lululla
Developer
Developer
Beiträge: 137
Registriert: 09 Mai 2019 19:22
Receiver 1: Dinobot 4K Mini
Receiver 2: Dreambox One
Hat gedankt: 66 Mal
Hat Dank erhalten: 108 Mal
Kontaktdaten:

Re: Foreca-Wettervorhersage

#279

Beitrag von lululla »

well if you like it that way go ahead
But there are some gaps

-"start" is no longer used

Code: Alles auswählen

start = config.plugins.foreca.home.getValue()[config.plugins.foreca.home.getValue().rfind("/") + 1:]
- here instead you are not decided @Masta2002 wanted the hyphen then the dot, now the comma, as I said they are just little things that make no difference.

Code: Alles auswählen

plaats = _(self.ort[0:foundPos]) + ", " + self.ort[foundPos + 1:len(self.ort)]
- for Kraven, it will work but I made the changes for Metrix Hd/FHD and therefore the text overlaps..
I will not do this git, maybe others will do it I don't know.
Then the city configuration system depends on the configuration menu, I made a git for the MetrixHd where I fixed the widgets: should I make another one to re-fix?

LAST ISSUE but important

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.
Bild


Thank's for reply my friend :good:
dp24
Member
Member
Beiträge: 48
Registriert: 09 Mai 2020 09:29
Receiver 1: VU+ Solo 4K DVB-S2
Receiver 2: VU+ Solo 4K DVB-S2
Hat gedankt: 10 Mal
Hat Dank erhalten: 8 Mal

Re: Foreca-Wettervorhersage

#280

Beitrag von dp24 »

Thx for your swift feedback.

My major point is displaying the selected city (plaats/start whatsoever) in the big title at the very top. It's cut-off almost everytime.
Just therefore my proposal which might be a bit quick'n'dirty somehow. Especially the 'v' ;-)) Could be
self.setTitle(_("Foreca Weather Forecast v") + VERSION) or just
self.setTitle(_("Foreca Weather Forecast")
I did it like I did also because I don't know what happens with all the mo-files that contain 'Version'.
lululla 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.
Absolutely true :) Not the thing!

Concerning the labeling I've no idea since I've not been using Metrix - just did a quick check and made it working for Kraven again. If I would use Metrix (where's not that much space to show long names of places) I'd love to see the city w/o country on top as is in your fix and the date on bottom which I just re-invoked.
Antworten

Zurück zu „Plugins“