473,386 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Python weather application

Does anybody have any suggestions for getting started on desigining a
desktop weather application in Python?

I've been looking for access to weather data and while I have found
several including the weather.com service I've decided to use the
Yahoo! Rss Weather feed since it doesn't have a license like the
weather.com service does. However one problem I have with it is that
it only accepts zip codes or locations ids. So if a user was to enter
the name of the city instead of those two there would be an error. I
could make it so they could only enter in the location code or zip
code but I would really prefer to have it be automatically corrected.
Does anyone have ideas on how to go about this or have an other
suggestions?

Thanks,
Sean

Aug 30 '07 #1
2 2418
On Aug 30, 12:45 pm, seancron <seanc...@gmail.comwrote:
Does anybody have any suggestions for getting started on desigining a
desktop weather application in Python?

I've been looking for access to weather data and while I have found
several including the weather.com service I've decided to use the
Yahoo! Rss Weather feed since it doesn't have a license like the
weather.com service does. However one problem I have with it is that
it only accepts zip codes or locations ids. So if a user was to enter
the name of the city instead of those two there would be an error. I
could make it so they could only enter in the location code or zip
code but I would really prefer to have it be automatically corrected.
Does anyone have ideas on how to go about this or have an other
suggestions?

Thanks,
Sean
Use a dictionary to convert from the city chosen to the zip/location
code to use at Yahoo.

Aug 30 '07 #2
dc
On Aug 30, 5:41 pm, Zentrader <zentrad...@gmail.comwrote:
On Aug 30, 12:45 pm, seancron <seanc...@gmail.comwrote:
Does anybody have any suggestions for getting started on desigining a
desktop weather application in Python?
I've been looking for access to weather data and while I have found
several including the weather.com service I've decided to use the
Yahoo! Rss Weather feed since it doesn't have a license like the
weather.com service does. However one problem I have with it is that
it only accepts zip codes or locations ids. So if a user was to enter
the name of the city instead of those two there would be an error. I
could make it so they could only enter in the location code or zip
code but I would really prefer to have it be automatically corrected.
Does anyone have ideas on how to go about this or have an other
suggestions?
Thanks,
Sean

Use a dictionary to convert from the city chosen to the zip/location
code to use at Yahoo.
You can purchase/subscribe a zip code database and then use that as a
reverse look-up for your user entering a city. try the postal service
website for the database info.

Sep 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Somesh Bartakkay | last post by:
GnuCash -- popular accounting s/w is developed with c+Gtk+XML. if i wanna develope application like gnuCash which handles flat file database :: 1.weather it is wise decision to develope in...
5
by: Peter Clark | last post by:
Think of something like MyYahoo: a personalized portal with news aggregator, weather forecast, comics, etc. Now instead of visiting a web site, think of all of it being sent daily as an email. It...
159
by: petantik | last post by:
Are there any commercial, or otherwise obfuscators for python source code or byte code and what are their relative advantages or disadvantages. I wonder because there are some byte code protection...
2
by: sandeep patil | last post by:
how to diplay the weather condiction on my webpage suppose i want to read weather from www.bbc.co.uk/weather.html how i can read it usin program
15
by: dhr | last post by:
newbie question: Is there a 'K&R" type of Python book? The book that you'd better have on your shelf if you are going into Python?
17
by: Joel Andres Granados | last post by:
Hello list: I have tried various times to use an IDE for python put have always been disapointed. I haven't revisited the idea in about a year and was wondering what the python people use. I...
0
by: seancron | last post by:
Does anybody have any suggestions for getting started on desigining a desktop weather application in Python? I've been looking for access to weather data and while I have found several including...
0
by: marcell71 | last post by:
I'm trying to get Boost.Python to working using the instructions here: http://www.boost.org/libs/python/doc/building.html. I am on step 3.1.4 and am getting a linking error that I can't figure out....
0
by: Daniel Fetchinson | last post by:
On 10/29/08, Zix <saviourms@yahoo.co.inwrote: These pages might be useful, they include example code: http://docs.python.org/library/simplexmlrpcserver.html...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.