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)



For old build user - brightsr - 2011-11-20 08:47

As built-in weather doesn't work anymore, if you're not using the latest nightly build, 'Weather.IsFetched' is always FALSE regardless weather is fetched by a weather addon. That's why there's no weather icon and temperature on home screen. So you can make them visible by removal of 'Weather.IsFetched' from your skin's xml. If you'd like them to be displayed only after current weather is fetched successfully, you can put '!IsEmpty(Window(Weather).Property(36Hour.IsFetched))' instead of that. ( current weather is fetched during fetching 36 hour forecast information. )


- rflores2323 - 2011-11-20 08:47

brightsr Wrote:[UPDATE] v.2.5.1
- Changed : Compatibilty Check Method ( Checking Version -> Checking Arguments passed to addon )
- Changed : [Builds Before Weather API Change] Using Area Codes Set at Global Weather Settings for Weather.com
- Fixed : [Accuweather.com] Loop Bug
- Improved : [Accuweather.com] Outlooks in title case

* Moving to official repo : I've sent pull request to official repo of dharma and eden-pre. I hope it will be visible soon.

* zip file download : http://xbmc-addons.googlecode.com/files/weather.weatherplus_2.5.1.zip

Big Grin


- dnairb - 2011-11-20 11:29

brightsr Wrote:[UPDATE] v.2.5.1
- Changed : Compatibilty Check Method ( Checking Version -> Checking Arguments passed to addon )
- Changed : [Builds Before Weather API Change] Using Area Codes Set at Global Weather Settings for Weather.com
- Fixed : [Accuweather.com] Loop Bug
- Improved : [Accuweather.com] Outlooks in title case

* Moving to official repo : I've sent pull request to official repo of dharma and eden-pre. I hope it will be visible soon.

* zip file download : http://xbmc-addons.googlecode.com/files/weather.weatherplus_2.5.1.zip

Works now. Thank you.

brightsr Wrote:As built-in weather doesn't work anymore, if you're not using the latest nightly build, 'Weather.IsFetched' is always FALSE regardless weather is fetched by a weather addon. That's why there's no weather icon and temperature on home screen. So you can make them visible by removal of 'Weather.IsFetched' from your skin's xml. If you'd like them to be displayed only after current weather is fetched successfully, you can put '!IsEmpty(Window(Weather).Property(36Hour.IsFetched))' instead of that. ( current weather is fetched during fetching 36 hour forecast information. )

This works too.

Many thanks brightsr


- Martijn - 2011-11-20 12:45

Add-on throws error running script when there is no internet connection. Maybe display message that you have a network problem.


- Hitcher - 2011-11-20 12:58

brightsr Wrote:As built-in weather doesn't work anymore, if you're not using the latest nightly build, 'Weather.IsFetched' is always FALSE regardless weather is fetched by a weather addon.

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


- Hitcher - 2011-11-20 14:17

ShortWindDirection isn't returning the abbreviated direction.


- fional - 2011-11-20 15:15

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 16:06

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 19:36

This plugin not working for me. Weather Plus 2.5.0

http://pastebin.com/QuR8izE5

Please advise.

Thanks


- brightsr - 2011-11-20 19:58

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.