PDA

View Full Version : [RELEASE] Weather.com Plus Plugin - skinnable via the new Weather Plugin API in XBMC!


Nuka1195
2009-06-01, 00:53
With the new weather plugin feature of XBMC you can have your weather window display more info.

Skinners can determine if a plugin is selected by using the infolabel "Weather.Plugin". eg <visible>!IsEmpty(Weather.Plugin)</visible>, thanks spiff

Here is a plugin that adds the above info. Until script settings is added you are stuck with babelfish translating if available and the three map categories. available in the addons svn.

Here is a link to the files for PMIII (not finished, but you can get ideas, won't look exactly as the below pictures): http://xbmc-addons.googlecode.com/svn/packages/Project%20Mayhem%20III%20-%20Weather.zip

I tried to localize as much as possible. let me know if anything is missing (temperature and wind speed in forecasts is not converted). Skinners let me know if it would better to localize from skin or XBMC wher i localize from script. if skinners are going to localize headings (where possible) i will remove Heading properties.

It currently translates some text with strings.xml files (script/skin/XBMC). The forecast, outlook and wind uses babelfish.yahoo.com. babelfish only works for certain languages.
"Chinese (Simple)": "en_zh",
"Chinese (Traditional)": "en_zt",
"Dutch": "en_nl",
"French": "en_fr",
"German": "en_de",
"German (Austria)": "en_de",
"Greek": "en_el",
"Italian": "en_it",
"Japanese": "en_ja",
"Korean": "en_ko",
"Portuguese": "en_pt",
"Portuguese (Brazil)": "en_pt",
"Russian": "en_ru",
"Spanish": "en_es",
"Spanish (Mexico)": "en_es",

Any weather plugin can set any property. There are no restrictions, but for skinners it would be better to have some standards. Since this is the first I will set some :P.

I may have missed some.

Plugin Name:
------------
"PluginName": name of the plugin(not the same as the infolabel "Weather.Plugin")

Video:
-------

"Video": url of weather video. empty if not avaialble


Alerts:
-------

"Alerts": The main text (empty if none)
"Alerts.Color": color you may use. must have a colors/defaults.xml with these names(red, orange, yellow, green, default)
"Alerts.Count": number of alerts if more than one alert, otherwise empty
"Alerts.Label": script localized string (Alert, Alerts)


36 Hour forecast (%d == 1 thru 3):
---------------------------------------

"36Hour.%d.OutlookIcon":
"36Hour.%d.FanartCode":
"36Hour.%d.Outlook": brief outlook (babelfish translated)
"36Hour.%d.TemperatureColor": "{low|high}" so you can colorize temperature
"36Hour.%d.TemperatureHeading": XBMC localized string (High|Low)
"36Hour.%d.Temperature": temp no temp unit
"36Hour.%d.Precipitation":
"36Hour.%d.Forecast": weather forecast (babelfish translated)
"36Hour.%d.DaylightTitle": script localized string (Sunrise|Sunset)
"36Hour.%d.DaylightTime": Sunrise/sunset time
"36Hour.%d.Heading": Script localized period("Today", "Tonight", "Tomorrow", "Tomorrow Night"


Hourly forecast (%d == 1 thru 28):
--------------------------------------

"Hourly.%d.Time": items time
"Hourly.%d.OutlookIcon":
"Hourly.%d.FanartCode":
"Hourly.%d.Temperature": no temp unit
"Hourly.%d.Outlook": brief outlook (babelfish translated)
"Hourly.%d.FeelsLike": no temp unit
"Hourly.%d.Precipitation":
"Hourly.%d.Humidity":
"Hourly.%d.WindDirection":
"Hourly.%d.ShortWindDirection": (eg NNE)
"Hourly.%d.WindSpeed":

these could be localized in the xml
"Hourly.Heading1": "Time" script localized
"Hourly.Heading2": "Condition" script localized
"Hourly.Heading3": "Temp" xbmc localized
"Hourly.Heading4": "Feels" script localized
"Hourly.Heading5": "Precip" script localized
"Hourly.Heading6": "Humid" xbmc localized
"Hourly.Heading7": "Wind" xbmc localized


Weekend forecast (%d == 1 thru 3):
---------------------------------------

"Weekend.%d.OutlookIcon":
"Weekend.%d.FanartCode":
"Weekend.%d.Outlook": brief outlook (babelfish translated)
"Weekend.%d.HighTemperature":
"Weekend.%d.LowTemperature":
"Weekend.%d.Precipitation":
"Weekend.%d.Wind": direction and speed
"Weekend.%d.UV":
"Weekend.%d.Humidity":
"Weekend.%d.Sunrise": time
"Weekend.%d.Sunset": time
"Weekend.%d.Forecast": weather forecast (babelfish translated)
"Weekend.%d.Observed": "Observed:" (may remove)
"Weekend.%d.ObservedPrecipitation":
"Weekend.%d.ObservedAvgHighTemperature":
"Weekend.%d.ObservedAvgLowTemperature":
"Weekend.%d.ObservedRecordHighTemperature":
"Weekend.%d.ObservedRecordLowTemperature":
"Weekend.%d.DepartureHigh": departure from avg high temp
"Weekend.%d.DepartureHighColor": ("low" or "high" or "default") so you can color your departure
"Weekend.%d.DepartureLow": departure from avg high temp
"Weekend.%d.DepartureLowColor": same as high
"Weekend.%d.Date": date of forecast


10 Day forecast (%d == 1 thru 10):
--------------------------------------

"Daily.%d.LongDay": Long day of week xbmc localized
"Daily.%d.ShortDay": day of week abreviated script localized
"Daily.%d.Date":
"Daily.%d.OutlookIcon":
"Daily.%d.FanartCode":
"Daily.%d.Outlook":brief outlook (babelfish translated)
"Daily.%d.HighTemperature":
"Daily.%d.LowTemperature":
"Daily.%d.Precipitation":
"Daily.%d.WindDirection":
"Daily.%d.ShortWindDirection": (eg NNE)
"Daily.%d.WindSpeed":
these could be localized in the xml
"Daily.Heading1": "Date" script localized
"Daily.Heading2": "Condition" script localized
"Daily.Heading3": "High" xbmc localized
"Daily.Heading4": "Low" xbmc localized
"Daily.Heading5": "Precip" script localized
"Daily.Heading6": "Wind" xbmc localized


Maps and Radars (%c == 1 thru 3, %d == 1 thru 30):
-----------------------------------------

"MapList.%c.MapLabel%d": Label of radar
"MapList.%c.MapOnclick%d": <onclick> for when selected
"MapList.%c.LongTitle": map category long name script localized
"MapList.%c.ShortTitle": map category abreviated name script localized

Nuka1195
2009-06-01, 00:53
http://img269.imageshack.us/img269/7536/10day.th.jpg (http://img269.imageshack.us/my.php?image=10day.jpg) http://img19.imageshack.us/img19/66/36hourtranslated.th.jpg (http://img19.imageshack.us/my.php?image=36hourtranslated.jpg) http://img38.imageshack.us/img38/1815/36hour.th.jpg (http://img38.imageshack.us/my.php?image=36hour.jpg) http://img269.imageshack.us/img269/5951/alerts.th.jpg (http://img269.imageshack.us/my.php?image=alerts.jpg)

.

Nuka1195
2009-06-01, 01:05
http://img38.imageshack.us/img38/4158/hourly.th.jpg (http://img38.imageshack.us/my.php?image=hourly.jpg) http://img38.imageshack.us/img38/7832/mapsc.th.jpg (http://img38.imageshack.us/my.php?image=mapsc.jpg) http://img19.imageshack.us/img19/9009/weekendm.th.jpg (http://img19.imageshack.us/my.php?image=weekendm.jpg) http://img19.imageshack.us/img19/3727/weekend2w.th.jpg (http://img19.imageshack.us/my.php?image=weekend2w.jpg)

.

Dan Dare
2009-06-01, 15:19
Nuka1195, looks very good. This might sound like a stupid question, SVN Repo Installer extracted it in XBMC\plugins\weather, but how do I access it? Choosing Weather in the main menu goes to the original Weather Forecast (XBMC 9.04.1 Windows)

queeup
2009-06-01, 15:27
This is wonderful thx. My i ask why are you using babelfish? Goggle Translate (http://translate.google.com/translate_t) has more language support.

queeup
2009-06-01, 15:28
Eheheh Dan ı think you must start from plugins menu :)

Edit: dohh stupid answer?

Nuka1195
2009-06-01, 15:52
you need to edit you skin to support this plugin. the first post has a link to files you can drop in to pmiii folder and it should look work. it won't look the same as the pictures, because i use different fonts and may have nissed some gfx.

if people report google translate is better i can switch it.

Dan Dare
2009-06-01, 16:10
Thanks Nuka1195,

I dropped the files from the archive in C:\Program Files\XBMC 9.04.1\skin\Project Mayhem III (Windows) and it worked, looks like this for me:

http://img195.imageshack.us/img195/8741/weatherplugin.jpg

As you said, that's the default background and some issue with getting the details forecats for Dublin, Ireland (ERROR: invalid rss url set referenced in skin), may be some issue with the website, not necessarily a problem in your code...

Nuka1195
2009-06-01, 16:14
not related. did you go into weather settings and select "weather.com plus"

also this feature was only recently added, may not be in 9.04.1

Dan Dare
2009-06-01, 16:18
Nuka, I just extract the files on top of the existing ones in the installation folder (maybe should've copied them in my user's skin folder?!) and it replaced the standard weather feature, didn't have to do anything in the weather settings... Nvm, I will try again with a newer SVN release, not going to take over the thread :-) Thanks again.

Nuka1195
2009-06-01, 17:53
http://img193.imageshack.us/img193/5486/settings.th.jpg (http://img193.imageshack.us/my.php?image=settings.jpg)

Also skinners note. all these properties are available thru out the skin. Window(Weather).Property(Alerts) for instance

Nuka1195
2009-06-04, 17:20
[weather.com plugin]

-changed: version -> 1.0.1
-changed: all color properties to return only a color name.
-changed: Weekend.%d.DepartureHighColorBegin -> Weekend.%d.DepartureHighColor
-changed: Weekend.%d.DepartureLowColorBegin -> Weekend.%d.DepartureLowColor
-removed: Weekend.%d.DepartureHighColorEnd and Weekend.%d.DepartureLowColorEnd

* see: http://xbmc.org/forum/showthread.php?t=52034


updated plugin

Baphomet
2009-06-04, 17:50
Looks awesome.

Baphomet
2009-06-04, 17:52
Okay, so let me get this straight -- the Weather + plugin is a newer version of the TWC Supplemental 1.2 script? Same functionality of the TWC Script, just with a cleaner look and more functionality?

lewis.donofrio
2009-06-04, 18:01
So how would we go about on a pure xbox running xbmc get the 'weather' link in the main page using stock skin be able to use this plugin?

Nuka1195
2009-06-04, 19:06
let me try.

the TWC supplemental script is a stand alone script. you need to run it to view the info and for the info to update. it is constantly running. it is not related to the plugin.

the plugin runs when ever xbmc updates weather. all it does is set's properties. these properties are available thru out the skin, but skinners need to take advantage of them. it is not a gui.

a skinner can take advantage of them eg as aeon displays info on the home screen. you could have a control that gas <visible>!IsEmpty(Window(Weather).Property(Alerts))</visible> so if an alert for your selected area came up. a button or textbox could pop up on the home screen alerting you of an alert. or it could display the radar of the selected map.

a skinner could do as i did and edit myweather.xml to display all the info. they could choose to display only a few of the views.

read the first thread, there is a link to files that will work as i did when dropped in pmiii. it is not upto date with the 1.0.1 changes, and won't look exactly as the pictures posted, but you have a start.

about xbox. i'm not current with xbox, so i don't know if it has been merged yet.

Baphomet
2009-06-04, 19:58
It seems like your above statement would suggest the opposite of how I understand each should work (Plugin runs all the time, constantly providing updates, whereas the script runs only when it is ran from the scripts menu and stops running when exiting via the menu button).

I ran through the python scripts and the xml code looking for an answer to my fanart problems and there is no reference to fanart in the plugin code. As I stated before, the TWC script has a setting in it that allows for mapping to the weather fanart directory but since it only runs when executed from the script menu and stops running once you exit the script, it can no longer provide the location of the fanart or the updates of the weather conditions to reference the fanart for the homescreen... Does this make any sense? So what does the reference to the fanart directory in the TWC Supplemental settings actually do?

I apologize if I seem daft -- I've been working on figuring this (http://xbmc.org/forum/showthread.php?t=52137) out for days and I'm not having any success...

EDIT:

After a complete wipe and reinstall of the stable 06/01 9.0.4x BABYLON FIXED T3CH release, I got the 1.5.x script to work and now understand what the fanart in the settings was for -- It changes the backdrop of the script gui to show the current conditions based fanart... so, I guess, ummm... Thanks!

Nuka1195
2009-06-10, 00:38
no as i said. the plugin runs when xbmc updates weather, fills the properties and exits. leaving the properties available.

the script needs to be running for you to see the info.

now to really confuse you. if the script is run from a link on the weather window. those properties would be avialable thru out the skin even after exiting it (with the latest version) but they would only update when you run the script. confused?

Gamester17
2009-06-11, 14:22
Now that this "Weather Plugin API" is available in XBMC mainline SVN it would be cool to also see some alternative weather forecast sites plugins by third-party developers, for example:
weather.com (http://www.weather.com)
accuweather.com (http://www.accuweather.com)
weather.msn.com (http://weather.msn.com)
HAMweather.com (http://www.hamweather.com)
Weather Underground (wunderground.com) (http://www.wunderground.com)
Intellicast (intellicast.com) (http://www.intellicast.com)
MyForecast (http://www.myforecast.com) (MyForecast.com, power by CustomWeather (http://www.customweather.com))
timeanddate.com (http://www.timeanddate.com) (time and date.com (http://www.timeanddate.com), power by CustomWeather (http://www.customweather.com))

:cool:

Nuka1195
2009-06-11, 17:48
[weather.com plus]
-changed: version -> 1.1
-added: compatibility check
-changed: enable plugin settings
#requires XBMC revision 21010 or newer


also edited first post for the new infolabel

Nuka1195
2009-06-12, 01:27
[weather.com plus]

-changed: version -> 1.1.1
-fixed: do NOT use skin localized strings (skins vary)

#requires XBMC revision 21010 or newer


update

XBMCG33K
2009-06-15, 21:33
Where can I get the plugin?

jonm42
2009-06-16, 00:05
Where can I get the plugin?

SVN Repo Installer

Nuka1195
2009-06-27, 00:30
updated 1st post with new properties


[weather.com plus]
-changed: version -> 1.1.4
-changed: added "ShortWindDirection" properties to hourly and daily forecasts
*requires XBMC revision 21010 or newer



[weather.com plus]
-changed: version -> 1.1.3
-changed: convert hourly forecast wind directions to full text to match 10 day forecast (eg From NNE -> From the North Northeast)
*requires XBMC revision 21010 or newer



[weather.com plus]
-changed: version -> 1.1.2
-changed: properly catch a non existent map (some are just invalid)
-added: "FanartCode" for each "OutlookIcon" so skins like Transparency can have animated icons using multiimage controls (eg Weather.Property(36Hour.1.FanartCode) )
*requires XBMC revision 21010 or newer

MacLeod_1980
2009-07-20, 05:37
Having major issues with this plugin, unable to get it to run. My logs contain the following information.

22:32:48 T:2969553808 M:1574244352 NOTICE: File "/home/macleod/.xbmc/plugins/weather/weather.com plus/default.py", line 42, in ?
22:32:48 T:2969553808 M:1574244352 NOTICE: Main()
22:32:48 T:2969553808 M:1574244352 NOTICE: File "/home/macleod/.xbmc/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 27, in __init__
22:32:48 T:2969553808 M:1574244352 NOTICE: self._get_client()
22:32:48 T:2969553808 M:1574244352 NOTICE: File "/home/macleod/.xbmc/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 106, in _get_client
22:32:48 T:2969553808 M:1574244352 NOTICE: if ( sys.argv[ 1 ].startswith( "map=" ) ):
22:32:48 T:2969553808 M:1574244352 NOTICE: IndexError
22:32:48 T:2969553808 M:1574244352 NOTICE: :
22:32:48 T:2969553808 M:1574244352 NOTICE: list index out of range
22:32:48 T:2969553808 M:1574244352 ERROR: Scriptresult: Error

I am running version 1.1.4b of the weather.com plugin, and SVN release of 2179.

Any ideas how to fix this issue?

Nuka1195
2009-07-23, 17:59
looks like you're trying to run it yourself? it auto runs with xbmc weather update, so should have a sys.argv.

MacLeod_1980
2009-07-24, 01:57
Even when I configure it to be used for my weather it does nothing. Maybe I just don't know how to use it. I simply enabled the feature and pointed at the script... no idea what else I should be doing, or should try.

logictester
2009-07-28, 22:04
Hi Nuka, there seems to be a problem with hebrew strings, all the days appear from the end of the word to the beginning (hebrew is right to left lanuage) - exanple with english - today apears as yadot and one string - evening in 36h says music videos

Nuka1195
2009-07-29, 01:16
MacLeod_1980, sounds like you want the twc script. this you enable in weather settings.

logictester, i don't know why they would be reversed. maybe a ss, with you pointing out how it should disple. but i don't think it's on my control.

logictester
2009-07-29, 09:11
here are couple of screenshots:

inthe first image - all the days are there but all of them are mirrored - example - first block - today - םויה - should be - היום

http://img259.imageshack.us/img259/1776/screenshot005a.jpg

in the second image all the days are mirrored - the second block showing - tonight - says - music videos in hebrew

http://img166.imageshack.us/img166/7685/screenshot004b.jpg

Nuka1195
2009-07-29, 15:55
might be a bug with xbmc.

http://xbmc.org/trac/ticket/6973

feel free to add any info you can

logictester
2009-07-29, 16:16
might be a bug with xbmc.

http://xbmc.org/trac/ticket/6973

feel free to add any info you can

it's very strange cause all other strings work just fine, only those strings have issues, can you please point to where those strings are located so i could fix it for my own installation - for now :) - thanks

Nuka1195
2009-08-08, 18:48
[weather.com plus]
-changed: version -> 1.1.9
-fixed: weekend parser
-changed: no longer thread weather fetching (temp to see if it fixes issues with some setups)


updated 1st post.

ronie
2009-08-28, 02:12
hey Nuka1195, you know i think you're a pretty ok guy, nice scripts and all.
one of the most valuable xbmc team members for sure...

but i just don't want you in my skin, allright?

http://i687.photobucket.com/albums/vv237/roniez/workz/weather-bug.jpg

this happens after changing the weather.com plus plugin settings,
suddenly 'Music' is replaced by 'nuka1195'.

this also happens in PM3.HD.
tested on both windows and linux (r22374)
i'm using v1.1.9 of the weather.com plus plugin.

you know, i can deal with a little self-promotion,
but this is a bit overdone, don't you think. ;-)

Nuka1195
2009-08-28, 02:24
i'm not with the team anymore, it was my revenge :)

1.1.9a has the fix

ronie
2009-08-28, 02:28
i'm not with the team anymore, it was my revenge :)

1.1.9a has the fix

cheers mate! :-)

taxigps
2009-08-28, 17:07
How to submit a language file for weather.com plus plugin?

kizer
2009-08-29, 00:00
Bahahaha that rocks

signe
2009-09-03, 10:18
I'm seeing an issue where settings.xml is missing at startup?

I've created this at both:
special://home/plugins/weather/weather.com plus/settings.xml
special://masterprofile/plugin_data/weather/weather.com plus/settings.xml

But the error remains... the real issue is that it's not 100% reproduceable. It'll happen a dozen times, and then it won't... then it will start again.

XBMC SVN:22528

darknior
2009-09-03, 20:34
Hi,

Now your SCRIPT is include in transparency, i use it and it is excelent :D
But do you want me and others guys help you to translate it in all language like we do for transparency! ?
I think it is a good idea, and we do it for you lol
For my part i translate in french ;)

Bye

darknior
2009-09-03, 20:36
http://img38.imageshack.us/img38/4158/hourly.th.jpg (http://img38.imageshack.us/my.php?image=hourly.jpg) http://img38.imageshack.us/img38/7832/mapsc.th.jpg (http://img38.imageshack.us/my.php?image=mapsc.jpg) http://img19.imageshack.us/img19/9009/weekendm.th.jpg (http://img19.imageshack.us/my.php?image=weekendm.jpg) http://img19.imageshack.us/img19/3727/weekend2w.th.jpg (http://img19.imageshack.us/my.php?image=weekend2w.jpg)

.

And do you know how we must do for have these view on xBox ?
I'm not really understand :(
Thanks

ronie
2009-09-04, 10:47
And do you know how we must do for have these view on xBox ?
I'm not really understand :(
Thanks

that would be my job to create them. ;-)
there's currently only 1 view available in Transparency! but i have plans to add a few more.

flikfoto
2009-09-04, 18:03
One little issue with having the weather.com plus plugin installed. Every time I shut down and restart XBMC I get the following error.

Error: Python Script Failed:
special://home/plugins/weather/weather.com plus/default.py

I am running on Vista 64, 4 GB Ram, Intel Dual Core, Transparency 2.0

I have my Map 1 set to Local.

Any ideas what this might be.

Thanks!

Frank

BigBlack
2009-09-05, 10:43
hey guys but in the file i've downloaded from the first post I haven't the .py file... why? If I try to download the script from SVN Report it freeze my xbmc... However from svn it's accuweather.com script? Or another? Who can up this script on another server? Thank you. Bye bye

ronie
2009-09-05, 12:58
hey guys but in the file i've downloaded from the first post I haven't the .py file... why? If I try to download the script from SVN Report it freeze my xbmc... However from svn it's accuweather.com script? Or another? Who can up this script on another server? Thank you. Bye bye

can't help you with the crash, but using the SVN Repo installer, navigate to this:
xbmc-addons > plugins > weather > weather.com plus

SVN is here: http://xbmc-addons.googlecode.com/svn/trunk/plugins/weather/

and no it's not the accuweather.com script.

BigBlack
2009-09-05, 14:03
ok thank you!! however what file i've to edit to have prevision for hour weekly... the things written on the first post i mean.. I've copy folders to my skin (trasparency that can use this plugin if i don't understand wrong) but i had a black screen... i need to turn back old files.. It's trasparency or i'm making something wrong? Thank you for your help!

ronie
2009-09-05, 14:22
ok thank you!! however what file i've to edit to have prevision for hour weekly... the things written on the first post i mean.. I've copy folders to my skin (trasparency that can use this plugin if i don't understand wrong) but i had a black screen... i need to turn back old files.. It's trasparency or i'm making something wrong? Thank you for your help!

don't copy any files to the skin!!!

only the 7-day forecast is available in Transparency!
other screens will be added as soon as i have some time to make them.

BigBlack
2009-09-05, 17:23
ok.. :) thank you... however i make some disaster... i've yet copied file and turn back with old but now sometimes without any evident reason XBMC freeze... i don't know...
this is my last log.. http://pastebin.com/m4d73e068 i've activated debug mode and after 20 second it freeze... do you see something?

ronie
2009-09-06, 00:14
ok.. :) thank you... however i make some disaster... i've yet copied file and turn back with old but now sometimes without any evident reason XBMC freeze... i don't know...
this is my last log.. http://pastebin.com/m4d73e068 i've activated debug mode and after 20 second it freeze... do you see something?

it's a known issue, needs to be fixed by xbmc.
nothing i can do.

CyberMaxX
2009-09-08, 22:39
One little issue with having the weather.com plus plugin installed. Every time I shut down and restart XBMC I get the following error.

Error: Python Script Failed:
special://home/plugins/weather/weather.com plus/default.py



First - Thanks for the Great Plugin - very nicely done.
But, Any solution to this - I'm seeing the same thing as others have recently posted here. Sometimes XBMC starts without the errors but most of the time I get this script error as well. From the Log it looks like it's trying to find a file called settings.xml, I have configured the Weather.Com Plus Plugin thru it's settings option. If I go to the Weather Tab it displays properly, but in order to get it I have to toggle "City" in order for it to populate the information.

Here's my Log -
14:56:38 T:14628 M:1241305088 NOTICE: UDP: Listening on port 9777
14:56:39 T:13124 M:1234223104 NOTICE: -->Python Interpreter Initialized<--
14:56:39 T:13124 M:1234194432 NOTICE: [PLUGIN] 'weather.com plus: Version - 1.1.9a-r' initialized!
14:56:39 T:13124 M:1234194432 NOTICE: ** Required XBMC Revision: r21010 **
14:56:39 T:14440 M:1234194432 NOTICE: -->Python Interpreter Initialized<--
14:56:39 T:13124 M:1234108416 NOTICE: ** Found XBMC Revision: r22516 [Compatible] **
14:56:39 T:13124 M:1230737408 NOTICE: Traceback (most recent call last):
14:56:39 T:13124 M:1230737408 NOTICE: File "E:\Program Files\XBMC\plugins\weather\weather.com plus\default.py", line 40, in ?
14:56:39 T:13124 M:1230737408 NOTICE: from resources.lib.xbmcplugin_weather import Main
14:56:39 T:13124 M:1230737408 NOTICE: File "E:\Program Files\XBMC\plugins\weather\weather.com plus\resources\lib\xbmcplugin_weather.py", line 19, in ?
14:56:39 T:13124 M:1230733312 NOTICE: class Main:
14:56:39 T:13124 M:1230729216 NOTICE: File "E:\Program Files\XBMC\plugins\weather\weather.com plus\resources\lib\xbmcplugin_weather.py", line 21, in Main
14:56:39 T:13124 M:1230729216 NOTICE: Settings = xbmc.Settings( os.getcwd() )
14:56:39 T:13124 M:1230729216 NOTICE: Exception
14:56:39 T:13124 M:1230729216 NOTICE: :
14:56:39 T:13124 M:1230729216 NOTICE: No settings.xml file could be found!
14:56:39 T:13124 M:1230729216 ERROR: Scriptresult: Error

Running XBMC pre-9.10 r22516 (Compiled: Aug. 31, 2009)
Transparency! V2.00

Thanks

boyofford
2009-09-16, 21:34
Great plugin, just sorted it out in transparency (ran in to noobie daft probs, all good now)

aptalca
2009-09-16, 23:24
I also have the intermittent python error (default.py) when starting XBMC with weather plus. I don't know what it depends on whether I get it or not. I am using 22516 and transparency 2.11

debug:
http://pastebin.com/m75c6d8ad

stoli
2009-10-03, 01:50
I'm not sure if there is anything that can be done about this, but for some reason my "Feels Like" and "Humidity" values are always 32 for my city. Any other city or town I have tried works fine, so I am guessing it is an issue with weather.com

The weather.com site and rss feed both have the correct values.... If anyone can shed a little light on this, I would appreciate it. The correct city info on weather.com is here: http://www.weather.com/weather/local/USFL0267

Thanks!

Shalashaska
2009-10-04, 20:43
I also have the intermittent python error (default.py) when starting XBMC with weather plus. I don't know what it depends on whether I get it or not. I am using 22516 and transparency 2.11

debug:
http://pastebin.com/m75c6d8ad

Me too, same intermittent error ^^, running Transparency 2.01 and XBMC Nightly Build Patched 23060, will post a debug log later

changeling
2009-10-08, 09:14
Nuka,

My XBMC refuses to recognize or load WeatherClient.pyo, nor will python itself import the object.

00:53:46 T:2547678064 M:1121046528 NOTICE: Traceback (most recent call last):
00:53:46 T:2547678064 M:1121046528 NOTICE: File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/default.py", line 43, in <module>
00:53:46 T:2547678064 M:1121046528 NOTICE: import resources.lib.WeatherClient as WeatherClient
00:53:46 T:2547678064 M:1121046528 NOTICE: ImportError
00:53:46 T:2547678064 M:1121046528 NOTICE: :
00:53:46 T:2547678064 M:1121046528 NOTICE: No module named WeatherClient
00:53:46 T:2547678064 M:1121046528 ERROR: Scriptresult: Error


Python gives me a bad magic number in pyo. I suspect this is the result of it being an object compiled either on windows or a different architecture than x86. Could you send me the py? I assume you include it as an object for speed of loading and not to prevent reverse-engineering, right?

For what it's worth, I'm running on a linux box. Would love to overcome this little hurdle.

Thanks,

- Chris

rickx
2009-10-25, 14:48
Hi Nuka,
I've been curious to see this plugin in action, but I've never been able to run it yet...
I'm on linux with r22528.

what I get is
11:56:14 T:2950691728 M:1432535040 NOTICE: Traceback (most recent call last):
11:56:14 T:2950691728 M:1432535040 NOTICE: File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/default.py", line 41, in ?
11:56:14 T:2950691728 M:1432535040 NOTICE: Main()
11:56:14 T:2950691728 M:1432535040 NOTICE: File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 68, in __init__
11:56:14 T:2950691728 M:1432535040 NOTICE: self._fetch_weekend_forecast()
11:56:14 T:2950691728 M:1432535040 NOTICE: File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 285, in _fetch_weekend_forecast
11:56:14 T:2950691728 M:1432535040 NOTICE: forecasts = self.WeatherClient.fetch_weekend_forecast()
11:56:14 T:2950691728 M:1432535040 WARNING: Trying to access old style dir: F:/source/XBMC-Linux/plugins/weather/weather.com plus/resources/lib/WeatherClient.py
11:56:14 T:2950691728 M:1432535040 NOTICE: File "F:\source\XBMC-Linux\plugins\weather\weather.com plus\resources\lib\WeatherClient.py", line 830, in fetch_weekend_forecast
11:56:14 T:2950691728 M:1432535040 WARNING: Trying to access old style dir: F:/source/XBMC-Linux/plugins/weather/weather.com plus/resources/lib/WeatherClient.py
11:56:14 T:2950691728 M:1432535040 NOTICE: File "F:\source\XBMC-Linux\plugins\weather\weather.com plus\resources\lib\WeatherClient.py", line 390, in __init__
11:56:14 T:2950691728 M:1432535040 WARNING: Trying to access old style dir: F:/source/XBMC-Linux/plugins/weather/weather.com plus/resources/lib/WeatherClient.py
11:56:14 T:2950691728 M:1432535040 NOTICE: File "F:\source\XBMC-Linux\plugins\weather\weather.com plus\resources\lib\WeatherClient.py", line 519, in _get_forecast
11:56:14 T:2950691728 M:1432535040 NOTICE: IndexError
11:56:14 T:2950691728 M:1432535040 NOTICE: :
11:56:14 T:2950691728 M:1432535040 NOTICE: list index out of range
11:56:14 T:2950691728 M:1432535040 ERROR: Scriptresult: Error


After I close the error alert window, xbmc restarts. And it's not intermittent, it's every time. Only choice is remove it.
As suggested, giving the open WeatherClient.py would certainly help - supposing you're busy these days.
I also had a minor issue with the plugin failing to recognize the xbmc svn revision (that string was pre9.10 r22528M) which I solved changing this line in default.py
xbmc_rev = int( xbmc.getInfoLabel( "System.BuildVersion" ).split( " r" )[ -1 ] )

to
xbmc_rev = int( xbmc.getInfoLabel( "System.BuildVersion" ).split( " r" )[ -1 ][0:5] )

ronie
2009-10-25, 16:02
Hi Nuka,
I've been curious to see this plugin in action, but I've never been able to run it yet...
I'm on linux with r22528.


you could try if a more recent build of xbmc fixes it.
there were some python related issues before, but they should be fixed by now:
http://xbmc.org/trac/ticket/6839
http://xbmc.org/trac/ticket/6430