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: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-10-31

@LeKodeur - no - you can force a refresh using the side 'blade' menu though


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - LeKodeur - 2015-11-10

Thanks @bossanova808 Smile ... I use Aeon MQ 6 and there is no 'side blade menu' available on the Aeon MQ x skins so unfortunately that functionality is not available to us (hey, can't please everybody all of the time Smile). Never mind, this weather addon is still my favourite Smile so many thanks for your great work and support Wink


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-11-10

Really - seems a bit of an oversight on their part. You could grab the code from confluence and make a button easy enough.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - thekow - 2015-11-10

@bossanova - i have been investigating my connection refused error. It seems it's pretty much has to do with being connected to a vpn and having to specify using a proxy.


peakay - peakay - 2015-12-28

Hi, It appears I have a similiar issue to the one reported by thekow.

I have ipvanish vpn via usenetserver.com, however if i turn off the vpn and just use normal internet connection, i still have the issue.

I have windows 10 so the message is slightly different but I'm thinking it is similiar enough to most likely be the same issue.

I use confluence skin, KODI Version: 15.2 Git:20151019-02e7013 with emby addon. I've tried a couple of other skins with no change of behaviour.
I have saved the extra files to C:\Program Files (x86)\Kodi\addons\skin.confluence\720p a indicated in the setup post.

i tried turning off the firewall completely, no change.

If I can do anything or supply any info that might assist, let me know. I am subscribed to this thread.

error message is below. full log is here - Pastebin - kodi log

21:23:44 T:2220 NOTICE: ### Oz Weather - 0.8.1 ### Oz Weather (Author: Bossanova808) Starting ...
21:23:44 T:2220 NOTICE: ### Oz Weather - 0.8.1 ### Called as: ['C:\\Users\\MediaCentre1\\AppData\\Roaming\\Kodi\\addons\\weather.ozweather\\default.py', '1']
21:23:44 T:2220 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'socket.error'>
Error Contents: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
Traceback (most recent call last):
File "C:\Users\MediaCentre1\AppData\Roaming\Kodi\addons\weather.ozweather\default.py", line 943, in <module>
forecast(location, radar)
File "C:\Users\MediaCentre1\AppData\Roaming\Kodi\addons\weather.ozweather\default.py", line 315, in forecast
buildImages(radarCode)
File "C:\Users\MediaCentre1\AppData\Roaming\Kodi\addons\weather.ozweather\default.py", line 496, in buildImages
ftp = ftplib.FTP("ftp.bom.gov.au")
File "C:\Program Files (x86)\Kodi\system\python\Lib\ftplib.py", line 120, in __init__
self.connect(host)
File "C:\Program Files (x86)\Kodi\system\python\Lib\ftplib.py", line 135, in connect
self.sock = socket.create_connection((self.host, self.port), self.timeout)
File "C:\Program Files (x86)\Kodi\system\python\Lib\socket.py", line 571, in create_connection
raise err
error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
-->End of Python script error report<--


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-12-28

@peakay @thekow - hmm, not sure about that one. I have no issues here with a few Kodi 15.2 installations (or my test Jarvis one for that matter).

Are you able to ftp to ftp.bom.gov.au outside of kodi?


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - peakay - 2015-12-28

@bossanova808 - No I cannot connect to that ftp site.

I also tried the other ftp links on the bom site (as per below) - couldn't connect to any of them with the vpn or without. the browser didn't even seem to try, just click link and fail 1 second later. I verified I have ftp enabled in windows features. tried with both chrome and IE.

Anonymous FTP
Via WEB Browser
Type ftp://ftp2.bom.gov.au/anon/gen/index.html in the location box of your browser and select relevant directory.
All current forecasts and warnings are at: ftp2.bom.gov.au/anon/gen/fwo
Current analysis and forecast charts are at: ftp2.bom.gov.au/anon/gen/difacs
Samples of registered user products are at: ftp2.bom.gov.au/anon/sample/

message from chrome
Unable to access the network
ERR_NETWORK_ACCESS_DENIED

message from IE
This page can’t be displayed
•Make sure that the web address http://ftp.bom.gov.au is correct.

I can access the site from my win7(IE10) laptop on the same network

so sounds like this is likely nothing to do with ozweather, rather some config on my win10 box is blocking me from accessing ftp. that at least gives me something to focus on.

thanks, I'll see what I can find. happy to try anything anybody thinks of though Smile


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-12-29

@peakay

You need to try specifically: ftp://ftp.bom.gov.au/ - in your browser , not http://ftp.bom.gov.au (you're connecting with the ftp protocol to port 21, not http to port 80 - it will refuse/time out on http connections)

That should come straight up with a list of directories.

If it doesn't then there's some sort of general network connectivity issue at your end you need to solve. Basically if you can ftp to that, then it should work, I'm 99.9% sure there's no issue with the addon...given I've been using it for ~6 years now without a hitch Wink


peakay - peakay - 2015-12-29

did you mean "ftp://ftp.bom.gov.au"

on my windows 7 box, I can resolve this but "http://ftp.ftp.bom.gov.au" doesn't work. just "ftp.bom.gov.au" also works.

anyway, whatever the address, what I'm taking from this is that my windows 10 ftp isn't working and if I resolve that my ozweather issue will likely be resolved also.

I identified what appears to be the public ip of the ftp servers at bom as being 134.178.253.145 which I wasn't able to resolve in windows 10. After I added it to my hosts file, i get a general failure error whereas I get a "request timed out" on my win7 machine, so definitely looking like I have a problem in general.

I'll see what I can do with ftp and will post back if I find a solution. I'd also be interested to hear from anyone that has windows 10 ( if they can use ftp/ozweather)

thanks for your help.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-12-29

I did mean that but either I stuffed up or it got auto corrected somehow Smile

I don't believe I have an issue from my win 10 laptop but will try later tonight and report back if I do.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-12-29

Just tried Win 10 (thought bugger it, upgraded my home PC) - and OzWeather is working fine.

I would guess VPN and/or firewall rules set up for that is your issue...


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - peakay - 2015-12-30

@bossanova
thanks for checking.
I removed vpn software, turned off firewalls, restarted, did system file check, retried "ftp.bom.qld.gov.au", still no joy, so I think I can rule those two out. (and win10 in general - thanks)
turned off defender also, no change.
tried accessing from explorer. IE and chrome, no joy.
I shall continue looking.
If anyone thinks of anything, happy to try it, but I understand this isn't an ozweather issue, so nothing expected.

thanks again.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-12-30

@peakay "ftp://ftp.bom.gov.au" - no qld in that - are you sure you're trying the right thing??


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - peakay - 2015-12-30

Just a typo. My work email ends in qld.gov.au. Habit. I was using the right bom link.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - tomtomtom - 2015-12-30

Hey folks,
New to Kodi, new to weather, new to HTPCs, but loving it.
THanks so much for the BOM weather addon - unreal!
Quick q if I may though - no luck with video or radar but debug script seems to infer all is good?

Running latest standard (not beta) build 15.2 (on windows 7)...

Here's the excerpt of the debug - trying to get local or sydney feeds - all the same with the bom radar -- logs all the png downloads -- just not displaying them...have fan art on or off and otherwise postcode 2500... still no luck... any ideas folks?

Thanks!

00:20:04 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Getting weather from http://www.weatherzone.com.au/nsw/illawarra/wollongong, Extended features = true
00:20:04 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Extended feature powers -> activate!
00:20:04 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Build radar images
00:20:04 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Called buildImages with radarCode: IDR032 and loop path C:\Users\Tom\AppData\Roaming\Kodi\userdata\addon_data\weather.ozweather\currentloop\IDR032\ and radar path C:\Users\Tom\AppData\Roaming\Kodi\userdata\addon_data\weather.ozweather\radarbackgrounds\IDR032\
00:20:04 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### os.path Removing previous radar files
00:20:05 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Successfully created C:\Users\Tom\AppData\Roaming\Kodi\userdata\addon_data\weather.ozweather\currentloop\IDR032\
00:20:05 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Prepare the backgrounds if necessary...
00:20:05 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Called prepareBackgrounds() with radarCode [IDR032]
00:20:05 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Download the radar loop
00:20:05 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Log in to BOM FTP
00:20:06 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Get files list
00:20:06 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Download the files...
00:20:06 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301100.png
00:20:06 T:2680 DEBUG: Keyboard: scancode: 0x38, sym: 0x0134, unicode: 0x0000, modifier: 0x100
00:20:06 T:2680 DEBUG: CInputManager::OnKey: alt-leftalt (0x4f0d4) pressed, action is
00:20:07 T:2680 DEBUG: CWinEventsWin32::WndProcWindow is active
00:20:07 T:2680 DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Windows\explorer.exe
00:20:08 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301106.png
00:20:09 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301112.png
00:20:09 T:2680 DEBUG: CJoystick::Initialize : No Joystick found
00:20:09 T:2680 DEBUG: CWinEventsWin32::WndProcWindow is active
00:20:09 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301118.png
00:20:10 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301124.png
00:20:10 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301130.png
00:20:11 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301136.png
00:20:11 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301142.png
00:20:12 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301148.png
00:20:12 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301154.png
00:20:13 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301200.png
00:20:13 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301206.png
00:20:14 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301212.png
00:20:15 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301218.png
00:20:15 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301224.png
00:20:16 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301230.png
00:20:17 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301236.png
00:20:17 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301242.png
00:20:18 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301248.png
00:20:18 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301254.png
00:20:19 T:2680 DEBUG: Keyboard: scancode: 0x38, sym: 0x0134, unicode: 0x0000, modifier: 0x100
00:20:19 T:2680 DEBUG: CInputManager::OnKey: alt-leftalt (0x4f0d4) pressed, action is
00:20:19 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301300.png
00:20:19 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301306.png
00:20:19 T:2680 DEBUG: Keyboard: scancode: 0x38, sym: 0x0134, unicode: 0x0000, modifier: 0x100
00:20:19 T:2680 DEBUG: CInputManager::OnKey: alt-leftalt (0x4f0d4) pressed, action is
00:20:20 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Retrieving radar image: ftp://anonymous:someone%[email protected]//anon/gen/radar/IDR032.T.201512301312.png
00:20:20 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Setting property - Name: [Radar] - Value:[IDR032]
00:20:20 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Get the forecast data from weatherzone.com.au: http://www.weatherzone.com.au/nsw/illawarra/wollongong
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Use PDOM to pull weather forecast data
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Current Conditions Retrieved: [u'17.8&deg;C', u'14.3&deg;C', u'17.8&deg;C', u'80%', u'WNW 9km/h', u'11km/h', u'-', u'1.8', u'0.0mm / -']
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### pressure n/a
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Rain Since: (u'0.0mm ', u'/', u' -')
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Astrological Retrieved: [u'05:46 EDT', u'20:12 EDT', u'14.2&deg;C', u'17.6&deg;C', u'14.7&deg;C', u'15.2&deg;C']
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### shortDesc is [u'Mostly sunny', u'Mostly sunny', u'Mostly sunny', u'Showers', u'Showers', u'Showers', u'Possible shower']
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Collected data: shortDesc u'Mostly Sunny', u'Mostly Sunny', u'Mostly Sunny', u'Showers', u'Showers', u'Showers', u'Possible Shower' (wiki) maxList u'24', u'24', u'23', u'21', u'20', u'20', u'20' (wiki) minList u'16', u'17', u'16', u'18', u'17', u'17', u'18' (wiki)
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Moonphase is: W
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Trying to get ABC weather video URL
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Video url parts: [('201512', 's_Weather2_3012')]
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Built url http://mpegmedia.abc.net.au/news/news24/wins/201512/WINs_Weather2_3012_1000k.mp4
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Setting property - Name: [Video.1] - Value:[http://mpegmedia.abc.net.au/news/news24/wins/201512/WINs_Weather2_3012_1000k.mp4]
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Setting property - Name: [WeatherProviderLogo] - Value:[C:\Users\Tom\AppData\Roaming\Kodi\addons\weather.ozweather\resources\banner.png]
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Setting property - Name: [WeatherProvider] - Value:[Bureau of Meteorology Australia (via WeatherZone)]
00:20:21 T:1856 DEBUG: ### Oz Weather - 0.8.1 ### Setting property - Name: [WeatherVersion] - Value:[Oz Weather-0.8.1]
00:20:21 T:1856 DEBUG: Setting property - Name: [Current.Condition] - Value:[Mostly Sunny]
00:20:21 T:1856 DEBUG: Setting property - Name: [Current.ShortOutlook] - Value:[Mostly Sunny]
00:20:21 T:1856 DEBUG: Setting property - Name: [Current.ConditionLong] - Value:[Illawarra for Wednesday
Clear. Light winds.