• 1
  • 16
  • 17
  • 18(current)
  • 19
  • 20
  • 109
Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support
If the persist, see your doctor. (I.e. post your settings and log file)
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
Absolutely fantastic to see Oz weather add-in (first thing i did was search for one when i noticed how ordinary the default one was for accuracy in Australia). BTW I have had no issues with it and Frodo.

Can anyone give me any pointers on modifying the top left summary that appears on the homepage to show current/maximum temp ? (21 Dec 2012 Frodo "nightly" with default Confluence skin on OS-X)

Also, does anyone know how to add it to favourites ?

(I hide most things except Movies and TV Shows to keep the interface easy for the wife and child which is why I want to do both of these things)

Cheers,
Chris
Reply
Basically what you want to do is look at the OzWeather MyWeather.xml file and then use the same labels throughout the other skin files (home.xml in your case) - an example to follow is in the DialogSeekBar.xml which is a standard Frodo file with some weather stuff thrown in.

Be aware you might have to drop font sizes etc. to make things fit - Confluence is tightly laid out and often when you add some extra info in it looks ok to start but then you flip to another view or whatever and suddenly your text is over some pretty icon....

And just to be clear - OzWeather is absolutely positively Frodo compatible Smile I am using it on multiple Frodo machines and have done so for several months now...
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
Thanks heaps.

Any ideas how to add Weather to Favourites and then hide it (or chnge home list order to sort Weather after Movies and TV) ?

Cheers,
Chris

PS. I'm away from my mac for two weeks and could not get playtime over the last few days so no chance to have a hack at it yet.


Reply
Favourites - no idea, never use them to be honest. Will be an .xml file as usual....learn to use grep to find stuff Smile
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, im hoping you might be able to help me.

I've built my own version of XBMC using the Frodo Beta 2 Source with Hybrid Skin (instead of Confluence Skin).
When using the 'extended features' (BOM maps), i have a couple of display bugs, which im trying to remove/fix. (Im guessing this may be a result of the Hybrid Skin)

ref: http://aciai.me/i/1Kqd5.jpg
Anyway, have a look at this image, & you'll notice the word 'Weather' overlaps the 'Radar (IDR023)'.
So i was just wondering within which file the label for 'Weather' is - as i'll just delete it out, as its not really needed.

There is also the word 'Now' overlapping the "21C" temperature - but ive now found where this label was, and have deleted the word "Now:"
Thanks for any assistance you can provide
Reply
MyWeather.xml is the main file. But it's probably using some includes (includes.xml?) as well.

Learn grep & find it Smile

When you fix it, let me know and I can post the skin files for others.

(the NOW overlap will be because of different font sizes in fonts.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
Thanks Bossanova,

For goading me into action Smile

To recap; I am trying to:

1) Hack the small weather summary that shows on the confluence home screen to include max temp (it is displayed when "show weather info" is selected in System/Appearance/Skin/Settings)

2a) Re-order Weather on the home screen (in confluence to come after Videos, Movies, TV Shows)

and/or

2b) Hide Weather and put it on Favorites

After a bit of find and grep I did see the following files which might be relevant ..

./addons/skin.confluence/720p/MyWeather.xml
./addons/skin.confluence/720p/Home.xml
./addons/skin.confluence/720p/IncludesHomeMenuItems.xml
./addons/skin.confluence/720p/IncludesHomeRecentlyAdded.xml

Not having much luck though with how to change them and which ones ..

Not an easy business for a noob to understand the xml files (I will keep digging - perhaps a guide on creating a skin will help me ?)

thanks in advance for any further help,
chris
Reply
I just upgraded to Frodo then found this add-on - fantastical work

One quick question : does this add-on work with the Aeon Nox skin in Frodo ?

I used the skin in Eden, and will be using it again in Frodo
Reply
It will work but would need a skin file made for Nox.

I would love to get one and add it to the wiki....

(Also, people above - I really don't have time to do your skin changes for you unfortunately, so read the xbmc skinning wiki stuff, fire up a text editior, and get cracking.... and when you do, let me know and I can post them for others to use, with great thanks!!)

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
Sorry if this has been reported before, I didn't wade through this whole thread to see if I could spot the same error.

I just installed XBMC on Windows 8 Professional 64-bit. I've never used it before but have been reading it is good as a media player. One of the first things I tried was the Weather tab. Obviously the default weather server is rubbish and not applicable to us Australians, and I quickly found I could change it to OzWeather. Brilliant! Unfortunately it doesn't work for me, though - every time I try to use it I get an error that says:

Error!
Script failed: weather.ozweather

Here is a copy-paste of the relevant section of the log:
Code:
16:10:15 T:7996   DEBUG: CApplication::ProcessMouse: trying mouse action leftclick
16:10:15 T:7996   DEBUG: CApplication::ExecuteXBMCAction : Translating ActivateWindow(Weather)
16:10:15 T:7996   DEBUG: CApplication::ExecuteXBMCAction : To ActivateWindow(Weather)
16:10:15 T:7996   DEBUG: Activating window ID: 12600
16:10:15 T:7996   DEBUG: ------ Window Deinit (Home.xml) ------
16:10:15 T:7996   DEBUG: ------ Window Init (MyWeather.xml) ------
16:10:15 T:7996    INFO: Loading skin file: MyWeather.xml, load type: KEEP_IN_MEMORY
16:10:15 T:6416    INFO: WEATHER: Downloading weather
16:10:15 T:6416    INFO: initializing python engine.
16:10:15 T:6416   DEBUG: new python thread created. id=1
16:10:15 T:6748  NOTICE: Thread XBPyThread start, auto delete: false
16:10:15 T:6748   DEBUG: Python thread: start processing
16:10:15 T:6748  NOTICE: -->Python Interpreter Initialized<--
16:10:15 T:6748   DEBUG: XBPyThread::Process - The source file to load is C:\Users\Trevor Hardy\AppData\Roaming\XBMC\addons\weather.ozweather\default.py
16:10:15 T:6748   DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\Trevor Hardy\AppData\Roaming\XBMC\addons\weather.ozweather;C:\Program Files (x86)\XBMC\addons\weather.wunderground\resources\lib\wunderground;C:\Program Files (x86)\XBMC\addons\script.module.simplejson\lib;C:\Program Files (x86)\XBMC\addons\script.module.pil\lib;C:\Users\Trevor Hardy\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;C:\Program Files (x86)\XBMC\addons\script.module.pysqlite\lib;C:\Program Files (x86)\XBMC\system\python\DLLs;C:\Program Files (x86)\XBMC\system\python\Lib;C:\Program Files (x86)\XBMC\python26.zip;C:\Program Files (x86)\XBMC\system\python\lib\plat-win;C:\Program Files (x86)\XBMC\system\python\lib\lib-tk;C:\Program Files (x86)\XBMC;C:\Program Files (x86)\XBMC\system\python;C:\Program Files (x86)\XBMC\system\python\lib\site-packages;
16:10:15 T:6748   DEBUG: XBPyThread::Process - Entering source directory C:\Users\Trevor Hardy\AppData\Roaming\XBMC\addons\weather.ozweather
16:10:15 T:6748   DEBUG: Instantiating addon using automatically obtained id of "weather.ozweather" dependent on version 2.1.0 of the xbmc.python api
16:10:16 T:6748  NOTICE: CommonFunctions-2.5.1
16:10:16 T:6748   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x8a9ef88
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Called forecast()
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Clearing Properties
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Weather.IsFetched] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Radar] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Video.1] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.Condition] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.ConditionLong] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.Temperature] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.Wind] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.WindDirection] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.Humidity] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.FeelsLike] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.DewPoint] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.UVIndex] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Current.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day0.Title] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day0.HighTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day0.LowTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day0.Outlook] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day0.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day0.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day1.Title] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day1.HighTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day1.LowTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day1.Outlook] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day1.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day1.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day2.Title] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day2.HighTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day2.LowTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day2.Outlook] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day2.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day2.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day3.Title] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day3.HighTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day3.LowTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day3.Outlook] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day3.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day3.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day4.Title] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day4.HighTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day4.LowTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day4.Outlook] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day4.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day4.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day5.Title] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day5.HighTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day5.LowTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day5.Outlook] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day5.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day5.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day6.Title] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day6.HighTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day6.LowTemp] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day6.Outlook] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day6.OutlookIcon] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Setting property - Name: [Day6.FanartCode] - Value:[]
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Getting weather from , Extended features = false
16:10:16 T:6748   DEBUG: Oz Weather-0.4.7: Get the forecast data from weatherzone.com.au:
16:10:16 T:6748   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('content',)
                                            Traceback (most recent call last):
                                              File "C:\Users\Trevor Hardy\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 640, in <module>
                                                forecast(location, radar)
                                              File "C:\Users\Trevor Hardy\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 241, in forecast
                                                propertiesPDOM(data["content"], extendedFeatures)
                                            KeyError: ('content',)
                                            -->End of Python script error report<--
Hope that helps!

PS is there any way to change the default temperature reading from °F to °C?
Reply
You haven't configured it at all would be my guess (it doesn't auto configure or geo-locate or whatever). Go into XBMC settings, where you can do the localisation (F -> C) and also configure OzWeather.

Also, for the full effect, copy the skin files from the wiki into your Confluence 720p directory.

Basically, read this:
http://wiki.xbmc.org/index.php?title=Add-on:Oz_Weather


Also - NEVER post log snippets (against forum rules) - always post a full debug log to pastebin. You've cut off the most important bits...
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
Just signed up to report this:

Fresh install of Eden, installed the OzWeather plugin.

Continually failing to load right after I added my postcode but right before it popped up with the specific Suburb.

Code:
18:30:25 T:140098977335040  NOTICE: Thread XBPyThread start, auto delete: false
18:30:25 T:140098977335040  NOTICE: -->Python Interpreter Initialized<--
18:30:25 T:140098977335040  NOTICE: CommonFunctions-1.5.1
18:30:33 T:140098977335040   ERROR: Error Type: <type 'exceptions.TypeError'>
18:30:33 T:140098977335040   ERROR: Error Contents: descriptor 'split' requires a 'str' object but received a 'unicode'
18:30:33 T:140098977335040   ERROR: Traceback (most recent call last):
                                              File "/home/foo/.xbmc/addons/weather.ozweather/default.py", line 595, in <module>
                                                locationName = str.split(locationName[0], ' Weather')
                                            TypeError: descriptor 'split' requires a 'str' object but received a 'unicode'

Below is the change I had to make to get it working, by the look of it, the website is returning unicode that split doesn't accept (needs a string):
Code:
if not responseurl.endswith('weatherzone.com.au/search/'):
            #we were redirected to an actual result page
            locationName = common.parseDOM(resultPage, "h1", attrs = { "class": "unenclosed" })
            locationName = str.split(str(locationName[0]), ' Weather')                                                           <--- Wrapped 'locationName[0]' with an str()
            locations = [locationName[0] + ', ' + text]
            locationids = [responseurl]
            log("Single result " + str(locations) + " URL " + str(locationids))
        else:
            #we got back a page to choose a more specific location
            middle = common.parseDOM(resultPage, "div", attrs = { "id": "structure_middle" })

Sorry if it's not supposed to be reported here or I have formatted it incorrectly, but the xbmc wiki directed me here and I am in a rush to head off for the night!

Michael
Reply
No worries - although a full debug log on pastebin would be handy so I could see what postcode etc.

I can't immediately reproduce here (only have Frodo).

I'm happy to make the change (why am I using str.split like that?? This was the first add on I wrote - it's a mess really!

Actually, looking at it I should make that change no matter what (I think the upstream module I use - parsedom - has changed to unicode recently, hence this issue - with a fresh install your will have gone off and pulled the latest version, but for others they may well have the older version unless they've installed something that forces the dependency up to the latest).

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
Done & submitted - should update in a day or two...thanks for spotting it!
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
  • 1
  • 16
  • 17
  • 18(current)
  • 19
  • 20
  • 109

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