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 - 2013-08-15

Done.

But frickin' weatherzone data is all over the place at the moment....so it kinda looks broken (for my suburb anyway_ - but that's because they're missing half their data.

Should come back to normal soon...


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - raspberrypie - 2013-08-16

Don't you hate it when that happens...


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - budswell - 2013-08-16

Youve probably already covered it, but for me the plugin started failing a week or so ago. Running openElec 3.0.6

http://pastebin.com/gCgYJWpN
Code:
15:17:33 T:140679548225280   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('content',)
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/weather.ozweather/default.py", line 682, in <module>
                                                forecast(location, radar)
                                              File "/storage/.xbmc/addons/weather.ozweather/default.py", line 278, in forecast
                                                propertiesPDOM(data["content"], extendedFeatures)
                                            KeyError: ('content',)
                                            -->End of Python script error report<--
15:17:33 T:140680273606464   ERROR: Control 50 in window 12600 has been asked to focus, but it can't



RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2013-08-16

Actually that's a really weird log. It's calling it 3 times first as a settings thing - where you see 'Location1' 'Location2' etc in the logs first - and then it finally calls it normally. That doesn't happen on my OE machine, or my windows machine.

Are you sure you have the locations set up ok?

It's working fine on Windows and OE and apart from the odd weatherzone data hiccup - basically they had some non unicode characters on their page, syndicated from elsewhere and they weren't cleaning their data so they had basically wingdings in their new section for a bit! Smile

Other than that (and I have coded more defensively for that now anyway) - no current known issues on any plaftorms.

Can you check/post your settings (in addon_data/weather.ozweather/settings.xml IIRC)


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - sireddie - 2013-08-21

just installed and replaced files as instructed but I'm getting errors when enabling radar:

Code:
23:14:35 T:980  NOTICE: ### Oz Weather-0.6.6 ### Oz Weather (Author: Bossanova808) ********************* Starting ...
23:14:35 T:980  NOTICE: ### Oz Weather-0.6.6 ### Called as: ['C:\\Users\\XBMC\\AppData\\Roaming\\XBMC\\addons\\weather.ozweather\\default.py', '1']
23:14:35 T:3836  NOTICE: Thread CFileCache start, auto delete: false
23:14:36 T:980  NOTICE: Previous line repeats 2 times.
23:14:36 T:980   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\XBMC\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 682, in <module>
                                                forecast(location, radar)
                                              File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 255, in forecast
                                                buildImages(radarCode)
                                              File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\weather.ozweather\default.py", line 408, in buildImages
                                                ftp = ftplib.FTP("ftp.bom.gov.au")
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\ftplib.py", line 116, in __init__
                                                self.connect(host)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\ftplib.py", line 131, in connect
                                                self.sock = socket.create_connection((self.host, self.port), self.timeout)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\socket.py", line 561, in create_connection
                                                raise error, msg
                                            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<--
23:14:36 T:4700  NOTICE: Thread CFileCache start, auto delete: false
23:16:01 T:5560  NOTICE: Previous line repeats 4 times.
23:16:01 T:5560 WARNING: Skin has invalid include: WindowTitleHomeButton
23:16:01 T:5560 WARNING: Previous line repeats 1 times.
23:16:01 T:5560   ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//legend.png
23:16:01 T:5560   ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//background.png
23:16:01 T:5560   ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//topography.png
23:16:01 T:5560   ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//catchments.png
23:16:01 T:5560   ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//range.png
23:16:01 T:5560   ERROR: Texture manager unable to load file: special://home/userdata/addon_data/weather.ozweather/radarbackgrounds//locations.png
23:16:01 T:4904  NOTICE: Thread Jobworker start, auto delete: true

Any ideas?


[RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2013-08-21

Looks like an error with FTP permissions. My guess us a firewall blocking it maybe?

Try turning off all your security stuff for a minute and see if it works. You might need to add a rule.

Note posting log snippets is against the forum rules. Next time do a full debug log to xbmclogs or pastebin Do this if you're still having an issue without your firewall running.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - sireddie - 2013-08-21

Tried with firewall off, same issue.

Sorry about the log snippet paste.

Full debug log here: http://pastebin.com/b9Zf7h8E

Cheers


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2013-08-22

Ok two things to try:

One, try run XBMC explicitly as administrator (although I think you are already)
Two - use netstat -na to see if anything is hogging your ftp port

Code:
netstat -na | findstr port

Port 21 I guess.

I run the same basic config here without issue...it's definitely something either blocking or sitting on the port that's trying to be opened I would say.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - sireddie - 2013-08-22

Yay it works.

Tried accessing the ftp site ftp.bom.gov.au and this failed.

Turns out that PeerBlock's P2P list contain the IP in question (134.178.63.130). Once white listed in PeerBlock, everything works as expected.

bossanova808, thanks for your help figuring this one out and also for creating this great add-on.

Cheers!


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2013-08-22

No worries, happy weather to ya


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - budswell - 2013-08-29

(2013-08-16, 07:59)bossanova808 Wrote: Actually that's a really weird log. It's calling it 3 times first as a settings thing - where you see 'Location1' 'Location2' etc in the logs first - and then it finally calls it normally. That doesn't happen on my OE machine, or my windows machine.
Works fine for me in Windows too. I was building the OpenElec thing for my dad. I'll check again when I visit him in 6-8 weeks.

Anecdotally, when it seemed to go wrong was when I changed from VGA output to HDMI. i.e. I set it up with 3 locations (no advanced features) using the analogue VGA output, and it was working. Then changed to a HDMI output. Then noticed it wasn't working some time later. Probably just coincidence - but never saw it error with VGA, and never saw it work with HDMI.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2013-08-29

yeah that's not related. Most likely was weatherzone having a glitch. try it again and let me know


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - rogo - 2013-09-05

Thanks bossanova808 for a great addon, took me a while to find the file locations in xbmcbuntu, but everything is great now. Appreciate the effort you have put into this.

Ron


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - ferretlegs - 2013-09-27

Thanks for this excellent addon! I only have two queries / issues. Firstly, I love the feature when video is paused and you can see the current radar and temps etc, but unless I have visited the weather section previously this information is blank. Is there any way to have the weather constantly load and update in the background when xbmc is started/running?

Secondly, I downloaded the massive fan art pack zip file and extracted this to a location on the PC. I then configured the fan art path but I am not seeing this fan art anywhere. I dowloaded both the 720 and 1080 versions to see if it had to do with my skin (using default confluence in frodo). Any tips on what I need to do to get this working?


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2013-09-27

Well weather addons have no control over when they are called. The only way I can think of would be to write a service that calls it. That said, on xbmc startup, weather is called, so it should only take 30 secs or so for the radars etc to drop in to the folder (for the skin to then pick up). Are you resuming from sleep or something, or maybe playing vids really quickly at startup?

I did have weather fan art working at some point, but it only works on the weather page itself these days, no longer as a background on the homepage. So I haven't looked at it in a while.

Basically, you'd need to modify MyWeather.xml (I presume you're using my updated once for Confluence for radars etc on the weather page?) - to point the background at the fan art as a multiimage control I guess. I am sure there are some guides about...