Kodi Community Forum

Full Version: OzWeather - Australian Weather Addon using BOM data inc. animated radar support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Mostly cloudy/mostly sunny... almost the same thing - is your glass half full or half empty lol
Are you comfortable with pulling things from git?  If so you can pull recent changes from there....saves me preparing zips...
Try this, anyway: https://www.dropbox.com/s/oioltig6wpt47c...5.zip?dl=0

I'll have to do some skin work to work out the None/0 thing....but in any case this is showing ok for my location and yours, right now, on the radar screen, with today's max where it should be and the overnight low too
(2021-06-01, 12:50)bossanova808 Wrote: [ -> ]Try this, anyway: https://www.dropbox.com/s/oioltig6wpt47c...5.zip?dl=0

I'll have to do some skin work to work out the None/0 thing....but in any case this is showing ok for my location and yours, right now, on the radar screen, with today's max where it should be and the overnight low too

It was showing zero on the radar screen when I made the previous post. I'll check github tomorrow....
EDIT: I see you just did a zip... tomorrow....
(2021-06-01, 12:50)bossanova808 Wrote: [ -> ]Try this, anyway: https://www.dropbox.com/s/oioltig6wpt47c...5.zip?dl=0

I'll have to do some skin work to work out the None/0 thing....but in any case this is showing ok for my location and yours, right now, on the radar screen, with today's max where it should be and the overnight low too

Ok so I see you made some changes 4 hours ago? Do I only need to grab common.py and then bom_forecast.py ?
Nah just try the zip for now.  I am trying to work out what the hell Kodi and the BOM are doing.

The Kodi skin issues come because I am using the old weather labels from way way back.  Looks like Kodi does some magic for those from way back, setting the temps to zero if they are in fact set to ""

There are new labels, but that means re-writing all those skin files, sigh.  A lot of work.

And in the meantime, keeping an eye on the BOM idiocy with the 'now' data - that usually does not, in fact, mean now, but later, it seems.

In an ideal world, I would just blank out the current stuff if it is not available, I think.  But I am still undecided on the best approach...
(2021-06-02, 04:31)bossanova808 Wrote: [ -> ]Nah just try the zip for now.  I am trying to work out what the hell Kodi and the BOM are doing.

The Kodi skin issues come because I am using the old weather labels from way way back.  Looks like Kodi does some magic for those from way back, setting the temps to zero if they are in fact set to ""

There are new labels, but that means re-writing all those skin files, sigh.  A lot of work.

And in the meantime, keeping an eye on the BOM idiocy with the 'now' data - that usually does not, in fact, mean now, but later, it seems.

In an ideal world, I would just blank out the current stuff if it is not available, I think.  But I am still undecided on the best approach...

By Skin files you mean the XML files you are patching with the patcher? You can't just search/replace?
Blanking out or showing n/a - is that hard to do? Can't you just write that in the python script if the returned value is null? I'm obviously not understanding something here..
I can indeed search and replace, but it's a lot of it.  And the problem is, precisely, that I can't blank out or set a "-" as the value - Kodi shoves 0 in there no matter what (if using the old labels - the new labels don't do this).

I'm going to re-write the skin files in the modern way - using includes and parameters etc., and the new labels. 

Ideally I'd work out a system that let's me use some includes so that adapting for more skins would be MUCH easier....I'll give it a go, but a lot has changed in the 10 years since I did the original skin files (the Estuary and Estouchy files are just monkey patched from the main one).
Bugger!
(2021-06-02, 06:01)bossanova808 Wrote: [ -> ]I can indeed search and replace, but it's a lot of it.  And the problem is, precisely, that I can't blank out or set a "-" as the value - Kodi shoves 0 in there no matter what (if using the old labels - the new labels don't do this).

I'm going to re-write the skin files in the modern way - using includes and parameters etc., and the new labels. 

Ideally I'd work out a system that let's me use some includes so that adapting for more skins would be MUCH easier....I'll give it a go, but a lot has changed in the 10 years since I did the original skin files (the Estuary and Estouchy files are just monkey patched from the main one).
So OzWeather crashed a few times last night...
Debug log please... But there's a fair chance I've fixed it already. Will have another test version soon.
Ok, so I have completely re-written the Confluence skin file (I start here as this is what I use).  Along the way have made a bunch of improvements and fixes to OzWeather itself.

The new skin file is all written with percentage based placement.  This should mean it's pretty much usable out of the box with most other skins, with _much_ less work needed to adapt it.  But will have to see how this goes in practise, and weather there is some sort of clever way to have a sort of base skin file with adaptations for each skin, or something.

Kodi's skin files are in some ways amazing, and in other ways incredibly dumb.  E.g. you can use variables, but not where you might actually want them, like for positioning things.  Sigh.  And each skin supplies it's own set of font sizes, which is just monumentally stupid really.  There's no standard set.  So that complicates things rather a lot.

Anyway - I need to do some tidy up and what not before it's back in a usable stare for testing.  Not quite there yet....but hopefully tomorrow.
Good job mate. Lockdowns are great eh?
@DavidFW1960  Would you be able to test this for me - you will need both a new OzWeather and the new Skin Patcher.

OzWeather: https://www.dropbox.com/s/fxma0yak8y8ss1...7.zip?dl=0
Skin Patcher: https://www.dropbox.com/s/jtmkaakfdktw9t...2.zip?dl=0

(don't worry about your seekbar/videofullscreen for now, you can add that back later...this is just to test the main stuff!).

& report back -> any issues-> full debug log please!
@DavidFW1960 Something is funky with Kodi forum notifications...I just got a whole bunch of old ones this morning.

Just a nudge in case you haven't seen the new version to test above ^