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.
Ok the updates have been accepted.  This fixes all the issues I know enough about to solve (notably it should fix some periodic oddness with radar background stuff being incomplete, and restore the ABC weather videos).

If anyone needs help with anything else, please ask - and provide settings and debug logs please!
I've manually added to 2 files to fix Oz Weather and it's working fine.  However I've noticed the following in the log file and wondering if this is normal.  Here are some of the messages:

02:30:23.897 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Starting ...
02:30:23.897 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### uname is: ('Linux', 'CoreELEC', '3.14.29', '#1 SMP Thu Jan 3 03:42:02 GMT 2019', 'armv7l', '')
02:30:23.897 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### System is linux
02:30:23.897 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version #: 17.9
02:30:23.898 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version  : L*
02:30:23.898 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Addon arguments as: ['/storage/.kodi/addons/weather.ozweather/default.py', '1']
02:30:59.239 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Exiting ....
03:01:00.451 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Starting ...
03:01:00.451 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### uname is: ('Linux', 'CoreELEC', '3.14.29', '#1 SMP Thu Jan 3 03:42:02 GMT 2019', 'armv7l', '')
03:01:00.451 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### System is linux
03:01:00.451 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version #: 17.9
03:01:00.452 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version  : L*
03:01:00.452 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Addon arguments as: ['/storage/.kodi/addons/weather.ozweather/default.py', '1']
03:01:36.110 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Exiting ....
03:31:37.151 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Starting ...
03:31:37.151 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### uname is: ('Linux', 'CoreELEC', '3.14.29', '#1 SMP Thu Jan 3 03:42:02 GMT 2019', 'armv7l', '')
03:31:37.151 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### System is linux
03:31:37.151 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version #: 17.9
03:31:37.151 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version  : L*
03:31:37.152 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Addon arguments as: ['/storage/.kodi/addons/weather.ozweather/default.py', '1']
03:32:13.254 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Exiting ....
04:02:14.814 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Starting ...
04:02:14.814 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### uname is: ('Linux', 'CoreELEC', '3.14.29', '#1 SMP Thu Jan 3 03:42:02 GMT 2019', 'armv7l', '')
04:02:14.814 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### System is linux
04:02:14.814 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version #: 17.9
04:02:14.814 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version  : L*
04:02:14.814 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Addon arguments as: ['/storage/.kodi/addons/weather.ozweather/default.py', '1']
04:02:53.138 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Exiting ....
04:32:54.321 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Starting ...
04:32:54.321 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### uname is: ('Linux', 'CoreELEC', '3.14.29', '#1 SMP Thu Jan 3 03:42:02 GMT 2019', 'armv7l', '')
04:32:54.322 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### System is linux
04:32:54.322 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version #: 17.9
04:32:54.322 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version  : L*
04:32:54.322 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Addon arguments as: ['/storage/.kodi/addons/weather.ozweather/default.py', '1']
04:33:30.973 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Exiting ....
05:03:32.305 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Starting ...
05:03:32.305 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### uname is: ('Linux', 'CoreELEC', '3.14.29', '#1 SMP Thu Jan 3 03:42:02 GMT 2019', 'armv7l', '')
05:03:32.305 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### System is linux
05:03:32.305 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version #: 17.9
05:03:32.306 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version  : L*
05:03:32.306 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Addon arguments as: ['/storage/.kodi/addons/weather.ozweather/default.py', '1']
05:04:08.201 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Exiting ....
05:34:09.457 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Starting ...
05:34:09.457 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### uname is: ('Linux', 'CoreELEC', '3.14.29', '#1 SMP Thu Jan 3 03:42:02 GMT 2019', 'armv7l', '')
05:34:09.457 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### System is linux
05:34:09.457 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version #: 17.9
05:34:09.457 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Kodi Version  : L*
05:34:09.457 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Addon arguments as: ['/storage/.kodi/addons/weather.ozweather/default.py', '1']
05:34:45.310 T:3379389232  NOTICE: ### Oz Weather - 0.9.8 ### Oz Weather (Author: Bossanova808) Exiting ....

Kodi Version is 18.0-RC4, note the log is saying a different version.

TIA

Greg
@gregeeh

That is as expected.  Until V18 is actually released, the version number is held at 17.9 (but note it says 'L*' meaning it knows the code base is Leia, i.e. V18).  Below 17.9 is Krypton.
So logging every 30 mins is also normal?  Seems to be stopping and starting...
Yes - how do you think it updates the weather Smile  (the addon is called by Kodi system every 30 mins for an updated scrape).

If you have debug logging turned on, you'll see a lot more info that makes what it is doing clearer.

The logging has changed a bit lately, it used to log everything by default but the Kodi devs have tried to limit log spam (fair enough, really!) - but I haven't per se adapted the addon fully to the new system to make it make a little more sense.  Will get tot hat sometime, if I have time.
(2019-01-20, 00:50)bossanova808 Wrote: [ -> ]Yes - how do you think it updates the weather Smile
Of course, should have thought of that.  Sometimes you just don't think of the obvious.  Sorry to have asked a noob question.
No worries at all...the logging side of it is definitely confusing.

Anyway, hope you find it useful!
Firstly, hi all, and thanks to bossanova808 for is amazing work on Ozweather.

I've just done a completely fresh v18 release install using estuary (Win8.1x64) and Myweather.xml is working very well, however when I put on DialogSeekBar.xml, the seek bar is staying on (with the radar etc) continuously, when playing a show.
Is it just me, or maybe I'm doing something wrong?   This was happening on my previous beta 18 installs too (as well as on a CoreElec v9 nightlies), but thought I'd wait until I did a fresh install first before asking.
Thanks again for this brilliant addon.
@cods69 

Sounds like an issue with the visibility conditions...but,  I've just done a test with Estuary, and seems ok here (Leia RC5).  I did fix up some spacing anyway, so maybe try this one: https://github.com/bossanova808/reposito...older).zip ... which is a fresh copy of the one I am using here.

...see how that goes for you.  I am just testing on Windows using space to pause/unpause.  Let me know.
Bang!  That fixed it!   Just in time to watch the storms roll in on Brunswick!
Thanks very much mate.  Really appreciate it.
No probs.  I'm around there myself and the sky is darkening ominously...glad I drove today!
Indeed. 
FWIW, I've just tested that new xml on CoreElec 9.0 with the release Kodi 18, and it also works beautifully.
Magic work - thanks so much.
@bossanova808

Thanks very much for doing all this. I copied across the new abcvideo.py file and it's working perfectly.
(You'd actually have the fixes automatically with the latest update anyway...)

But no probs
Hi, just wondering whether it's my system, or has something changed. This started a few days ago...

File "/storage/.kodi/addons/weather.ozweather/resources/lib/weatherzone.py", line 380, in getWeatherData
lhs = divCurrentDetailsLHS.find_all("td", class_="hilite")
AttributeError: 'NoneType' object has no attribute 'find_all'

kodi.log: https://paste.kodi.tv/ciwetarasa.kodi

Thanks
Peter