Bug #128 » weather-update-2011-01-01.diff
scripts/.modules/script.module.weather/lib/xbmcweather/search.py (working copy) | ||
---|---|---|
# base urls
|
||
BASE_URLS = {
|
||
"geo": "http://www.dnsstuff.com/tools/ipall/",
|
||
"weather": "http://xoap.weather.com/weather/local/%s?cc=*&unit=e&dayf=5&prod=xoap&link=xoap&par=%s&key=%s",
|
||
"weather": "http://xoap.weather.com/weather/local/%s?cc=*&dayf=5&link=xoap&prod=xoap&unit=s&par=%s&key=%s",
|
||
"search": "http://xoap.weather.com/search/search?where=%s"
|
||
}
|
||
# set headers
|
scripts/.modules/script.module.weather/lib/xbmcweather/weather.py (working copy) | ||
---|---|---|
PARTNER_KEY = "079f24145f208494"
|
||
# base url
|
||
BASE_URLS = {
|
||
"weather": "http://xoap.weather.com/weather/local/%s?cc=*&unit=e&dayf=5&prod=xoap&link=xoap&par=%s&key=%s"
|
||
"weather": "http://xoap.weather.com/weather/local/%s?cc=*&dayf=5&link=xoap&prod=xoap&unit=s&par=%s&key=%s"
|
||
}
|
||
# set headers
|
||
HEADERS = {
|
||
... | ... | |
# weather window for setting weather properties
|
||
WINDOW = xbmcgui.Window( 12600 )
|
||
# set refresh time in minutes
|
||
REFRESH_TIME = 20
|
||
REFRESH_TIME = 25
|
||
|
||
def __init__( self, addon, index, refresh, localize ):
|
||
# set our Addon class
|
||
... | ... | |
# parse info
|
||
info = self._parse_source( xml )
|
||
except:
|
||
# remove source
|
||
if ( os.path.isfile( self.base_path ) ):
|
||
os.remove( xbmc.translatePath( self.base_path ) )
|
||
# set error message and clear info
|
||
msg = "error"
|
||
info = self._clear_info()
|
xbmc/utils/Weather.cpp (working copy) | ||
---|---|---|
}
|
||
DWORD CWeather::TimeToNextRefreshInMs()
|
||
{ // 10 minutes
|
||
return 10 * 60 * 1000;
|
||
{ // 15 minutes
|
||
return 15 * 60 * 1000;
|
||
}
|
||
char *CWeather::GetLocation(int iLocation)
|