[RELEASE] OzWeather - Australian Weather Addon using BOM data

  Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pan2 Offline
Senior Member
Posts: 191
Joined: Apr 2011
Reputation: 0
Post: #331
I just dumped my version of your myweather.xml into Aeon Nox just to check and it works fine without any additions. Just needs a few adjustments with positions and font sizes as you said. You do lose the side panel though. I think Aeon-Nox is sufficiently different to other skins that it is hard to adapt bits from other skins to it
(This post was last modified: 2013-05-22 08:56 by pan2.)
find quote
bossanova808 Offline
Member+
Posts: 1,542
Joined: Sep 2009
Reputation: 20
Location: Melbourne, Australia
Post: #332
Well happy to put any cleaned up Nox version in the wiki if anyone has time to knock it up. But I am super busy @ work right now so no chance of me doing it for a while.
find quote
pan2 Offline
Senior Member
Posts: 191
Joined: Apr 2011
Reputation: 0
Post: #333
The OzWeather add-on is great mate. A most unusual problem does occur for me and I have no idea why. If I decide to put the date beside days 1 to 7 for instance, I use the following code (this for day 3):

$INFO[Window(Weather).Property(Daily.3.ShortDate)]

In OzWeather it doesn't show up; however, if I switch over to Weather Underground, I lose the radar (naturally) but the dates appear for all the days.
If I then switch back to OzWeather, the radar is back and the dates remain until I restart. They then disappear again.
In fact any attempt to use that code in a home screen label fails to show while using OzWeather.
Any idea why?
(This post was last modified: 2013-05-23 06:40 by pan2.)
find quote
pan2 Offline
Senior Member
Posts: 191
Joined: Apr 2011
Reputation: 0
Post: #334
Have worked out the problem. Would you be able to add script to oz weather so that the following works in xml scripts. I think it's done in the python default, so maybe add that as a text in pastebin would be good Smile
$INFO[Window(Weather).Property(Daily.%i.ShortDay)]
$INFO[Window(Weather).Property(Daily.%i.LongDay)]
$INFO[Window(Weather).Property(Daily.%i.ShortDate)]
$INFO[Window(Weather).Property(Daily.%i.LongDate)]
find quote
bossanova808 Offline
Member+
Posts: 1,542
Joined: Sep 2009
Reputation: 20
Location: Melbourne, Australia
Post: #335
Sorry, didn't see this one - my emails notifications aren't coming through for some reason.

It's not as easy as that - one needs the code to convert the day (retrieved from Weatehrzone actually) - and the from there come up with the property texts before setting those properties (whcih is what your snippet does).

This would be en excellent learning python thing for you - my advice is clone my repo:
https://code.google.com/p/ozweather/

...work out the code, then submit a pull request. I'll be happy to merge it in. Hint - the code you are looking around is around line 398 of default.py

But right now I have no dev time to spare for XBMC sorry Sad

Good luck!
find quote
pan2 Offline
Senior Member
Posts: 191
Joined: Apr 2011
Reputation: 0
Post: #336
http://pastebin.com/YkT2dknt
Simpler to just give you the modified default.py
Here is a shot of the final:

[Image: screenshot002_by_pan11235-d673j8a.png]
find quote
bossanova808 Offline
Member+
Posts: 1,542
Joined: Sep 2009
Reputation: 20
Location: Melbourne, Australia
Post: #337
Easier for you maybe Smile

Will merge and push. Thanks.
find quote
emptyhead Offline
Junior Member
Posts: 28
Joined: Jul 2011
Reputation: 0
Post: #338
pan2 could you share your modified file for Aeon Nox?
find quote
Post Reply