Foreca Weather Plugin

There are 481 replies in this Thread which was already clicked 113,784 times. The last Post () by willy014.

  • Hello Lululla,

    unfortunately I don't speak any foreign languages and have to do everything with a translator, which may lead to mistakes or misunderstandings.

    But I would like to try anyway.


    I proceed as follows:

    Start Foreca -> OK -> select Home, Fav1 or Fav2 ->OK -> select location -> OK -> red colour

    Then the selected city is correctly adopted and is correctly displayed and written to the settings when the gui is restarted.


    Bild 1.png


    But if I proceed as I think is correct:

    Start Foreca -> TV or text -> Select city in list -> blue, yellow or green, then this city is saved


    Bild 2.png


    If I press the Exit button, the city is displayed incorrectly and the values for the weather are also incorrect.


    Bild 3.png


    With this method, nothing is written to the settings even when the Gui is restarted


    I hope that it was understandable.


    Translated with DeepL.com (free version)

    • Official Post

    if you push on exit.. don't save city.. ;)
    only on OK - or Blu -Green - Yellow etc..

    try this.. same operation. .and report please


    remember Exit no save..

  • Hi, thanks for your feedback.


    I have moved your ui.py to the plugin directory and deleted the ui.pyo. Gui restart


    Start Foreca-> TV -> Select city from list -> OK, blue, yellow or green, nothing is saved.


    Start Foreca -> OK -> Select home, Fav1 or Fav2 -> OK -> select city -> green, yellow or blue -> saves the city without putting the country in front of it.


    only


    Start Foreca -> OK -> Select home, Fav1 or Fav2 -> OK -> select location -> OK

    Now it doesn't matter whether I go out with red or green saves correctly


    Translated with DeepL.com (free version)

    • Official Post

    mistake.. in city panels
    eg.: Button Green and exit next pusched green.




    green assign and save value on config..

    and exit returns self.city(Green Locations)

    :person shrugging: :person shrugging:

    • Official Post

    mm



    maybe when returning from the city panel, it only reloads the city stored in Home (blue Button)


    Code
            start = str(config.plugins.foreca.home.value)
            city = start



    but after you have memorized the Buttons, you can press OK, it should give the right city on the way back..I think..I hope.

    • Official Post

    No.. no.. no..


    Code
            city = start
            if callback is not None:
                city = callback[callback.rfind("/") + 1:].replace("_", " ")
            self.ort = city


    returns the selected city in callback..

    So it must work..

    do some more tests.

    I attach another updated file

  • Hello, thx.

    I have added the new ui.py


    Start Foreca -> TV -> select city from list -> only blue saves the cities in the settings, display in ‘Title 4’ initially without country information, labelling button blue correct, but after gui restart this is shown correctly.


    Unfortunately, the yellow and green buttons do not save.

    the OK button would be for the temporary display and does not work because the country is missing in front of the city name.

    • Official Post

    OK. I take advantage of your availability:


    -I think I have fixed the buttons. (I have not tested) but I inserted a refresh on the labels.. it should work.


    While on the green and yellow buttons, it seems very strange to me since the 3 buttons do the same thing (they save in the configuration which is then fished in the main)


    and here code source for it ;)

    Git Update


    Removed: Global-Code Unnecessary-Add.Refresh Button- fix CitiPanel Ca… · Belfagor2005/e2openplugin-Foreca@583cc5c



    regards..

  • Hello Lululla,


    I have tested the new ui.

    Unfortunately no improvement, but rather a step backwards.

    Assigning a city with blue is not taken over directly in the button.

    Saving with green and yellow unfortunately still has no function.

  • why don't we remove the .cfg files and use the config menu to set fav1 fav2 and home?


    i make 3.3.7 version

    Foreca Weather Plugin

    git are Update

    -removed all file .cfg

    Downloaded the current version from the first post, but the .cfg files are still there.

    Shouldn't you be removed from .ipk? Please


    Capture1.JPG


    Capture.JPG


    2- Volume button are not working, do not scrooling down in the list "city.cfg"


    could you be able to check, please


    VU Zero4K - Egami 10.6 - R4

    Code
    "volumeDown": (self.jump100_up, _("Volume- - 100 forward")),
    "volumeUp": (self.jump100_down, _("Volume+ - 100 back")),

    VU Zero4k ATV7.5

    • Official Post


    just because they are there doesn't mean the .cfg files are used

    • Official Post

    try last my git ;)

  • I apologise for the late message.

    The current Git version also only saves to the settings for blue.

    Calling a temporary location via TV & OK still calls the wrong location, because not country-city is called, but city minus last letter-city.

    Bsp.:

    NZ-Whakatane

    Whakatan-Whakatane

  • Hi Lululla,


    I have installed the new version.

    Wanted to change the city for GREEN.

    TV -> City selection -> green Exit plugin Gui restart.


    Nothing was changed in the settings.


    Now I have the blue weather on all buttons although the labelling of the buttons still shows different cities correctly.


    This phenomenon persists even after restarting and only changes again by importing an older py


    Thank you for continuing to work on this problem!


    Translated with DeepL.com (free version)

    • Official Post

    send me the oldest .py

    I'll try to figure out what's going on.

    It is not necessary to restart the Gui..

    what image are you using?

    in the first post of the topic there is the VTI version updated to today, very strange this fact

    on openpli and atv I have absolutely no problems, even if I had not noticed the different data with forward and backward.. Thanks

  • Hello Lululla,


    that's what I call at least a partial success!

    Saving directly from the city list via colour buttons does not work, but this is perfectly possible via settings (plugin start -> OK).

    Calling up a temporary city via TV or text button, selecting the city from the list and pressing OK now works 100%.


    This is such a big hit, thank you

Your source for Enigma2 weather plugins

Find downloads and support for tools that show detailed local forecasts, severe weather alerts, and animated radar displays on your device. Discover Enigma2 weather plugins for your receiver. Access downloads and support to display local forecasts and real-time weather information directly on screen.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!