Jump to content


Photo

Foreca work on Pli


  • Please log in to reply
37 replies to this topic

Re: Foreca work on Pli #21 WanWizard

  • PLi® Core member
  • 71,149 posts

+1,841
Excellent

Posted 30 December 2024 - 16:01

What’s your idea? Take over this repo and abandon Foreca on e2openplugin ? Or update the version on e2openplugins?

 

I would prefer to keep the actual version centrally, in e2openplugins.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Foreca work on Pli #22 WanWizard

  • PLi® Core member
  • 71,149 posts

+1,841
Excellent

Posted 30 December 2024 - 16:03

import requests

 

ModuleNotFoundError: No module named 'requests'
 
Please install library requests

 

Which is one of the reasons why plugins should be available as source, compiled, and added to the feed. Instead of downloaded from some vague forum, with manually created ipk's with a broken control file.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Foreca work on Pli #23 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted 30 December 2024 - 17:06

 

import requests

 

ModuleNotFoundError: No module named 'requests'
 
Please install library requests

 

Which is one of the reasons why plugins should be available as source, compiled, and added to the feed. Instead of downloaded from some vague forum, with manually created ipk's with a broken control file.

 

 

I think I contributed my friend.
My git is there, I forked it but it doesn't update your git
if you want I can make an ipk with the necessary controls for the libraries, but better in the feeds


Re: Foreca work on Pli #24 WanWizard

  • PLi® Core member
  • 71,149 posts

+1,841
Excellent

Posted 30 December 2024 - 19:10

No, I don't want more ipk's ;).

 

But I don't like forks all over the place either, and having to change build recipes all the time, losing track of which repo has the correct and most up to date version.

 

There is a repo for the plugin, anywone willing to be maintainer for the plugin can get push access to it. If sending PR's back upstream from your own fork is not what you want to do.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Foreca work on Pli #25 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted 30 December 2024 - 19:49

No, I don't want more ipk's ;).

 

But I don't like forks all over the place either, and having to change build recipes all the time, losing track of which repo has the correct and most up to date version.

 

There is a repo for the plugin, anywone willing to be maintainer for the plugin can get push access to it. If sending PR's back upstream from your own fork is not what you want to do.

tell me what to do... and I'll do it ;)
 
At the moment the version on my git, works perfectly and I did a bit of cleaning


Re: Foreca work on Pli #26 WanWizard

  • PLi® Core member
  • 71,149 posts

+1,841
Excellent

Posted 30 December 2024 - 20:12

I can give you push access to https://github.com/e...enplugin-foreca, so you can work directly in that repo.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Foreca work on Pli #27 ims

  • PLi® Core member
  • 13,988 posts

+216
Excellent

Posted 30 December 2024 - 20:28

 

What’s your idea? Take over this repo and abandon Foreca on e2openplugin ? Or update the version on e2openplugins?

 

I would prefer to keep the actual version centrally, in e2openplugins.

 

It would probably be best if both of them (pzanone and MrServo) working on it could come to an agreement because the changes are conflicting with each other.


Kdo nic nedělá, nic nezkazí!

Re: Foreca work on Pli #28 WanWizard

  • PLi® Core member
  • 71,149 posts

+1,841
Excellent

Posted 30 December 2024 - 20:33

If pzanone as push rights on the repo, he (assumpion here ;)) can decide whether or not to merge a PR from MrServo.

 

It was now merged by Jorg, and I really doubt if he even looked at the code before pressing the "Merge" button.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Foreca work on Pli #29 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted 30 December 2024 - 21:03

i comiit my change..

 

Comparing E2OpenPlugins:master...Belfagor2005:master · E2OpenPlugins/e2openplugin-Foreca

 

if it's ok.. i pushed :)

 

In the meantime I wish you a Happy Ending and a great start to the new year to come.
 


Edited by pzanone, 30 December 2024 - 21:04.


Re: Foreca work on Pli #30 caligula73

  • Senior Member
  • 47 posts

0
Neutral

Posted 31 December 2024 - 12:27

 

managed to get it to work by updating files version 3.3.5
if you put it clean - green screen and reboot

import requests
ModuleNotFoundError: No module named 'requests'
 
Please install library requests

opkg install python3-requests 

after installing opkg install python3-requests it worked Foreca-pli 9.zip - Foreca_20241229.zip weather does not load


HD51 (2xFBC S2) 14w+4w+1w+5e+9e+13e+16e+19e+23e+42e+45e+51e+52e+53e+55e+56e+60e+75e+80e+90e


Re: Foreca work on Pli #31 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted 31 December 2024 - 13:13

all work on pli9 my friend

attached last here

 

Attached Files



Re: Foreca work on Pli #32 bugmenot1

  • Senior Member
  • 31 posts

0
Neutral

Posted 31 December 2024 - 13:58

all work on pli9 my friend

attached last here

and for Openpli 8.3? :unsure:



Re: Foreca work on Pli #33 Tech

  • Forum Moderator
    PLi® Core member
  • 14,972 posts

+489
Excellent

Posted 31 December 2024 - 14:21

 

all work on pli9 my friend

attached last here

and for Openpli 8.3? :unsure:

 

Just upgrade to 9.1 ;-)


Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

On the edge of the abyss, a step forward is not always progress....

Hardware: 2x Daily used Vu+ Ultimo 4K - Vu+ Duo 4K SE and a lot more.... - VisioSat BiBigsat - Jultec Unicable Multiswitch 4 positions: 19.2/23.5/28.2 East - Diseqc motorized flatdish antenna

Software : HomeBuild OpenPLi Develop and Scarthgap builds, local cards driven by OsCam

Press the Posted Image button on the buttom right of this message ;)

Have you tried our wiki yet? Many answers can be found in our OpenPLi wiki


Re: Foreca work on Pli #34 Pr2

  • PLi® Contributor
  • 6,221 posts

+262
Excellent

Posted 31 December 2024 - 18:22

 

all work on pli9 my friend

attached last here

and for Openpli 8.3? :unsure:

 

 

All modern images are now using python3.x so please upgrade your box. It is useless to ask for support for images that were running with python 2.x the plugin are adapted to python3.x and no longer supported for python 2.x


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Foreca work on Pli #35 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted 1 January 2025 - 15:31

the local .po automatically updates the words contained in the code via a program if supported and anticipated by _ (gettext())
 
Actually I was working on an external system, because if the .po were updated, it would pause the words that you will add, so I created a dictionary in multiple languages in
language_en=lang_trad (lang_box locale)
so it is only valid for description:
I created a definition that I am testing.
it's only test but work
 
how it works:
in the folder you will put a file
 
the words are in the file in English. only those, if you add or change them you must notify me, it must be done for all dictionary files
 
in my case in itdict.txt
english=italian
the program finds the word in English and translates it into Italian
there is no alternative as far as I'm concerned
 
try:
    lng = config.osd.language.value
    lng = lng[:-3]
except:
    lng = 'en'
    pass


# translate_description
translation_dict = self.load_translation_dict(lng)            
description[x] = self.konvert_uml(str(sub(r'<[^>]*>', "", description[x])))
description[x] = self.translate_description(description[x], translation_dict)
list.append([thumbnails[x], zeit[x], temp[x], windDirection[x], windSpeed[x], description[x], feels[x], precip[x], humidity[x]])
    x += 1

and so.. 

    def load_translation_dict(self, lng):
        dict_file = resolveFilename(SCOPE_PLUGINS) + "Extensions/Foreca/dict/%sdict.txt" % lng
        if not exists(dict_file):
            dict_file = resolveFilename(SCOPE_PLUGINS) + "Extensions/Foreca/dict/endict.txt"
        print('dict_file=', dict_file)
        translation_dict = {}
        with open(dict_file, 'r') as file:
            for line in file:
                parts = line.strip().split('=')
                if len(parts) == 2:
                    key, value = parts
                    translation_dict[key.strip().lower()] = value.strip()
        return translation_dict

    def translate_description(self, description, translation_dict):
        cleaned_description = sub(r'[\t\r\n]', ' ', description).strip()
        words = cleaned_description.split()
        return ' '.join([translation_dict.get(word.lower(), word) for word in words])

 

I think I'll insert this definition first search for a complete sentence and if it doesn't find it start translating for single word (assuming it's in the dict)

    def translate_description(self, description, translation_dict):
        cleaned_description = sub(r'[\t\r\n]', ' ', description).strip()
        if cleaned_description.lower() in translation_dict:
            return translation_dict[cleaned_description.lower()]
        words = cleaned_description.split()
        return ' '.join([translation_dict.get(word.lower(), word) for word in words])

Edited by Tech, 1 January 2025 - 17:02.
Removed added file on request.


Re: Foreca work on Pli #36 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted 1 January 2025 - 15:45

test image

 

screenshot-1.png



Re: Foreca work on Pli #37 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted 1 January 2025 - 15:58

hemm sorry attached last file are for dreambox

 

this for pli

 

i have tested for dreamos..

i checking the code it will work on pli too

give me an ok if it works I can't try now..

Attached Files



Re: Foreca work on Pli #38 pzanone

  • Senior Member
  • 250 posts

+13
Neutral

Posted Yesterday, 13:16

Now all traduciton are OK
 

Locale update translations Time · Belfagor2005/e2openplugin-Foreca@1b143b7
 

It works in Chinese too  B)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users