PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Aug 18, 2018 7:59 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jun 10, 2010 4:40 pm 
Offline
Forum Newbie

Joined: Thu Jun 10, 2010 4:15 pm
Posts: 1
Ive made a weather app that returns weather based on zip codes. I will add other countries to this app as soon as I learn what they are based on and when I have the time. If theres any US users here, try your zip code and post how incorrect or correct or corrupted the data is. I would try to test all the zip codes but thats just impossible.

http://www.inthebrilliantblue.com/weather/


Top
 Profile  
 
PostPosted: Tue Jun 15, 2010 4:52 pm 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6887
Pretty neat. My zip worked fine.

:arrow: Moved to HTML, CSS and other UI Design Technologies

_________________
Image


Top
 Profile  
 
PostPosted: Tue Aug 31, 2010 12:13 pm 
Offline
Forum Commoner
User avatar

Joined: Wed Aug 25, 2010 11:21 am
Posts: 40
Location: Eugene, OR
awesome app. i really like this. well done.


Top
 Profile  
 
PostPosted: Tue Aug 31, 2010 5:02 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6445
Location: 53.01N x 112.48W
You get a nasty error when I try to find the weather for "Zip Code". Maybe throw a file_exists() call in there first.

Also, maybe just a UI thing, but I'd put the zip code I just searched for, back in the text field, rather than reverting to "Zip Code". Finally, when clicking in that box, it'd be nice if all the text became selected, so I don't have to select it all to delete, or hit the delete button multiple times.

If you're interested in expanding to Canada, Environment Canada maintains a list of XML files that are regularly (as in, every hour or so) updated. The individual files are obscurely named, but there is a mapping XML file that converts city names & provinces to a code that gives you the filename.

The root of the site is here: http://dd.weatheroffice.ec.gc.ca/citypage_weather/xml/

For Camrose, Alberta (for example), the "site code" is "s0000311" and the province code is "AB", so the English weather feed for Camrose, Alberta is located at http://dd.weatheroffice.ec.gc.ca/citypa ... 0311_e.xml

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
PostPosted: Mon Sep 06, 2010 2:32 am 
Offline
Forum Newbie

Joined: Mon Sep 06, 2010 2:16 am
Posts: 4
pretty neat, i like this kind. :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 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