View Single Post
  #191 (permalink)  
Old 05-15-2009, 12:05 PM
storyr's Avatar
storyr
VIP Member
Offline
Threadstarter
Location: Tacoma
 
Join Date: Sep 2006
Posts: 883
Reputation: 5538
storyr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the communitystoryr is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)

Quote:
Originally Posted by rebecker View Post
The new icon is PERFECT! Thanks.

Re: the update of the icon, I guess I'm not quite sure I understand the script. I've turned off the auto update in WP itself. I have the widget set to update every hour (although I tried 15 minutes, without any change) because of the lack of internet I have through most of the day. I usually update the weather in the morning and then again in the late afternoon. No data plan or wireless in the outback . However, right now I'm synched to the internet, WP shows Fair and 90; the MS icon shows Clear and 84 (which was the current info an hour ago). If I set the update time in your script to 15 minutes, for instance, and I'm not connected to the internet, will the MS icon still update? Or is there some assumption in your script that "we" are always connected?

Thanks.

-Bob-
The widget refresh script is independent of WP updates, although it does assume you're running the hourly data fix.

Here's how the widget refresh script works (regardless of the schedule):
  1. Look up the default city in the WP settings
  2. Access the current data file for that city (in WeatherPanel\data)
  3. If the data is current, use that
  4. If the data is > 1 hour old, access the hourly forecast data for that city
  5. Traipse through the hourly data until the current hour is found - use that data
One thing I've noticed in my testing:
WeatherPanel has the same feature: It will use hourly forecast data after the current data expires. I've noticed that, for whatever reason, WeatherPanel gets too far ahead in the file - maybe by a couple of hours. Whereas, the widget refresh script is accurate. This can lead to a discrepancy in what WP shows and what the widget shows - as the current data gets older throughout the day...