XBMC Community Forum
[RELEASE] Weather Plus Addon - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Weather Add-ons (/forumdisplay.php?fid=155)
+---- Thread: [RELEASE] Weather Plus Addon (/showthread.php?tid=95329)



- sproket - 2011-11-20 20:02

Installed from Nuka's Repo. Only had 2.5.0

Beginning of this thread has 2.5.0 as zip also.

Where do I get 2.5.1?

Thanks


- brightsr - 2011-11-20 20:10

sproket Wrote:Installed from Nuka's Repo. Only had 2.5.0

Beginning of this thread has 2.5.0 as zip also.

Where do I get 2.5.1?

Thanks

Sorry, I've edited that. and here's link : http://xbmc-addons.googlecode.com/files/weather.weatherplus_2.5.1.zip


- brightsr - 2011-11-20 20:29

Hitcher Wrote:I think you'll find you wrong - Weather.IsFetched is not false when the weather info has been fetched by an addon.

Here's my understanding based on only my experience.

* Old Process

Built-in Weather Initialized (Regardless of any weather addon selected)
-> Attempts to fetch weather info
-> Built-in Weather Finished
-> Determines what to return to "Weather.IsFetched"
-> External Weather Addon Initialized (if selected)
-> Addon's work done

* New Process

Selected Weather Addon Initialized
-> Addon's work done
-> Determines what to return to "Weather.IsFetched"

Since Built-in Weather doesn't fetch any info in the old process, XBMC always returns False to "Weather.IsFetched".

Could you teach me what is wrong?


- sproket - 2011-11-20 20:29

Thanks

Got it installed

Now issue is it doesnt load any data of weather info.

No errors just will flash busy top right when I click refresh.

Did choose weather plus and setup locations

http://pastebin.com/ksULxp77


- brightsr - 2011-11-20 20:33

sproket Wrote:Thanks

Got it installed

Now issue is it doesnt load any data of weather info.

No errors just will flash busy top right when I click refresh.

Did choose weather plus and setup locations

http://pastebin.com/ksULxp77

There may be some error during fetching info of your location from NOAA.
I'll look into it. Please use another provider.
Thanks.


- sproket - 2011-11-20 20:45

Accuweather gave some info and seems to work but not NOAA


- Hitcher - 2011-11-20 20:50

brightsr Wrote:Here's my understanding based on only my experience.

* Old Process

Built-in Weather Initialized (Regardless of any weather addon selected)
-> Attempts to fetch weather info
-> Built-in Weather Finished
-> Determines what to return to "Weather.IsFetched"
-> External Weather Addon Initialized (if selected)
-> Addon's work done

* New Process

Selected Weather Addon Initialized
-> Addon's work done
-> Determines what to return to "Weather.IsFetched"

Since Built-in Weather doesn't fetch any info in the old process, XBMC always returns False to "Weather.IsFetched".

Could you teach me what is wrong?

I have no idea how XBMC works it out but I use conditions based on Weather.IsFetched and if I select None for the Weather addon then my !Weather.IsFetched condition is true; likewise using a Weather addon my Weather.IsFetched codition is true.

If there had been any change to this bool I sure we'd have been told about.


- brightsr - 2011-11-20 20:53

sproket Wrote:Accuweather gave some info and seems to work but not NOAA

Accuweather is not giving all the info like weather.com. if you see current weather info, it must be working well.


- brightsr - 2011-11-20 21:33

Hitcher Wrote:I have no idea how XBMC works it out but I use conditions based on Weather.IsFetched and if I select None for the Weather addon then my !Weather.IsFetched condition is true; likewise using a Weather addon my Weather.IsFetched codition is true.

If there had been any change to this bool I sure we'd have been told about.

Do you mean both of dharma and eden-pre?
When it comes to recent nightly builds, there's no problem i can see now.
I mean dharma. I don't know why current condition icon and temperature don't appear on the home screen of confluence skin, and why removal of 'Weather.IsFetched' does the trick. Confused


- fional - 2011-11-21 00:55

brightsr Wrote:I didn't upload to nuka's repo. It'll be available at the official repo soon. Before that please install from zip file.

I installed from your zip file, and a couple of things:

I set it up using accuweather, and I still don't get an animated icon (or an icon at all, for that matter) with current condition. This is using Aeon Nox's widget for weather, including the little tiny icon you would see by the date and time.

When I actually go into the weather, and go to Current Conditions, the icon is missing there as well.

It may be worth noting I don't have access to the weather video that I used to get through accuweather.

Also, when I originally ran the programme, I had this error:

Code:
22:48:37 T:1176 M:3009261568  NOTICE: [Weather Plus] Video Loc Code : ie
22:48:37 T:1176 M:3009261568   ERROR: Error Type: exceptions.IndexError
22:48:37 T:1176 M:3009261568   ERROR: Error Contents: list index out of range
22:48:37 T:1176 M:3008901120   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\default.py", line 49, in ?
                                                Main( argv == 1 ) # argv > 1 : guisettings has areacode ( so sys.argv[1] has areacode )
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\xbmcplugin_we​ather.py", line 111, in __init__
                                                self._fetch_36_forecast()
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\xbmcplugin_we​ather.py", line 428, in _fetch_36_forecast
                                                alerts, alertsrss, alertsnotify, alertscolor, alertscount, forecasts, extras, video, video_title = self.WeatherClient.fetch_36_forecast( self.newbuild, self.WEATHER_WINDOW.getProperty( "Video" ) )
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\WeatherClient​.py", line 3821, in fetch_36_forecast
                                                video, video_title = self._create_video( parser.video_location, parser.video_local_location, parser.video_local_number, video )
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\WeatherClient​.py", line 4370, in _create_video
                                                if (self.code.startswith("FR") or self.code.startswith("SP") or self.code.startswith("IT") or self.code.startswith("GM") or self.code.startswith("NL") or self.code.startswith("GR") or self.code.startswith("PO") or self.code.startswith("EI") or accu_loc[0].startswith("iseur")):
                                            IndexError: list index out of range

I restarted and here is my log:

http://pastebin.com/jGTFg6QD


Thanks so much!