View Single Post
  #6 (permalink)  
Old 12-22-2009, 07:26 PM
m3evo's Avatar
m3evo
N00b
Offline
 
Join Date: Oct 2007
Posts: 40
Reputation: 5
m3evo is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Any way to change Weather automatic update timing for Manila

I saw this on another website. It looks like there is a setting called UPDATETIMELIMIT = 180 I think if we can change that it will update to whatever time we set it too.

I just dont know where this section of code is in our phones

quote]
WeatherControlForHome.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4, l_1_5, l_1_6, l_1_7, l_1_
trace("WeatherControlForHome:__init")
l_1_0.SAVETIMEPATH = "Software\\HTC\\Manila"
l_1_0.SAVETIMEVALUE = "Home_WeatherClock_CheckTime"
l_1_0.temperature = nil
l_1_0.Time = nil
l_1_0.CityObj = nil
l_1_0.cityCode = nil
l_1_0.cityCodeIndex = 0
l_1_0.MYLOCATION = ":HWC:CurLoc"
l_1_0.CheckTime = Time(l_1_
l_1_0.CallBackFun = l_1_1
l_1_0.UIHvalue = l_1_2
l_1_0.UILvalue = l_1_3
l_1_0.UItemperature = l_1_5
l_1_0.UIconditionObj = l_1_6
l_1_0.CityNameObj = l_1_4
l_1_0.WeatherIcons = l_1_7
l_1_0.AutoDownload = false
l_1_0.ForceDownloadWeather = false
l_1_0.UPDATETIMELIMIT = 180
l_1_0.CheckTime = nil
l_1_0.weather = AccuWeather(_application:GetScopedLog("weather"), _application.Store)
l_1_0.Download = false
l_1_0:InitializeWeatherIcon(l_1_0.WeatherIcons, false)
l_1_0.MyLocationDownloadTimer = nil
trace("init weather end")
end

WeatherControlForHome.InitCheckTime = function(l_2_0)
trace("WeatherControlForHome:read from reg")
local l_2_1 = Time()
local l_2_2 = l_2_1:ReadFromReg(RegKeyRoot_HKCU, l_2_0.SAVETIMEPATH, l_2_0.SAVETIMEVALUE)
if l_2_2 then
l_2_0.CheckTime = l_2_1
trace("read from reg ok! date=" .. l_2_0.CheckTime:GetDateString("yyyyMMdd"))
end
end
[/quote]