TheWeather Plugin V2.X - PY2 - PY3 - DEB & IPK

There are 349 replies in this Thread which was already clicked 64,264 times. The last Post () by kalkan99.

    • New
    • Official Post

    try (not tested but.. the code is simply


    1. Resolution Parameters: Consolidated all resolution-specific settings into parameter dictionaries (HD and SD) to avoid code duplication.
    2. Modular Methods:
      • setup_weather_display(): Main method that orchestrates the display setup
      • process_day_data(): Handles processing for each day's weather data
      • generate_day_elements(): Generates the skin elements for each day
    3. Error Handling: Added proper error checking for precipitation data to prevent the IndexError you encountered.
    4. Specific exception handling for different operations
    5. More informative error messages (printed to console)
    6. Graceful fallbacks when things go wrong
    7. Replaced the long chain of if/elif statements with a dictionary lookup
    8. Much more efficient (O(1) lookup time vs O(n) for if/elif chain)
    9. Easier to maintain and modify
    10. Split the function into smaller, focused helper functions

    overwrite to

    usr\lib\enigma2\python\Plugins\Extensions\TheWeather

  • dreambox 920 egami images oe 2.0

    green screen


    Code
    22:05:21.8188   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 278, in action
    22:05:21.8194   File "/usr/lib/enigma2/python/EGAMI/EGAMI_Green.py", line 782, in keySelect
    22:05:21.8198   File "/usr/lib/enigma2/python/Plugins/Plugin.py", line 92, in __call__
    22:05:21.8201   File "/usr/lib/enigma2/python/Plugins/Extensions/TheWeather/plugin.py", line 1252, in main
  • dreambox 920 egami images oe 2.0

    green screen


    Code
    22:05:21.8188   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 278, in action
    22:05:21.8194   File "/usr/lib/enigma2/python/EGAMI/EGAMI_Green.py", line 782, in keySelect
    22:05:21.8198   File "/usr/lib/enigma2/python/Plugins/Plugin.py", line 92, in __call__
    22:05:21.8201   File "/usr/lib/enigma2/python/Plugins/Extensions/TheWeather/plugin.py", line 1252, in main


    Hi,


    i have DM920 , the weather plugin work without any pb.


    tested on Merlin image , openatv 7.51 - openatv 7.6


    br

  • Actually, egami and openatv 7.5.1 softwares

    Even though it was python 3.12.8-9, the problem was fixed in egami software, the same plugin py file caused the problem in openatv


    • New
    • Official Post

    add fix in try:





    BUT THIS WAY YOU RISK NOT TAKING ANYTHING... TRY AND SEE IF IT'S OK...

Participate now!

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