473,382 Members | 1,389 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,382 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 2417
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.