• 1
  • 15
  • 16
  • 17(current)
  • 18
  • 19
  • 109
Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support
Ok that's easy enough - the problem is that CommonFunctions (which is part of the main XBMC repo, and would get installed automatically if you installed andy number of Addons - YopuTube and OzWeatehr, for eample. But because you've built it in, this hasn't happened. You can porbably build that in by pulling it from the XBMC repo and adding it your mix the same sort of way I guess? Not really my dept. but I am sure one of the devs would help on IRC if you asked.

Or just install YouTube post-install and it will come with that anyway....
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*.
Reply
Smile 
Thanks for your help bossanova808...

Installing the Youtube addon to a running/compiled version made it work...

so i took note of the (additional) addon's installed when i installed the Youtube addon...
and ended up copying these folders into my source:
script.common.plugin.cache
script.module.parsedom
~ i don't know if i actually needed both, but i added the 'common.plugin.cache' first, and it still didn't work, so then i added the 'module.parsedom' as well, and it worked after that.
So it might have just needed the module.parsedom added, but i suppose at least if ive pre-added the common.plugin.cache, it means the software wont need to add it later for addons.

So i now have my own compiled version of xbmc with OzWeather as the default weather forecaster
Reply
Cool - yeah was probably just parsedom you needed, I though it was in the common one. But glad you got it working and glad you like the add-on!


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*.
Reply
Information 
Though one thing... i have the extended features (radar images) running on my media centre (its running one of my slightly older build's)...
And if the advanced radar features are enabled, my Media Centre is very unstable, and randomly crashes. As soon as i disable the advanced features (but i still have the advanced display, but without the radar map) - its perfectly stable.

So for some reason, just enabling the advanced settings is relatively fine - but the radar images themselves seems to make my media centre very unstable.

Anywho... i will pull a log off my Media Centre tonite, and post it so u can see what's happening.
Reply
No ideas off my head, basically if the PIL (python image library) is there, it always works for me...get me a log and I'll take a look. Can't see why it would make the whole system unstable though - it's just a few image downloads and conversions to RGB, basically. Not really heavy lifting for something like xbmc python...
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*.
Reply
Okay... so i booted my Media Centre, enabled the extended features (for radar images - as this is usually disabled), and within about 1 hr it crashed by itself (and XBMC shut down back to the Windows Deaktop)
During this time i didn't actually use the Media Centre... it just sat on the Weather screen, to see how long it would last.

The entire Log file can be found here;
ref: http://pastebin.com/12ukHyDE

But otherwise, the crux of it is these lines;
18:25:26 T:292 NOTICE: Oz Weather-0.4.3: Getting weather from http://www.weatherzone.com.au/vic/melbourne/ivanhoe, Extended features = true
18:25:26 T:292 NOTICE: Oz Weather-0.4.3: Extended feature powers -> activate!
18:25:26 T:2020 ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//background.png
18:25:26 T:2020 ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//topography.png
18:25:26 T:2020 ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//catchments.png
18:25:26 T:2020 ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//range.png
18:25:26 T:2020 ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//locations.png

and that's the end of the log file, as it had shut down after that.
I looked in the location given in the error: ".../addon_data/weather.ozweather/radarbackgorunds//" - and none of those images exist (which is why it can't load them).

Oh.. and thanks for looking into this bossanova808 Smile
Reply
Those errors aren't unexpected - it will clear the background images if they are greater than one day old, and re-download them (to pick up any changes to them). If they are not available, they won't load.

Do you get this same issue with a non-self compiled version? Gotta say I have never seen it on any of my Eden or Frodo installls....
Also - are you using Confluence? There's a funny error (not related to OzWeather I think) - about window 10099...I don't see that one in my logs

That log is only half an hour, so only one weather refresh by the looks of it....

Odd. Still no idea really, sorry. Will mull it over.


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*.
Reply
Yep... its the confluence skin...
This is one of my builds, but from awhile ago - so i hadn't pre integrated any addon's (like i have now with OzWeather ~ so OzWeather was installed as a normal addon)...

This build was based off the final (stable) version 11 source, but its using the Confluence Vertical skin. (whether that has anything to do with the Window 10099 error?)

Otherwise it is strange... my Media Centre can run 24hrs with no issue at all... but as soon as i enable the extended (radar) features in OzWeather, it somehow becomes unstable.
Reply
Well I have run it many times > 1 hr, and am running it on Frodo right now, been 45 mins, no issues. Nobody else has reported it....and there's nothing in your log I wouldn't expect to see if it was working as normal....I have precisely those 'errors' as well (it's just when the data is blanked out briefly between weather data refreshes).

Tough one, got no idea where to start and can't really see how it could be the cause, to be honest.


Can you maybe try the same settings but with a totally vanilla build to help narrow it down? And maybe send me your settings.xml
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*.
Reply
Hi bossanova, I'm trying to get your script to work on a vanilla Eden build.. It's proving rather problematic. Or maybe I've just missed something obvious

I have basically;

- Installed XBMC Eden on Windows 7 64-bit
- Scrubbed TV shows and movies directories
- Enabled HTTP control
- Added OzWeather from within XBMC
- Inserted extended weather info files into the confluence skin folder
- Set Radar to IDR033, which is working and displays perfectly fine
- Set postcode to 2151, which causes the script to error out and shows no weather info

Here is the relevant debug log from start and when trying to change the postcode

Code:
17:56:51 T:4373456  NOTICE: Oz Weather-0.4.3: Getting weather from , Extended features = true
17:56:51 T:4373456  NOTICE: Oz Weather-0.4.3: Extended feature powers -> activate!
17:56:52 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280500.png
17:56:52 T:4373204   ERROR: CRemoteControl::Connect - failed to connect
17:56:52 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280510.png
17:56:53 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280520.png
17:56:53 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280530.png
17:56:53 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280540.png
17:56:53 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280550.png
17:56:53 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280600.png
17:56:54 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280610.png
17:56:54 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280620.png
17:56:54 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280630.png
17:56:54 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280640.png
17:56:54 T:4373424 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 22
17:56:54 T:4373424   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
17:56:54 T:4373424   ERROR: ADDON::CScraper::Run: Unable to parse web site
17:56:54 T:4373456  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280650.png
17:56:55 T:4373456   ERROR: Error Type: <type 'exceptions.KeyError'>
17:56:55 T:4373456   ERROR: Error Contents: ('content',)
17:56:55 T:4373456   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Daniel\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 616, in <module>
                                                forecast(location, radar)
                                              File "C:\Users\Daniel\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 233, in forecast
                                                propertiesPDOM(data["content"], extendedFeatures)
                                            KeyError: ('content',)
17:56:58 T:4373424  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:07
17:59:23 T:4411092  NOTICE: -->Python Interpreter Initialized<--
17:59:23 T:4411092  NOTICE: CommonFunctions-1.2.0
17:59:28 T:4411092  NOTICE: Oz Weather-0.4.3: Doing locations search for 2151
17:59:31 T:4413176  NOTICE: -->Python Interpreter Initialized<--
17:59:31 T:4413176  NOTICE: CommonFunctions-1.2.0
17:59:31 T:4413176  NOTICE: Oz Weather-0.4.3: Getting weather from , Extended features = true
17:59:31 T:4413176  NOTICE: Oz Weather-0.4.3: Extended feature powers -> activate!
17:59:32 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280500.png
17:59:33 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280510.png
17:59:33 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280520.png
17:59:33 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280530.png
17:59:33 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280540.png
17:59:33 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280550.png
17:59:34 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280600.png
17:59:34 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280610.png
17:59:34 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280620.png
17:59:34 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280630.png
17:59:34 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280640.png
17:59:35 T:4413176  NOTICE: Oz Weather-0.4.3: Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR033.T.201210280650.png
17:59:35 T:4413176   ERROR: Error Type: <type 'exceptions.KeyError'>
17:59:35 T:4413176   ERROR: Error Contents: ('content',)
17:59:35 T:4413176   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Daniel\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 616, in <module>
                                                forecast(location, radar)
                                              File "C:\Users\Daniel\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 233, in forecast
                                                propertiesPDOM(data["content"], extendedFeatures)
                                            KeyError: ('content',)

From what I can gather, it doesn't seem to be able to get my location based on the postcode I enter. 'Getting weather from' should have my location after it from seeing other logs. @17:56:58 the startup sequence finishes, and @17:59:23 is when I put in the postcode to OzWeather Settings.

If it helps at all, my postcode returns two matches when searching on weatherzone.com.au. Could it be getting confused and not picking one? If I set up OzWeather radar then switch back to WUnderground, I get full weather display + Radar. But I would rather get the data from BOM..

I'm at a loss as to why it doesn't seem to be working Sad
Reply
1. Always post entire ebug logs, not snippets (it's a forum rule, use pastebin)

2. Weatherzone.com.au seems down right now - have you been trying for long? Maybe try back in a few ours (check you can go to weatherzone.com.au in a browser succesffuly, and that 2151 gets a sensible location - then re-try this and if it doesn't work pastebin your whole log.


3. it's fine with multiple postcodes things - it will give you a list to choose from.

4. Are you definitely hitting 'ok' after using the settings, not back...


Let me know, post full log, and I will look into it later tonight


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*.
Reply
Hey - just an update - I tried 2151 (North Paramatta) and no issue here. Let me know if you're still having issues - I think it was just WeatherZone being down...
it's not very graceful about it, but it's not down vey often...
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*.
Reply
Hi bossanova808 - just curious if this will be running for Frodo release as not working on B1 yet?
Reply
I've been using it with Frodo for maybe 4 months....works perfectly. All you need are the skin files available in the Add-on:Oz Weather (wiki) wiki.


(and Oz Weather is in the official Frodo repo, too)
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*.
Reply
(2012-11-27, 09:57)bossanova808 Wrote: I've been using it with Frodo for maybe 4 months....works perfectly. All you need are the skin files available in the Add-on:Oz Weather (wiki) wiki.


(and Oz Weather is in the official Frodo repo, too)

I saw it was in the Frodo repo but I was getting errors. I will try the skin files ta Smile

Reply
  • 1
  • 15
  • 16
  • 17(current)
  • 18
  • 19
  • 109

Logout Mark Read Team Forum Stats Members Help
OzWeather - Australian Weather Addon using BOM data inc. animated radar support5