[RELEASE] OzWeather - Australian Weather Addon using BOM data
dildotron2000
Junior Member Posts: 22 Joined: Mar 2012 Reputation: 0 |
2012-05-09 14:12
Post: #171
Thanks for the quick reply, sorry i did not mean to convey that i was trying to make it work for Aeon Nox. I really hate window 7 search. I typed confluence into search, it comes up with nothing. Look on the internet and people say that skins are stored in user User/ AppData. I then search and only find find Aeon Nox and two 720p folers one for Aeon and one that has default as a parent folder so i assume that the default folder was confluence even know the folder structure says other wise. Anway i got it working and it looks and works great , if only it wokred with Nox.
|
| find quote |
shellacbeetle
Junior Member Joined: May 2012 Reputation: 0 |
2012-05-16 11:53
Post: #172
bossanova808, much respect - love the addon.
I am having problems entering my location however. As such I don't get temps. when i type in my postcode 3066 and click done, I assume there is supposed to be a prompt to choose Collingwood but I get this in the log instead; File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) The radar works a treat however! Any ideas? I'm using XBMCBuntu if that's of any interest... ps apologies if this has been covered I couldn't for the life of me find a reference to this issue anywhere... |
| find quote |
bossanova808
Member+ Joined: Sep 2009 Reputation: 20 Location: Melbourne, Australia |
2012-05-16 12:04
Post: #173
It's probably a Python 2.6 vs. 2.7 issue I guess - 3066 works fine on Openelec here (Python 2.6).
Need a full debug log - start XBMC with debugg logging (prefs->system), do this, nothing else, and the pastebin the logfile and I will see if that gives me any clues. My XBMC stuff: ...inc: |
| find quote |
shellacbeetle
Junior Member Joined: May 2012 Reputation: 0 |
2012-05-17 11:27
Post: #174
Cool. it seems I fall victim to this all the time... I should learn some python sometime and help myself out
![]() Here is the log; http://pastebin.com/JF48Qqtx Thanks for looking into it for me. Cheers, |
| find quote |
bossanova808
Member+ Joined: Sep 2009 Reputation: 20 Location: Melbourne, Australia |
2012-05-17 12:23
Post: #175
Is that a log of you trying to do the 3066 thing or just a regular retrieval? It looks more like a regular retrieval.
That's a really weird error though - basically it says it's getting no content *at all* - which is kinda odd. Code: #and now get and set all the temperatures etc...it's saying there is some data, but no 'content' key in it - which is pretty fundamental to what fetchPage (from an xbmc addon module called CommonFunctions) - returns. I.e. something is coming back but nothing is stored in the html chunk where it should be. Can you have a look in your addons dir, script.module.parsedom - and tell me what version you have installed (look in addon.xml) - it works here with both 0.9.1 and 0.9.2. Can you also add a line in default.py of ozweather so that it looks like this: (around line 233) Code: #and now get and set all the temperatures etc.(...and post a new log!) My XBMC stuff: ...inc:
(This post was last modified: 2012-05-17 12:24 by bossanova808.)
|
| find quote |
shellacbeetle
Junior Member Joined: May 2012 Reputation: 0 |
2012-05-17 12:53
Post: #176
ok, I'm using version 0.9.2 of parsedom.
Here's the updated log; http://pastebin.com/uERCXQuq (sorry mental blank before, I forgot to actually do the search for the post code.) |
| find quote |
bossanova808
Member+ Joined: Sep 2009 Reputation: 20 Location: Melbourne, Australia |
2012-05-17 13:21
Post: #177
Ok did you put that log line in? It doesn't seem to have logged anything...I can see it start the search for 3066 but it's intermingled with a general retrieval as well, so it's a bit confusing.
grrr I hate errors I can't duplicate. So the block in quesstion is this: Code: log("Doing locations search for " + text)...I can't see the error you mentioned though - the urllib one - it just doesn't seem to be running or erroring out at all - really odd. So far I am stumped...it should look like this in your log: 21:15:07 T:3700 NOTICE: -->Python Interpreter Initialized<-- 21:15:09 T:3700 NOTICE: CommonFunctions-0.9.2 21:15:13 T:3700 NOTICE: Oz Weather-0.3.7: Doing locations search for 3032 21:15:15 T:3700 NOTICE: Oz Weather-0.3.7: Response page url: http://weatherzone.com.au/search/ 21:15:15 T:3700 NOTICE: Oz Weather-0.3.7: Multiple result ['Ascot Vale, VIC 3032', 'Highpoint City, VIC 3032', 'Maribyrnong, VIC 3032', 'Travancore, VIC 3032'] URLs ['http://www.weatherzone.com.au/vic/melbourne/ascot-vale', 'http://www.weatherzone.com.au/vic/melbourne/highpoint-city', 'http://www.weatherzone.com.au/vic/melbourne/maribyrnong', 'http://www.weatherzone.com.au/vic/melbourne/travancore'] 21:15:21 T:5052 NOTICE: -->Python Interpreter Initialized<-- 21:15:24 T:5052 NOTICE: CommonFunctions-0.9.2 ...one thing you could try as a hack is to put the URL directly into your settings file: So : <setting id="Location3" value="Collingwood, VIC 3066" /> <setting id="Location3id" value="http://www.weatherzone.com.au/vic/melbourne/collingwood" /> (change the 3 to whatever number from 1 to 3.... ...not ideal but might get it working... My XBMC stuff: ...inc: |
| find quote |
shellacbeetle
Junior Member Joined: May 2012 Reputation: 0 |
2012-05-20 04:38
Post: #178
I setup a virtual machine on a different computer on the same network and installed xbmcbuntu and added the Oz Weather add on. It works a treat.
I copied the settings.xml file to my htpc in place of adding the lines you mentioned above. the addon now displays Collingwood as the location but I get an error message about there being a temporary problem with the website or that the addon failed... So I'm concluding that this is an issue unique to my install (i also have an issue with scraping from allmusic) so maybe I'll start from scratch. Thanks for your help with this Bossanova808. |
| find quote |
bossanova808
Member+ Joined: Sep 2009 Reputation: 20 Location: Melbourne, Australia |
2012-05-20 05:00
Post: #179
No problems. If you do think it's something I need to look at let me know - it should really work, it's pretty simple stuff (unless there is a problem reaching WeatherZone - that will kill it quick).
My XBMC stuff: ...inc: |
| find quote |
youngman
Junior Member Posts: 10 Joined: May 2012 Reputation: 0 |
2012-05-30 05:57
Post: #180
(2012-03-20 01:09)bossanova808 Wrote: Just that you're right, it's not downloading the backgrounds. I too was looking to use IDR701/702/703 - all of which are missing the backgrounds in the FTP location expected. Couldn't find them on the ftp site so just grabbed them direct from http://www.bom.gov.au eg. http://www.bom.gov.au/products/radar_tra...graphy.png etc. Unfortunately you cannot just browse this radar_transparencies directory... so I cannot say if this could potentially be a source for all backgrounds that are missing. Thanks for the add-on btw!
|
| find quote |


Search
Help