Kodi Community Forum
Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155)
+---- Thread: Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support (/showthread.php?tid=116905)



RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-02-23

Great!


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-03-02

Just an update:

Have added support for Estouchy to the Skin Patcher utility - so that now supports Estuary, Estouchy, and Confluence.  (v0.05, available from my repo now).

If folks have working skin files for any Matrix skins for OzWeather, I am happy to add support for those to this tool...just let me know.


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - teeedubb - 2021-03-05

Hi @bossanova808 

I am frequently getting the following error on start up of kodi and after it no weather info will be displayed. I am  now on matrix, but I was getting an error on Leia too.

Code:
2021-03-05 17:32:42.758 T:1154439   DEBUG <general>: ### Oz Weather 1.2.2 - Log in to BOM FTP
2021-03-05 17:32:42.760 T:1154439   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'socket.gaierror'>
                                                   Error Contents: [Errno -3] Temporary failure in name resolution
                                                   Traceback (most recent call last):
                                                     File "/home/blaster/.kodi/addons/weather.ozweather/default.py", line 11, in <module>
                                                       ozweather.run(sys.argv)
                                                     File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/ozweather.py", line 31, in run
                                                       get_forecast()
                                                     File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/forecast.py", line 190, in get_forecast
                                                       forecast(location_url_path, radar)
                                                     File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/forecast.py", line 129, in forecast
                                                       buildImages(radarCode, updateRadarBackgrounds, backgroundsPath, overlayLoopPath)
                                                     File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/bom.py", line 175, in buildImages
                                                       ftp = ftplib.FTP("ftp.bom.gov.au")
                                                     File "/usr/lib/python3.8/ftplib.py", line 117, in __init__
                                                       self.connect(host)
                                                     File "/usr/lib/python3.8/ftplib.py", line 152, in connect
                                                       self.sock = socket.create_connection((self.host, self.port), self.timeout,
                                                     File "/usr/lib/python3.8/socket.py", line 787, in create_connection
                                                       for res in getaddrinfo(host, port, 0, SOCK_STREAM):
                                                     File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
                                                       for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
                                                   socket.gaierror: [Errno -3] Temporary failure in name resolution
                                                   -->End of Python script error report<--
                                                   
2021-03-05 17:32:42.760 T:1154439   DEBUG <general>: onExecutionDone(8, /home/blaster/.kodi/addons/weather.ozweather/default.py)

Full debug log here: https://paste.ubuntu.com/p/9DZmmfZpGg/

Looks like its failing to connect to the BOM FTP?


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-03-05

Looks like you are having some DNS issues - the error you're getting:

Code:
Temporary failure in name resolution

= No known DNS was able to answer with the IP address

I've never seen that issue on a very wide variety of odi boxes and networking setups, so you're going to have to look close to home, I think, to figure that one out.  Anything unusual about your setup, particularly in the networking area?

What DNS are you using?


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - teeedubb - 2021-03-05

My network is using routers running OpenWRT and Cloudflare DNS servers (1.1.1.1 + 1.0.0.1). I just checked the the machine that is having the errors and its using my routers IP address as its DNS server.

I just tried downloading ftp://ftp.bom.gov.au/anon/gen/difacs/IDX0002.202103011200.gif via wget and it worked fine.

I thought it might be because internet connectivity isnt up before kodi starts, but you can see in the log the kodi has checked for addon updates prior to the error.


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-03-05

That's what I use here (for DNS).

No idea really, but clearly that machine is having some sort of name resolution issue...

Maybe try getting Kodi to wait for network just to see if it helps??


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-03-05

Like, immediately under the error you have also got:

Code:

2021-03-05 17:32:46.548 T:1154241 ERROR <general>: CCurlFile::Exists - Failed: Couldn't resolve host name(6) for http://www.msftncsi.com/ncsi.txt 2021-03-05 17:32:46.580 T:1154670 ERROR <general>: Skipped 1 duplicate messages.. 2021-03-05 17:32:46.580 T:1154670 ERROR <general>: Unable to lookup host: 'www.w3.org' 2021-03-05 17:32:46.580 T:1154670 DEBUG <general>: easy_acquire - Created session to http://www.w3.org 2021-03-05 17:32:46.581 T:1154241 ERROR <general>: Unable to lookup host: 'www.w3.org' 2021-03-05 17:32:46.581 T:1154241 DEBUG <general>: easy_acquire - Created session to http://www.w3.org 2021-03-05 17:32:46.581 T:1154670 ERROR <general>: CCurlFile::Exists - Failed: Couldn't resolve host name(6) for http://www.w3.org/

So it aint just the BOM you can't reach...


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - DavidFW1960 - 2021-03-05

(2021-03-05, 09:37)bossanova808 Wrote: Like, immediately under the error you have also got:

Code:

2021-03-05 17:32:46.548 T:1154241 ERROR <general>: CCurlFile::Exists - Failed: Couldn't resolve host name(6) for http://www.msftncsi.com/ncsi.txt 2021-03-05 17:32:46.580 T:1154670 ERROR <general>: Skipped 1 duplicate messages.. 2021-03-05 17:32:46.580 T:1154670 ERROR <general>: Unable to lookup host: 'www.w3.org' 2021-03-05 17:32:46.580 T:1154670 DEBUG <general>: easy_acquire - Created session to http://www.w3.org 2021-03-05 17:32:46.581 T:1154241 ERROR <general>: Unable to lookup host: 'www.w3.org' 2021-03-05 17:32:46.581 T:1154241 DEBUG <general>: easy_acquire - Created session to http://www.w3.org 2021-03-05 17:32:46.581 T:1154670 ERROR <general>: CCurlFile::Exists - Failed: Couldn't resolve host name(6) for http://www.w3.org/

So it aint just the BOM you can't reach...

I saw a similar issue with DNS when I enabled secure DNS over TLS in my router and ended up manually setting DNS on the device. (It was also with BOM funnily enough).....


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - teeedubb - 2021-03-05

Ahhhh, Thanks, I didnt see them because I was looking at the frst error in the log file.
Cheers


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - [email protected] - 2021-03-06

Hi all. Bit of a noob here. Sorry!

I have had Oz Weather running for quite a while on my Android TV running Kodi Matrix (estuary). It all works fine. However I can't seem to get the radar.

When I go to the Weather menu it looks nothing like the screenshots at the top of wiki. It just shows weather info along the top (Wind/Humidity/Rain/Sunrise/Sunset and location/conditions/temp) and 7 days of forecast in a row under that. But no radar.

I've enabled the extended features and run the patch to install the skin changes. I've also tried uninstalling everything and trying again but still nothing. I also tried manually applying the patch but can't seem to find the directories under the estuary skin folder. I used X-Plore and did show hidden files. 

Could it be because it's an Android TV and therefore has permission issues? Or am I just doing something stupid?

Thanks for any help
AD


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - anarchotaoist - 2021-03-07

Hello!
Is there a widget available?
How can I display OzWeather on the main menu?
Thanks!


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-03-07

@[email protected]

Yep your issue there will be the fact that your Estuary skin files are in a write-protected area.  Not a lot I can do about that unfortunately - you'd need to root the device for the utility to do its work (you should have seen an error message when trying to patch the skin files I would have though?

@anarchotaoist  What skin are you using?  Most skins have an option to display weather data on the home page somewhere.  But that's really up to skinners - OzWeather provides the data, but the skin has to have support for displaying it somewhere.


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - DavidFW1960 - 2021-03-07

(2021-03-07, 08:52)bossanova808 Wrote: @[email protected]

Yep your issue there will be the fact that your Estuary skin files are in a write-protected area. 

So I think mine are in a write-protected area (using ChromeCast with Google TV) which runs on Android. My skin patches perfectly... I wonder what the difference is?


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - bossanova808 - 2021-03-07

Well, that's not a write protected area then, QED Wink

Honestly, I don't know.  Works fine on my Android tablet (but that is rooted) - and coreelec and windows systems...I should try my phone sometime I suppose, which I suspect wouldn't work.  All comes down to where Kodi gets installed and what is writeable I guess.

A debug log of the skin patcher running could help, more than likely I put some logging in and there's probably an exception with the issue evident/confirmed...


RE: OzWeather - Australian Weather Addon using BOM data inc. animated radar support - DavidFW1960 - 2021-03-07

(2021-03-07, 09:54)bossanova808 Wrote: Well, that's not a write protected area then, QED Wink

Honestly, I don't know.  Works fine on my Android tablet (but that is rooted) - and coreelec and windows systems...I should try my phone sometime I suppose, which I suspect wouldn't work.  All comes down to where Kodi gets installed and what is writeable I guess.

A debug log of the skin patcher running could help, more than likely I put some logging in and there's probably an exception with the issue evident/confirmed...

Well if you remember back when I was running Leia I couldn't even find where the Kodi files were installed and I ended up forking the skin with the OzWeather files so as far as I was concerned the CCwGTV is a closed ecosystem. When I went to Matrix the patcher worked on the installed Krypton skin OOTB. Additionally I deleted the CC cache a week or so ago because I was out of free disk space and when I ran Kodi again I had to run the skin script again so it seems it's storing the skin files in a volatile cache somewhere.