Thread: Pocket Weather
View Single Post
  #12 (permalink)  
Old 11-15-2008, 05:22 PM
digitaldon37 digitaldon37 is offline
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by klaus View Post
Hi digitaldon37,
I had a look at your program, very nice and interesting.

One suggestion would be to insert somewhere the link to
Yahoo! Weather
where the user can find its location(s) from all around the world.

I tried some locations from Europe, works fine.

In your code you should add a test if
WeatherCurrent.code = 3200
3200 is the unknown code, this code is sometimes given for certain locations.
And in this case, in the Sub SetMainPage routine, line
imgCurrent.Image=AppPath & "\themes\" & INI.themeDir & "\conditions\" & WeatherConditionImages(WeatherCurrent.code)
generates an error.

There does also exist a condition code 0 (tornado), you shoud add an image 0.jpg for this code.

The images in your last version look nicer to me than those from the nws.
Didn't you have a link for their images in your first post ?

Best regards.

Hi Klaus - thanks for the feedback and finding the bugs - I'll get those added to the next release.

I haven't decided exactly how to let the user find their location id yet. I am thinking of added a new program form with agraham's webbrowser library and inserting the Yahoo page (there doesn't seem to be a web service available) and to capture the result.

The original icons (before I grabbed the Yahoo icons) I think I got from here: Weathericons - Weatherstation Salo, Halikko, FI. I was going to go back and put together a post on how to change the theme and weather icons.
Reply With Quote