Let's try to clarify this: suppose that you're in New York and using the latest stable version of Rainlendar2 with the Shadow4 skin. It will connect to the site
www.google.com/ig/api?weather=new+york&hl=en&ie=utf-8&oe=utf-8 to retrieve the weather information.
At this moment, the info from Google is:
| Code: |
<?xml version="1.0"?>
<xml_api_reply version="1">
<weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" >
<forecast_information>
<city data="New York, NY"/>
<postal_code data="new york"/>
<latitude_e6 data=""/>
<longitude_e6 data=""/>
<forecast_date data="2012-08-02"/>
<current_date_time data="2012-08-02 14:51:00 +0000"/>
<unit_system data="US"/>
</forecast_information>
<current_conditions>
<condition data="Clear"/>
<temp_f data="80"/>
<temp_c data="27"/>
<humidity data="Humidity: 69%"/>
<icon data="/ig/images/weather/sunny.gif"/>
<wind_condition data="Wind: N at 4 mph"/>
</current_conditions>
<forecast_conditions>
<day_of_week data="Thu"/>
<low data="72"/>
<high data="88"/>
<icon data="/ig/images/weather/mostly_sunny.gif"/>
<condition data="Mostly Sunny"/>
</forecast_conditions>
<forecast_conditions>
<day_of_week data="Fri"/>
<low data="73"/>
<high data="88"/>
<icon data="/ig/images/weather/mostly_sunny.gif"/>
<condition data="Mostly Sunny"/>
</forecast_conditions>
<forecast_conditions>
<day_of_week data="Sat"/>
<low data="73"/>
<high data="84"/>
<icon data="/ig/images/weather/chance_of_storm.gif"/>
<condition data="Chance of Storm"/>
</forecast_conditions>
<forecast_conditions>
<day_of_week data="Sun"/>
<low data="73"/>
<high data="82"/>
<icon data="/ig/images/weather/chance_of_storm.gif"/>
<condition data="Chance of Storm"/>
</forecast_conditions>
</weather>
</xml_api_reply>
|
As you can see, this info is from the date "2012-08-02 14:51:00 +0000" (around 10:51 New York local time). Suppose then (e.g.) that the future date will be "2012-08-03 09:34:00 +0000", when midnight, you still will be seeing the weather from the previous day, even when the day changes. As so as the forecast.
EDIT:
Now I'm thinking in the interval time. It's set to 1 hour starting for the app launch and this value is fixed. If the program is launched before the weather info change, you'll need to wait until the next hour. Using numbers:
weather updated at 22:15:00
App launch at 23:10:00 (using weather from 22:15)
weather updated at 23:15:00
App updates info at 00:10:00 (using weather from 23:15)
weather updated at 00:15:00
but still it's logic. The only change would be reduce the interval time.