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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155)
+---- Thread: [RELEASE] Weather Plus Addon (/showthread.php?tid=95329)



- Hitcher - 2011-11-20

ShortWindDirection isn't returning the abbreviated direction.


- fional - 2011-11-20

brightsr Wrote:Do you use Accuweather.com? if do, it's normal that the current condition is in uppercase. If you don't like it, I can change it like weather.com's one.

You have a problem with animated icons? icon file name usually have only numbers, so it's not due to condition in uppercase. it's may be due to your skin or skin's setting. if you can let me know what skin you use, I can test on that.

I am in Ireland, I think accuweather is all I can use at the moment.

I see, yes I suppose that makes sense about the animated icons. I was just grasping at straws, because it worked grand until that one issue came up.

I am using Aeon Nox, the Dharma version, I really appreciate your help. It's the first thing I look at every morning to see if I need my umbrella Smile

--

The new version fails to load, below is a cut and paste of my log (Many thanks!) I had uninstalled then installed the new version from the repo.

I have one of the locations with weather.com for Dublin, Ireland, and then I use accuweather for the other two locations.

Code:
13:31:45 T:1452 M:3202756608  NOTICE: load settings...
13:31:45 T:1452 M:3202953216  NOTICE: special://profile/ is mapped to: special://masterprofile/
13:31:45 T:1452 M:3202953216  NOTICE: loading special://masterprofile/guisettings.xml
13:31:45 T:1452 M:3202842624  NOTICE: Getting hardware information now...
13:31:45 T:1452 M:3202842624  NOTICE: Checking resolution 12
13:31:45 T:1452 M:3202830336  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
13:31:45 T:1452 M:3202818048  NOTICE: Loaded playercorefactory configuration
13:31:45 T:1452 M:3202818048  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
13:31:45 T:1452 M:3202818048  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
13:31:45 T:1452 M:3202818048  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
13:31:45 T:1452 M:3202818048  NOTICE: Default DVD Player: dvdplayer
13:31:45 T:1452 M:3202818048  NOTICE: Default Video Player: dvdplayer
13:31:45 T:1452 M:3202818048  NOTICE: Default Audio Player: paplayer
13:31:45 T:1452 M:3202826240  NOTICE: Loading media sources from special://masterprofile/sources.xml
13:31:46 T:1452 M:3184402432  NOTICE: initializing playlistplayer
13:31:46 T:1452 M:3184398336  NOTICE: DONE initializing playlistplayer
13:31:46 T:1452 M:3179442176   ERROR: Skin includes must start with the <includes> tag
13:31:47 T:1452 M:3154759680   ERROR: Python script "script.tv.show.next.aired" does not exist
13:31:47 T:1452 M:3154751488  NOTICE: initialize done
13:31:47 T:1452 M:3154751488  NOTICE: Running the application...
13:31:47 T:1452 M:3153084416  NOTICE: starting upnp server
13:31:47 T:1452 M:3152711680  NOTICE: starting upnp renderer
13:31:47 T:1452 M:3152539648  NOTICE: ES: Starting event server
13:31:47 T:2200 M:3150041088  NOTICE: -->Python Interpreter Initialized<--
13:31:47 T:2968 M:3149021184  NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
13:31:47 T:2968 M:3148464128  NOTICE: UDP: Listening on port 9777
13:31:51 T:2948 M:3128270848   ERROR: WEATHER: Unable to get data: Invalid License Key.
13:31:51 T:2928 M:3128119296  NOTICE: -->Python Interpreter Initialized<--
13:31:51 T:2928 M:3127681024  NOTICE: [PLUGIN] 'Weather Plus: Version - 2.5.0-r' initialized!
13:31:51 T:2928 M:3127668736   ERROR: Error Type: exceptions.ValueError
13:31:51 T:2928 M:3127668736   ERROR: Error Contents: invalid literal for int():
13:31:51 T:2928 M:3127652352   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\default.py", line 40, in ?
                                                __ver__ = _check_compatible()
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\default.py", line 30, in _check_compatible
                                                ok = (0, 1)[ xbmc_build.startswith("PRE-11") ] * ( ( int( " ".join( re.findall("Git[:]([0-9]+)", xbmc_build) ) ) >= 20111116 ) + 1 )
                                            ValueError: invalid literal for int():
13:31:58 T:2948 M:3127431168   ERROR: XFILE::CFile::Delete - Error deleting file C:\Users\Zookeeper\AppData\Roaming\XBMC\userdata\Thumbnails\6\654b78bf.jpg
13:31:58 T:2948 M:3127431168   ERROR: XFILE::CFile::Delete - Error deleting file special://masterprofile/Thumbnails/6/654b78bf.jpg



- brightsr - 2011-11-20

fional Wrote:I am in Ireland, I think accuweather is all I can use at the moment.

I see, yes I suppose that makes sense about the animated icons. I was just grasping at straws, because it worked grand until that one issue came up.

I am using Aeon Nox, the Dharma version, I really appreciate your help. It's the first thing I look at every morning to see if I need my umbrella Smile

--

The new version fails to load, below is a cut and paste of my log (Many thanks!) I had uninstalled then installed the new version from the repo.

I have one of the locations with weather.com for Dublin, Ireland, and then I use accuweather for the other two locations.

Code:
13:31:45 T:1452 M:3202756608  NOTICE: load settings...
13:31:45 T:1452 M:3202953216  NOTICE: special://profile/ is mapped to: special://masterprofile/
13:31:45 T:1452 M:3202953216  NOTICE: loading special://masterprofile/guisettings.xml
13:31:45 T:1452 M:3202842624  NOTICE: Getting hardware information now...
13:31:45 T:1452 M:3202842624  NOTICE: Checking resolution 12
13:31:45 T:1452 M:3202830336  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
13:31:45 T:1452 M:3202818048  NOTICE: Loaded playercorefactory configuration
13:31:45 T:1452 M:3202818048  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
13:31:45 T:1452 M:3202818048  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
13:31:45 T:1452 M:3202818048  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
13:31:45 T:1452 M:3202818048  NOTICE: Default DVD Player: dvdplayer
13:31:45 T:1452 M:3202818048  NOTICE: Default Video Player: dvdplayer
13:31:45 T:1452 M:3202818048  NOTICE: Default Audio Player: paplayer
13:31:45 T:1452 M:3202826240  NOTICE: Loading media sources from special://masterprofile/sources.xml
13:31:46 T:1452 M:3184402432  NOTICE: initializing playlistplayer
13:31:46 T:1452 M:3184398336  NOTICE: DONE initializing playlistplayer
13:31:46 T:1452 M:3179442176   ERROR: Skin includes must start with the <includes> tag
13:31:47 T:1452 M:3154759680   ERROR: Python script "script.tv.show.next.aired" does not exist
13:31:47 T:1452 M:3154751488  NOTICE: initialize done
13:31:47 T:1452 M:3154751488  NOTICE: Running the application...
13:31:47 T:1452 M:3153084416  NOTICE: starting upnp server
13:31:47 T:1452 M:3152711680  NOTICE: starting upnp renderer
13:31:47 T:1452 M:3152539648  NOTICE: ES: Starting event server
13:31:47 T:2200 M:3150041088  NOTICE: -->Python Interpreter Initialized<--
13:31:47 T:2968 M:3149021184  NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
13:31:47 T:2968 M:3148464128  NOTICE: UDP: Listening on port 9777
13:31:51 T:2948 M:3128270848   ERROR: WEATHER: Unable to get data: Invalid License Key.
13:31:51 T:2928 M:3128119296  NOTICE: -->Python Interpreter Initialized<--
13:31:51 T:2928 M:3127681024  NOTICE: [PLUGIN] 'Weather Plus: Version - 2.5.0-r' initialized!
13:31:51 T:2928 M:3127668736   ERROR: Error Type: exceptions.ValueError
13:31:51 T:2928 M:3127668736   ERROR: Error Contents: invalid literal for int():
13:31:51 T:2928 M:3127652352   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\default.py", line 40, in ?
                                                __ver__ = _check_compatible()
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\default.py", line 30, in _check_compatible
                                                ok = (0, 1)[ xbmc_build.startswith("PRE-11") ] * ( ( int( " ".join( re.findall("Git[:]([0-9]+)", xbmc_build) ) ) >= 20111116 ) + 1 )
                                            ValueError: invalid literal for int():
13:31:58 T:2948 M:3127431168   ERROR: XFILE::CFile::Delete - Error deleting file C:\Users\Zookeeper\AppData\Roaming\XBMC\userdata\Thumbnails\6\654b78bf.jpg
13:31:58 T:2948 M:3127431168   ERROR: XFILE::CFile::Delete - Error deleting file special://masterprofile/Thumbnails/6/654b78bf.jpg

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


- sproket - 2011-11-20

This plugin not working for me. Weather Plus 2.5.0

http://pastebin.com/QuR8izE5

Please advise.

Thanks


- brightsr - 2011-11-20

sproket Wrote:This plugin not working for me. Weather Plus 2.5.0

http://pastebin.com/QuR8izE5

Please advise.

Thanks

that's previous version. the latest version is 2.5.1. Please install from zip file as for now.


- sproket - 2011-11-20

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

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

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

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

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

Accuweather gave some info and seems to work but not NOAA


- Hitcher - 2011-11-20

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

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

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. Huh


- fional - 2011-11-21

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_weather.py", line 111, in __init__
                                                self._fetch_36_forecast()
                                              File "C:\Users\Zookeeper\AppData\Roaming\XBMC\addons\weather.weatherplus\xbmcplugin_weather.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!