Posts: 3,571
Joined: Sep 2009
Reputation:
110
I can probably get it to just try in there as an alternative if the normal spot fails...can't hurt really.
I need to look at the code a bit as well to get it to refresh the bg images if > 1 month has passed or whatever, as at the moment it just gets them once and then tests if they are there and skips over if they are - meaning it would never get updated images, for example. When I do that I will look into this alternate source issue....but very busy right now with work...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 9,033
Joined: Feb 2012
Reputation:
551
Hi I'm wondering if anyone can help.
I'm getting python script errors with this plugin when running on Crystalbuntu. It appears to be using Python 2.6.
14:47:05 T:2722581392 INFO: -->Python script returned the following error<--
14:47:05 T:2722581392 ERROR: Error Type: <type 'exceptions.ImportError'>
14:47:05 T:2722581392 ERROR: Error Contents: No module named PIL
14:47:05 T:2722581392 ERROR: Traceback (most recent call last):
File "/root/.xbmc/addons/weather.ozweather/default.py", line 24, in <module>
from PIL import Image
ImportError: No module named PIL
14:47:05 T:2722581392 INFO: -->End of Python script error report<--
line 23/24 of default.py:
import time
from PIL import Image
Posts: 9,033
Joined: Feb 2012
Reputation:
551
2012-05-31, 10:16
(This post was last modified: 2012-05-31, 10:20 by wrxtasy.)
Thanks. Time to contact Sam then.
For the time being I have removed the line:
from PIL import Image
from the default.py script and the plugin works, except the Radar Background Image does not appear.
BTW Cracker of a Thunderstorm overhead here in Perth at the moment. :-)
Posts: 3,571
Joined: Sep 2009
Reputation:
110
I am about to commit and then request a pull of a new version...once they look at it it will make its way out to the wide world...
V0.3.8
- Only import PIL if extended features are activated (means on platforms like Crystalbuntu without PIL you can still get BOM weather data at least without having to edit any code)
- some radars (e.g. IDR072) - were not on the ftp server, they now get pulled in by http if they're available that way (thanks youngman!)
- backgrounds are refreshed every 24 hours to pick up any changes at the BOM
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 3,571
Joined: Sep 2009
Reputation:
110
That's very good work
That said once my update flows through I don't think this will be necessary....as long as those other radars live on the end of that http link we should be right...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 3,571
Joined: Sep 2009
Reputation:
110
At first glance looks like you didn't hit ok when doing your settings, just back. Thus it didn't save them and in the debug log you can see it doing a call with empty config data... Can you double check that?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 3,571
Joined: Sep 2009
Reputation:
110
Ok finally got my pull request for 0.3.8 right (third time's a charm) - should be flowing through to you soon...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 3,571
Joined: Sep 2009
Reputation:
110
No probs - basically it jsut ties http if ftp fails, seems to mostly work.
I was going to get it to force open the settings panel if the settings aren't set and weather is called, but none of the other weather addons do that so I though maybe that was too much for a weather addon that is called every 30 mins or something, might be hard for newbies or something...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 104
Joined: Dec 2008
Reputation:
1
Works ok, now when using the remote instead of the keyboard. Thanks
Posts: 3,571
Joined: Sep 2009
Reputation:
110
You'd have to hit enter on the 'ok' button to get it to save your settings with the keyboard instad of the usual escape/backspace you might normally use to navigate backwards.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.