Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 44

Thread: No weather

  1. #16

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts

    Thumbs up

    Unzip and copy the 2 files into here, replacing what exists (back up the existing files first)

    Code:
    \Root\usr\lib\enigma2\python\Plugins\Extensions\LCD4linux
    If neither of us have had the error after a week or so, I'd say we're good
    Attached Files Attached Files

  2. The Following User Says Thank You to pembo For This Useful Post:

    chaser (31-05-15)

  3. #17

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    My error occurs at the exact same time as well

  4. #18

    Title
    Senior Member
    Join Date
    Jun 2012
    Posts
    427
    Thanks
    119
    Thanked 135 Times in 105 Posts
    Thanks for this. I'm away from by box just now, but will get it done tomorrow evening.

  5. #19

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    I'm getting some other errors now similar issue somewhere else... still testing.

  6. #20

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    Ok, found another separate issue that's causing the weather not to show...

    Code:
    06:41:03 Error1: Traceback (most recent call last):
      File "/usr/lib/enigma2/python/Plugins/Extensions/LCD4linux/plugin.py", line 4023, in run
        para[0](para[1],para[2],para[3])
      File "/usr/lib/enigma2/python/Plugins/Extensions/LCD4linux/plugin.py", line 9194, in putWetter
        if Feel=="" or abs(int(Feel or "0")-int(Temp_c[:-1] or "0")) < int(LCD4linux.WetterExtraFeel.value) or LCD4linux.WetterExtra.value == False:
    ValueError: invalid literal for int() with base 10: '9\xb0'
    This occurs because for some reason every now and again, the degrees symbol is returned with the feel value, so I'll need to change it to handle this
    e.g. when it works, the value is just a digit,

    Code:
    01:35:03 feel is: 8
    when it fails, the value is...

    Code:
    06:41:03 feel is: 9°
    I'll take a look and fix the - problem is, right now I can't work out why this happens, whether its the weather api, or somewhere else in the code, but I can put some defensive code in to avoid the crash.
    Last edited by pembo; 04-06-15 at 07:00.

  7. #21

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    Ok - anyone who uses LCD4L and weather and having issues with crashes please try the attached.

    1. browse to
      Code:
      /usr/lib/enigma2/python/Plugins/Extensions/LCD4linux
    2. backup the following two files:
      • plugin.py
      • plugin.pyo
    3. Unzip the files in the attached zip replacing these two files
    4. Restart the e2 gui for the file to take effect


    Leave this running, ensure the weather eventually shows (may take 10 minutes to refresh the weather) and post back if you don't experience any more crashes over the next few days.
    Attached Files Attached Files
    Last edited by pembo; 04-06-15 at 23:05.

  8. The Following 3 Users Say Thank You to pembo For This Useful Post:

    abu baniaz (04-06-15),chaser (05-06-15),Sicilian (07-06-15)

  9. #22

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    just to report back, no crashes so far, but it's too early to be sure. Need to monitor the weather over a few days!
    The change covers two area that were causing crashes for me...

    1) Regen (German for rain!) when no value is returned from the weather api
    2) Temperature Feel - when a degrees symbol is returned.

  10. The Following 2 Users Say Thank You to pembo For This Useful Post:

    Andy_Hazza (05-06-15),chaser (05-06-15)

  11. #23

    Title
    Senior Member
    Join Date
    Jun 2012
    Posts
    427
    Thanks
    119
    Thanked 135 Times in 105 Posts
    I've copied the files over to the box, but I've not had the opportunity to reboot the box yet. Will do that later this evening when everyone else has gone to bed and will report back later.

  12. The Following User Says Thank You to chaser For This Useful Post:

    pembo (05-06-15)

  13. #24

    Title
    Senior Member
    Join Date
    Jun 2012
    Posts
    427
    Thanks
    119
    Thanked 135 Times in 105 Posts
    Rebooted the box yesterday evening, but still seem to be getting a crash.

    L4Lcrash.txt:
    Code:
    Traceback (most recent call last):
      File "/usr/lib/enigma2/python/Plugins/Extensions/LCD4linux/plugin.py", line 4023, in run
        para[0](para[1],para[2],para[3])
      File "/usr/lib/enigma2/python/Plugins/Extensions/LCD4linux/plugin.py", line 9150, in putWetter
        if int(Regen.replace("%","")) >= int(LCD4linux.WetterRainColor2use.value):
    ValueError: invalid literal for int() with base 10: ''
    The L4log.txt file shows this error occurring several times during the early hours of the morning:

    00:36:04
    00:40:04
    00:56:04

    Typical output from L4log.txt:

    Code:
    00:36:03 Data-Build 
    00:36:04 creating LCD-Picture 
    00:36:04 Wetter Picon used: /usr/lib/enigma2/python/Plugins/Extensions/LCD4linux/wetter/ png
    00:36:04 Error1: Traceback (most recent call last):
      File "/usr/lib/enigma2/python/Plugins/Extensions/LCD4linux/plugin.py", line 4023, in run
        para[0](para[1],para[2],para[3])
      File "/usr/lib/enigma2/python/Plugins/Extensions/LCD4linux/plugin.py", line 9150, in putWetter
        if int(Regen.replace("%","")) >= int(LCD4linux.WetterRainColor2use.value):
    ValueError: invalid literal for int() with base 10: ''
    
    00:36:04 Push: 0.178 (1/0/0) Wait: 0.001 
    00:36:04 writing to Vu+ LCD 
    00:36:04 RunTime: 0.255 (Picture: 0.192 / Write: 0.063)
    The 'Wetter Picon used:' line looks a bit odd. There is no actual picon file name - just the png extension.
    Last edited by chaser; 06-06-15 at 11:49.

  14. The Following User Says Thank You to chaser For This Useful Post:

    pembo (06-06-15)

  15. #25

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    Thanks... I've been waiting for rain ;
    I'll take a look... I haven't changed the code there so it's probably another issue but I'll check it out based on your trace!

  16. #26

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    Ok, same instructions as before... give this a try.. I've addressed the 'Regen' (rain) issue everywhere I think!
    Still waiting for any sort of rain chance on the weather myself so can't recreate this issue yet... only a matter of time though

    Let me know how you get on this time!
    Attached Files Attached Files

  17. The Following User Says Thank You to pembo For This Useful Post:

    chaser (07-06-15)

  18. #27

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    no issues overnight - but no chance of rain either!

  19. #28

    Title
    Senior Member
    Join Date
    Jun 2012
    Posts
    427
    Thanks
    119
    Thanked 135 Times in 105 Posts
    Quote Originally Posted by pembo View Post
    Thanks... I've been waiting for rain ;
    I'll take a look... I haven't changed the code there so it's probably another issue but I'll check it out based on your trace!
    Yeah. not sure it's too relevant actually. Before you posted your latest fix, I did a bit of digging around yesterday, and found the following changelog:

    Code:
    4.5r0 (26.01.2015)
    - Wetter: OpenWeatherMap Alternative
    - zusätzliches Hintergrund-Element
    - randlose Forschrittbar , +/-min
    - einige weitere Elemente: +Längeneinstellung
    - externes Element: +"circle"
    - Unterstützung ET8500-Skin-LCD
    - Fix: jährliche ICS-Termine , IMAP Tageabfrage
    - weitere kleine Anpassungen (MP3-Info...)
    r1 (27.01.): Fix: geteilter Schirm/Länge ; Fortschrittbar "auf Linie" 
    r2 (31.01.): Fix: globale Font-Einstellung per WebIF ; Picondarstellung bei Position>0 ; Satellit OE2.2 ; Standardwert Länge Sendungsinfo ist "100%"
    r3 (28.02.): Timeshift"Ring" ; Fortschrittbar ausschaltbar ; Klappenuhr mit Datum oder Wochentag ; Sprachenupdate pl,fr,ru,es (Thanks to contributors)
    r4 (05.04.): Fix: Wettercrash , Kalenderaktualisierung ; Sprachenupdate Spanisch
    The latest r4 update is what looked interesting.

    I'm a bit confused about where the 4.6-r1 version that is currently ships with OpenVix comes from, and if this is actually later than the 4.5-r4 version above. I suspect it's not.
    I downloaded the latest enigma2-plugin-extensions-lcd4linux_4.5-r4_mips32el.ipk and installed this over the top of the existing version, but this didn't seem to work properly. I then decided to just replace the plugin.py file, and see what difference that made. It messed up much of my LCD config, so I had to set it up from scratch again. But once that was done, it all seems to be working again. No crashes yet, and plenty of rain here. In fact, Thursday looks very rainy! Copy of plugin.py from the 4.5-r4 ipk file attached below...

    plugin.rar
    Last edited by chaser; 07-06-15 at 10:45.

  20. #29

    Title
    Senior Member
    Join Date
    Jun 2012
    Posts
    427
    Thanks
    119
    Thanked 135 Times in 105 Posts
    Just extracted the entire LCD4Linux and Component folders from the 4.5-r4 ipk (using 7zip), copied these over to my box, rebooted, and all looks good. There are also usb and icalendar subfolders in the tmp folder of the ipk. I didn't copy these across. I suspect the usb bit was breaking comms with the LCD screen when using the VU box to install the ipk. Copy of full ipk below:

    enigma2-plugin-extensions-lcd4linux_4.5-r4_mips32el.ipk
    Last edited by chaser; 07-06-15 at 11:35.

  21. #30

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    the vix version of lcd4linux is a branch of the original (with additional modifications) I believe at request of the author - so it's not quite as straight forward.
    If you copy the original, you'll lose certain features, e.g. service name picon support.

    The fixes I've applied to the vix version also appear to have resolved all the weather issues - I've not had a crash in just short of a week now.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.