[RELEASE] Weather Plus Addon

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
dynaflash Offline
Senior Member
Posts: 167
Joined: Nov 2010
Reputation: 0
Post: #51
Hmm in general the same intermittent error I am getting I think as the previous poster.

Code:
08:49:37 T:2906737552 M:150597632   ERROR: Error Type: exceptions.IndexError
08:49:37 T:2906737552 M:150597632   ERROR: Error Contents: list index out of range

As seen here from my log:

Code:
08:49:37 T:2906737552 M:150597632    INFO: -->Python script returned the following error<--
08:49:37 T:2906737552 M:150597632   ERROR: Error Type: exceptions.IndexError
08:49:37 T:2906737552 M:150597632   ERROR: Error Contents: list index out of range
08:49:37 T:2906737552 M:150609920   ERROR: Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/weather.weatherplus/default.py", line 41, in ?
                                                Main()
                                              File "/home/xbmc/.xbmc/addons/weather.weatherplus/xbmcplugin_weather.py", line 79, in __init__
                                                self._fetch_36_forecast()
                                              File "/home/xbmc/.xbmc/addons/weather.weatherplus/xbmcplugin_weather.py", line 289, in _fetch_36_forecast
                                                alerts, alertsrss, alertsnotify, alertscolor, alertscount, forecasts, extras, video, video_local = self.WeatherClient.fetch_36_forecast( self.WEATHER_WINDOW.getProperty( "Video" ) )
                                              File "/home/xbmc/.xbmc/addons/weather.weatherplus/WeatherClient.py", line 974, in fetch_36_forecast
                                                parser = Forecast36HourParser( htmlSource, htmlSource_5, _localtime_, self.translate )
                                              File "/home/xbmc/.xbmc/addons/weather.weatherplus/WeatherClient.py", line 314, in __init__
                                                self._get_forecast( htmlSource, htmlSource_5, localtime )
                                              File "/home/xbmc/.xbmc/addons/weather.weatherplus/WeatherClient.py", line 391, in _get_forecast
                                                time_diff = int(sunrise_[ 0 ].split( " " )[ 3 ][:2])-localtime
                                            IndexError: list index out of range
08:49:37 T:2906737552 M:150609920    INFO: -->End of Python script error report<--
08:49:37 T:2906737552 M:150609920    INFO: Python script stopped
08:49:37 T:2906737552 M:150609920   DEBUG: Thread 2906737552 terminating
08:49:37 T:3043727200 M:150609920   DEBUG: python thread 2 destructed

Note this is an intermittent issue upon boot. Sometimes it works and sometimes it doesn't. This is without changing any settings.
find quote
PatK Offline
Posting Freak
Posts: 2,254
Joined: Mar 2010
Reputation: 67
Star    Post: #52
Not working at the moment... http://pastebin.com/FTw5vggD does get the map and current temp though..

Refreshed it.... script error.
(This post was last modified: 2011-03-09 17:56 by PatK.)
find quote
brightsr Offline
Fan
Posts: 351
Joined: Feb 2011
Reputation: 0
Location: Bridgeport, CT
Post: #53
dynaflash, PatK : Thanks for your log file. Unfortuately, I'm not sure I can fix today, but I'll work ASAP.
find quote
dynaflash Offline
Senior Member
Posts: 167
Joined: Nov 2010
Reputation: 0
Post: #54
brightsr Wrote:dynaflash, PatK : Thanks for your log file. Unfortuately, I'm not sure I can fix today, but I'll work ASAP.

Super! Thanks so much.
find quote
PatK Offline
Posting Freak
Posts: 2,254
Joined: Mar 2010
Reputation: 67
Star    Post: #55
brightsr Wrote:dynaflash, PatK : Thanks for your log file. Unfortuately, I'm not sure I can fix today, but I'll work ASAP.
No pressure... went back to the org weather and back again to weather plus and it's working go figure... might have something to do with the 'other' end?
find quote
brightsr Offline
Fan
Posts: 351
Joined: Feb 2011
Reputation: 0
Location: Bridgeport, CT
Post: #56
dallasnight : I tested your location. It works well, I think it's intermittent issue as you said. Based on the log file, I think the cause is the process to fetch weather data from xoap.weather.com, which was added on previous version for adjusting timezone. On my system, it has naver shown any errors about that process, so I don't know exactly what is causing the intermittent issue. If you still have the problem, I have to change the process to another one, but I guess it's not easy thing.

dynaflash : I need your location code which you can find on your log like "self.code = XXXXXXXX". But as you think, I also think your problem is the same one dallasnight has.

PatK : I tested your location, but it works well. The log file is showing that there's a problem with localizing pressure unit. If the issues depend on the user's location, I need more log files of other users living in Canada in order to figure out the exact problem.
(This post was last modified: 2011-03-10 05:39 by brightsr.)
find quote
brightsr Offline
Fan
Posts: 351
Joined: Feb 2011
Reputation: 0
Location: Bridgeport, CT
Post: #57
Marx1 Wrote:What can I do if there is no my city to choose?

That's what I really concern. All the weather information is from weather.com, so if there's no data of your city, it's useless.

Where do you live?
find quote
PatK Offline
Posting Freak
Posts: 2,254
Joined: Mar 2010
Reputation: 67
Star    Post: #58
Loads up the map... local temps of the day, then tells me script error. The Video button no longer shows up and I've turned off alerts.
It's not like I can't go back to the default weather program, but once I've seen the plus.... you can't expect me to settle for less?

http://pastebin.com/TRrTtfWn
(This post was last modified: 2011-03-11 00:06 by PatK.)
find quote
brightsr Offline
Fan
Posts: 351
Joined: Feb 2011
Reputation: 0
Location: Bridgeport, CT
Post: #59
PatK Wrote:Loads up the map... local temps of the day, then tells me script error. The Video button no longer shows up and I've turned off alerts.
It's not like I can't go back to the default weather program, but once I've seen the plus.... you can't expect me to settle for less?

http://pastebin.com/TRrTtfWn

I'd really like to to help you, but it's a little bit complicated and I'm busy.
I'll make it more stable so that you can use everything else even if some errors occur.

Edited : Fortunately, I think I found a key to fix it. I'll update tomorrow or the day after tomorrow.
(This post was last modified: 2011-03-11 06:31 by brightsr.)
find quote
Marx1 Offline
Senior Member
Posts: 230
Joined: Jan 2011
Reputation: 2
Post: #60
brightsr Wrote:That's what I really concern. All the weather information is from weather.com, so if there's no data of your city, it's useless.

Where do you live?

I live in Poland, Gliwice. There are many peoples around the world that can't use weather in XBMC because of lack of another weather provider. And there are no documentation how to write such a plugin, and no developer which work on such plugin.
I was very excited reading this thread and seeing that at last there is skilled developer which could help.
If I would have an documentation how to pass parameters, I would try to write plugin - scraper which could read weather info from another service (I've already started learning python but had to stop because I didn't find info how to write weather plugin).

At first i imagine the best would be to use core weather plugin and replace only two pieces: choosing city, and scraping weather data from another provider. But I don't know if it's possible.

Another way is to extend plugin from this thread by creating interface which allow to switch weather providers (plugin for plugin). Of course not all options would be available for all providers.
find quote
Post Reply