473,651 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2436
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...@gma il.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
1185
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 python ? which is prefered GUI from wxPython, PyGTK ? and Why ? Shall i code wxPython in FUNCTIONAL programming way(nON Object oriented) ? 2.weather i should go with XML or python's flatDB module which handles
5
1727
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 does have a web interface, but mostly for selecting your content: this is my location for weather, these are the news feeds I'm interested in, these are the comics I like, save my preferences, and the server takes care of the rest. Does such a...
159
13399
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 available for java and .NET, although from what i've read these seem to be not comprehensive as protection schemes
2
2078
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
1882
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
324
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 have also found http://pida.co.uk/main as a possible solution. Anyone tried it yet?
0
313
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 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...
0
2092
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. This is the error: ~/Desktop/boost_1_34_1/libs/python/example/quickstart$ bjam toolset=gcc --verbose-test test Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more...
0
226
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 http://code.activestate.com/recipes/81549/ http://code.activestate.com/recipes/496786/ http://www.google.com/search?q=python+xmlrpc+server+example Cheers,
0
8361
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8278
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.