![]() |
[RELEASE] Weather Plus Addon - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155) +---- Thread: [RELEASE] Weather Plus Addon (/showthread.php?tid=95329) |
- dynaflash - 2011-03-07 Okay, scratch the simplejson addon affecting anything. It was apparently a red herring since upon reboot it was hosed again. However that said ... I switched a couple things, then disabled the plugin then enabled it and rebooted. Boom, its back. Having a heck of a time isolating why it works sometimes and doesn't work others. ... frustrating since when it works it rocks. - stoli - 2011-03-07 Just an FYI - I've added support for this in Neon as well thanks to the work Jezz_X did in Confluence. http://forum.xbmc.org/showthread.php?tid=83337 Thanks, - rflores2323 - 2011-03-08 how can we add this addon to the next main xbmc release ![]() - Marx1 - 2011-03-09 What can I do if there is no my city to choose? - dallasnights - 2011-03-09 GM Weather is not working today getting script failed on ATV Here is the log...Thank you 08:34:27 T:123211776 M:125718528 INFO: initializing python engine. 08:34:27 T:123211776 M:125718528 DEBUG: Loading: /Applications/XBMC.frappliance/XBMCData/XBMCHome/system/python/python26-arm-osx.so 08:34:27 T:123211776 M:125706240 DEBUG: PYTHONHOME -> /Applications/XBMC.frappliance/Frameworks/usr 08:34:27 T:123211776 M:125706240 DEBUG: PYTHONPATH -> /Applications/XBMC.frappliance/Frameworks/usr 08:34:27 T:123211776 M:125706240 DEBUG: Python wrapper library linked with system Python library 08:34:27 T:123211776 M:125685760 DEBUG: new python thread created. id=1 08:34:27 T:123211776 M:125681664 DEBUG: CallScript - Weather script called: /var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus/default.py (USTX1060) 08:34:27 T:177213440 M:125677568 DEBUG: thread start, auto delete: 0 08:34:27 T:177213440 M:125677568 DEBUG: Python thread: start processing 08:34:28 T:177213440 M:125521920 NOTICE: -->Python Interpreter Initialized<-- 08:34:28 T:177213440 M:125521920 DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus/default.py 08:34:28 T:177213440 M:125530112 DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.mechanize/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.cryptopy/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simplejson/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.elementtree/lib:/var/mobile/Library/Preferences/XBMC/addons/script.web.viewer/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/Applications/XBMC.frappliance/Frameworks/usr:/Applications/XBMC.frappliance/Frameworks/usr/lib/python26.zip:/Applications/XBMC.frappliance/Frameworks/usr/lib/python2.6/:/Applications/XBMC.frappliance/Frameworks/usr/lib/python2.6/plat-darwin:/Applications/XBMC.frappliance/Frameworks/usr/lib/python2.6/plat-mac:/Applications/XBMC.frappliance/Frameworks/usr/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.frappliance/Frameworks/usr/lib/python2.6/lib-tk:/Applications/XBMC.frappliance/Frameworks/usr/lib/python2.6/lib-old:/Applications/XBMC.frappliance/Frameworks/usr/lib/python2.6/lib-dynload 08:34:28 T:177213440 M:125530112 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus 08:34:29 T:177213440 M:125345792 NOTICE: [PLUGIN] 'weather.com+ for Dharma: Version - 1.1.17-r' initialized! 08:34:29 T:177213440 M:125345792 NOTICE: ** Found XBMC Revision: r0 [Unknown] ** 08:34:30 T:181092352 M:125317120 DEBUG: DoWork - took 319 ms to load special://skin/backgrounds/music.jpg 08:34:30 T:173187072 M:121434112 DEBUG: DoWork - took 450 ms to load special://skin/backgrounds/pictures.jpg 08:34:31 T:146817024 M:117559296 DEBUG: DoWork - took 338 ms to load special://masterprofile/Thumbnails/e/e35f190f.jpg 08:34:31 T:177213440 M:117477376 NOTICE: /var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus/WeatherClient.py:17: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 08:34:31 T:177213440 M:111505408 NOTICE: Mode AddOn ON 08:34:31 T:177213440 M:111505408 NOTICE: Initiation 08:34:32 T:123211776 M:119128064 DEBUG: ExecuteXBMCAction : Translating ActivateWindow(Weather) 08:34:32 T:123211776 M:119128064 DEBUG: ExecuteXBMCAction : To ActivateWindow(Weather) 08:34:32 T:123211776 M:119123968 DEBUG: Activating window ID: 12600 08:34:32 T:123211776 M:119123968 DEBUG: Checking if window ID 12600 is locked. 08:34:32 T:123211776 M:119123968 DEBUG: ------ Window Deinit (Home.xml) ------ 08:34:32 T:123211776 M:123031552 INFO: easy_aquire - Created session to http://www.google.com 08:34:33 T:177213440 M:123047936 NOTICE: self.code = USTX1060 08:34:33 T:177213440 M:123047936 NOTICE: [Weather.com+] video_location : SC Local_location : dallas 08:34:33 T:177213440 M:123047936 INFO: -->Python script returned the following error<-- 08:34:33 T:177213440 M:123047936 ERROR: Error Type: <type 'exceptions.IndexError'> 08:34:33 T:177213440 M:123047936 ERROR: Error Contents: list index out of range 08:34:33 T:177213440 M:123006976 ERROR: Traceback (most recent call last): File "/var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus/default.py", line 41, in <module> Main() File "/var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus/xbmcplugin_weather.py", line 79, in __init__ self._fetch_36_forecast() File "/var/mobile/Library/Preferences/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 "/var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus/WeatherClient.py", line 974, in fetch_36_forecast parser = Forecast36HourParser( htmlSource, htmlSource_5, _localtime_, self.translate ) File "/var/mobile/Library/Preferences/XBMC/addons/weather.weatherplus/WeatherClient.py", line 314, in __init__ self._get_forecast( htmlSource, htmlSource_5, localtime ) File "/var/mobile/Library/Preferences/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:34:33 T:177213440 M:123006976 INFO: -->End of Python script error report<-- 08:34:33 T:177213440 M:123006976 INFO: Python script stopped 08:34:33 T:177213440 M:123006976 DEBUG: Thread 177213440 terminating 08:34:33 T:123211776 M:123006976 DEBUG: FileCurl::Close(0x757ec98) http://www.google.com/ 08:34:33 T:123211776 M:123006976 DEBUG: ------ Window Init (MyWeather.xml) ------ 08:34:33 T:123211776 M:123006976 INFO: Loading skin file: MyWeather.xml 08:34:37 T:123211776 M:134250496 DEBUG: ExecuteXBMCAction : Translating SetFocus(2000) 08:34:37 T:123211776 M:134250496 DEBUG: ExecuteXBMCAction : To SetFocus(2000) 08:34:37 T:123211776 M:134250496 DEBUG: ExecuteXBMCAction : Translating SetProperty(Weather.CurrentView,$LOCALIZE[31905] $LOCALIZE[31912]) 08:34:37 T:123211776 M:134250496 DEBUG: ExecuteXBMCAction : To SetProperty(Weather.CurrentView,CURRENT Conditions) 08:34:37 T:123211776 M:134250496 DEBUG: ExecuteXBMCAction : Translating SetProperty(Weather.CurrentViewMenu,$LOCALIZE[31905]) 08:34:37 T:123211776 M:134250496 DEBUG: ExecuteXBMCAction : To SetProperty(Weather.CurrentViewMenu,CURRENT) 08:34:37 T:123211776 M:134107136 DEBUG: ExecuteXBMCAction : Translating Skin.Reset(TWC.ZoomWeatherMap) 08:34:37 T:123211776 M:134107136 DEBUG: ExecuteXBMCAction : To Skin.Reset(TWC.ZoomWeatherMap) 08:34:37 T:123211776 M:134111232 DEBUG: python thread 1 destructed 08:34:37 T:123211776 M:134266880 DEBUG: ------ Window Init (DialogKaiToast.xml) ------ 08:34:37 T:181092352 M:125386752 DEBUG: DoWork - took 1423 ms to load special://masterprofile/Thumbnails/5/5a264e4f.jpg 08:34:43 T:123211776 M:118824960 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------ 08:34:47 T:123211776 M:118960128 INFO: Python, unloading python24.dll because no scripts are running anymore 08:34:47 T:123211776 M:118960128 DEBUG: UnloadExtensionLibs, clearing python extension libraries 08:34:47 T:123211776 M:118960128 DEBUG: Unloading: python26-arm-osx.so 08:34:47 T:173187072 M:118956032 DEBUG: DoWork - took 371 ms to load special://masterprofile/Thumbnails/8/884eb145.jpg - dynaflash - 2011-03-09 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 As seen here from my log: Code: 08:49:37 T:2906737552 M:150597632 INFO: -->Python script returned the following error<-- Note this is an intermittent issue upon boot. Sometimes it works and sometimes it doesn't. This is without changing any settings. - PatK - 2011-03-09 Not working at the moment... http://pastebin.com/FTw5vggD does get the map and current temp though.. Refreshed it.... script error. - brightsr - 2011-03-09 dynaflash, PatK : Thanks for your log file. Unfortuately, I'm not sure I can fix today, but I'll work ASAP. - dynaflash - 2011-03-10 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. - PatK - 2011-03-10 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? - brightsr - 2011-03-10 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. - brightsr - 2011-03-10 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? - PatK - 2011-03-11 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 - brightsr - 2011-03-11 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. 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. - Marx1 - 2011-03-11 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. 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. |