Foreca One Weather Plugin NEW (Lululla Make)

There are 395 replies in this Thread which was already clicked 43,094 times. The last Post () by exsat2.

  • Hello Lululla .


    I have a crash when pressing OK button when 'Perigee' moon is selected at Moon Calendar. Is it me or something wrong at the code ?


    < 91212.330869> 09:52:45.3634 [ActionMap] Keymap 'ForecaActions' -> Action = 'ok'.

    < 91212.334383> 09:52:45.3669 Traceback (most recent call last):

    < 91212.337058> 09:52:45.3696 File "/usr/lib/enigma2/python/Components/ActionMap.py", line 58, in action

    < 91212.337205> 09:52:45.3697 File "/usr/lib/enigma2/python/Plugins/Extensions/Foreca1/moon_calendar.py", line 376, in show_details

    phase['illumination']) + "\n"

    ~~~~~^^^^^^^^^^^^^^^^

    < 91212.337316> 09:52:45.3698 KeyError: 'illumination'

    < 91212.337612> 09:52:45.3701 [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.HelpableActionMap object at 0x9ab6c850>>,('ForecaActions', 'ok')) failed)

  • Nope, there must be something else. Maybe the size is too small for moonset_value and moonrise_value. How about other cities ?

    Do you have API key ?

    I've tested all images on a Vu+ ZERO4K (OpenATV 7.6/8.0, OpenPLi, OpenBh) with the MetrixFHD, KravenFHD, and default skins, and NONE of them display moonrise and moonset for any city. :face with rolling eyes:

    What receiver/image/skin/font are you using?


    ForecaOne.jpg

  • I'm just like you. I can't get the moonrise and moonset times to show up.

  • I have the same

    Edited once, last by jersza ().

    • Official Post


    I updating the plugin but steel seems 1.1.1 v.,Open ATV 8.0.0 Alpha image.

    Thanks.


    The problem with sunrise and sunset times not being displayed is likely because the free API (ForecaFreeAPI) doesn't provide this data in the daily forecast. The code uses the following logic:


    Code
    daily_all = self.weather_api.get_daily_forecast(location_id, days=days_needed)
    if not daily_all and self.weather_api_auth:
        daily_all = self.weather_api_auth.get_daily_forecast(location_id, days=days_needed)

    If the free API returns a valid object (even without sunrise/sunset), the fallback to the authenticated API is not performed. Therefore, day_selected.sunrise and day_selected.sunset are None and the widgets display N/A.


    try update

    and feedback if work otherwise,, register for api auth ;)

  • It may be the result of a mistranslation. The values for sunrise and sunset exist. These values are missing for the moon.

    • Official Post

    Hi,
    Would it be possible to add a custom skin folder to the menu?
    Here's my cosmetic fix, for example.
    qpnl.jpg

    :) this is flat screen.. :)

    You should still use essential widgets in the screens, since the code plays with these widgets and modifies them.

    From the plugin, we can change the skin settings, such as color, etc.

    So you need to stick to the essential widgets and classes.

    That is, the names of the widgets (all of them) must be in the custom skins.

    You take screenshots of all the classes,

    try placing them in the fhd folder, delete the originals, or rename them.

    If everything works, I'll see if I can accommodate you... no promises, though.

  • I use the FHD skin and personally I don't like rounded corners.
    So, via telnet:

    Code
    cd /usr/lib/enigma2/python/Plugins/Extensions/Foreca1/skins/fhd/
    sed -i 's/cornerRadius\="[0-9][0-9]"//g' *.xml



    And this Foreca_Preview.xml



    And i make little corrective in plugin.py for """Update the buttons with city names (truncated to 13 characters)"""

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!