View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 30 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: MythWeather in Australia
PostPosted: Thu Jan 19, 2006 5:04 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I didn't realise that you could use mythweather in Australia until, I went into the setup screen for it and saw that you could select cities from all over the world. I thought, great! I'll set it up. I selected my city (Adelaide) and was very impressed with the format of the information that it supplies. Very handy.... That is if it were anywhere near accurate.

Here is a comparison of the estimated maximums from the local forecasters compared to MSNBC.
Code:
Day      Local MSNBC
Friday   37    34
Saturday 41    36
Sunday   39    33
Monday   29    25

I mean come on, an average difference of around 5degrees (thats 9 fahrenheit)! What are they smoking? Why dont they just get the information from the local weather bureau? The stuff they have is a waste of time.

Is this indicative of what we Aussies can always expect?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 6:51 am 
yeh thats the problem, also you will find it will say current temp for thursday and the day is friday. or the forcast for today with yesturdays day on it.

seems all the grabbing of data is hard coded in otherwise i would look at redoing it. would be better if you could choose your source as well, the maps are good but the data is next to useless other than the general rain or sun.


Top
  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 7:07 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I've had a scout around http://www.bom.gov.au looking to see where the data might be grabbed. Do you know if it is available in a convenient format from that site somewhere? I Can't find it.

I take that back. It is available via FTP
ftp://ftp2.bom.gov.au/anon/gen/fwo/IDA00005.dat


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 8:18 pm 
yeh the bom are quite happy to offer data for grabbing, as i said just need to change the code in myth weather to suit it.


Top
  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 8:30 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
I think we are all intelligent enough to work out how to fix/change it. Another thing I like on the BOM is the radar. Here is Adelaide's http://mirror.bom.gov.au/products/IDR644.loop.shtml

The map in MythWeather is so dated, I have looked at it at 12am Midnight and found the map was from 9am, that is no bloody good to me being that out of date.

I would love to "fix" this feature, but I can't do it alone, I don't have the programming knowledge, although I am a fast learner. If you would like to do something about it email me and we can do something together.

Garth

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 9:00 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I actually prefer to do stuff in the open. Let's use this thread as the dumping gound for anything we find out. That way, anyone can chime in and help if we are doing something silly. Mythweather seems to be a pretty small module. I'm going to start by looking at the source code.

I had a look last night, and my first thought was: the fact that the BOM supplies that data via FTP rather then http may be a pain.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 9:05 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
I don't really see that as a problem, could you first let me know what language it is in and where would I find the source.

Thanks

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 9:28 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
It's written in C++. It is a module from mythplugins under the mythweather directory. I'm basing my work on SVN.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 5:04 pm 
Offline
Joined: Tue Apr 19, 2005 7:58 am
Posts: 31
I hear ya's, everyone in my family thought the weather was great until it was never accurate! :)

Im a network engineer, let me know if I can help in any way.

Aaron..
________
WHOLESALE VAPORIZER


Last edited by jacobsa on Mon Feb 14, 2011 12:27 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 8:46 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Just found out it is possible to download files from an ftp site using http via a service called www.net2ftp.com
Code:
wget "http://www.net2ftp.com/index.php?ftpserver=ftp2.bom.gov.au&username=anonymous&directory=/anon/gen/fwo&entry=IDA00005.dat&state=downloadfile"

This means that the HttpComms class can be used to get the aussie data too!.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 9:29 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Is there a reason why we have to use HTTP as wget supports FTP.

http://www.gnu.org/software/wget/manual/html_node/FTP-Options.html#FTP-Options

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 9:34 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Looking at weather.cpp, it uses a class called HttpComms which is part of mythlib. I don't know if it can do FTP. If not, it's probably easier to reuse that class for now.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 10:40 pm 
Offline
Joined: Sat Jan 21, 2006 8:52 pm
Posts: 5
Ok well i had a look over it,

1. The only way to get this done cleanly is to rewrite the whole process mythweather gets its data.
2. personally i dont like that they use a hard coded repository absolutely stupid IMHO
3. the best way i see to accomplish this for other countries is to make it modular

Create a seperate 'grabber' (similar to how the epg system works) then use the grabber to format the weather data in the mythweather format

then just have the main mythweather plugin call the grabber via user setting and voila

thoughts?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 11:58 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
The only issue I see with that is that it is a PITA configuring external grabbers. Mythweather is really nice the way that configuring your site information is all nicely integrated in the mythtv interface.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 3:35 am 
the grabber method is what d1 uses for their mythtv system that they sell


Top
  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu