Welcome, Guest
Please Login or Register.    Lost Password?

Weather doesn't update on midnight
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Weather doesn't update on midnight
#17664
Weather doesn't update on midnight 1 Year, 8 Months ago  
When it's midnight, the weather widget doesn't update to the next day.

Is that the supposed behaviour? I thought, the new day will update on the left side, with new forecasts for the other days following.
Loom
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/08/02 07:34 By Loom.
The administrator has disabled public write access.
 
#17665
Re: Weather doesn't update on midnight 1 Year, 8 Months ago  
The weather info isn't made by Rainlendar, but for a 3rd party site (MSN/Yahoo or Google, according to skin and version). Rainlendar has no way to update the weather info.
When midnight, not necessarily the weather is updated. Mostly, the sites updated their info at 1 o'clock.
Jorge_Luis
Platinum Boarder
Posts: 778
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#17666
Re: Weather doesn't update on midnight 1 Year, 8 Months ago  
Maybe I described it a little wrong.

Let's say it's Thursday, 11.59 pm

I have the weather for Thursday on the left side of the weather panel, followed by the upcoming next 3 days.

Now it's 0.00, but the panel doesn't switch. Thursday is still on the left side, where there should be Friday. And I still got only 3 forecasts up to Sunday where there should be one for Monday now.
Loom
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#17667
Re: Weather doesn't update on midnight 1 Year, 8 Months ago  
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.
Jorge_Luis
Platinum Boarder
Posts: 778
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
Last Edit: 2012/08/02 10:25 By Jorge_Luis.
The administrator has disabled public write access.
 
#17668
Re: Weather doesn't update on midnight 1 Year, 8 Months ago  
Thank you very much for the detailed explanation, Jorge.

Makes much more sense now!
Loom
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop