XoapWeather 1.1

Xlobby plugin development

Postby dsp fan on Wed Oct 13, 2004 8:44 am

Ah that looks much nicer, i did what Colby said and just over wrote the existing weather.xml being right click on the link and doing save as.

Everything looks great except,

the Now forecast has gone and the icon is missing and the current temperature is missing.

I have looked at the code and cannot see why, on screen where the icon should be for nowicon it just makes reference in tect to

plugin>xoapweather>current>nowicon

the temperature measurement has nothing next to it.. .. any thoughts ?
dsp fan
 
Posts: 28
Joined: Sun Oct 10, 2004 5:09 pm
Location: London

Postby edgley on Wed Oct 13, 2004 10:12 am

Yep,

the nowicon text should read:
plugin>xweather>current>image

as for temps. there are a few you can use:

plugin>xoapweather>current>Feels Like: %feelslike%
plugin>xoapweather>current>1>Low: %low%
plugin>xoapweather>current>1>High: %high%
plugin>xoapweather>current>Temperature: %temperature%

but my personal favourite is:
plugin>xoapweather>current>Wind Gust Level %windgust% %speedunit%

s.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby dsp fan on Wed Oct 13, 2004 10:21 am

Simon,

you do as little work as i do currently. In the office now and i will look later, however for the temperature i think the code is correct.

Where do I edit this, in the xlobby plugin setup or the weather.xml file.

On the nowicon, that is radically different. I will have a look.

cheers.

t
dsp fan
 
Posts: 28
Joined: Sun Oct 10, 2004 5:09 pm
Location: London

Postby dsp fan on Wed Oct 13, 2004 6:47 pm

Simon/colby

i tried everything with the code

plugin>xweather>>current>image
plugin>xweather>>current>nowicon
plugin>xoapweather>>current>image
plugin>xoapweather>>current>nowicon

high temperature came back out of nowhere,
low is still not showing.

Do i just have gremlins on my set up, the XML file colby sent worked a treat on the forecast stuff, is this a reason why edgley got me to go back to xweather code.??

I have both xweather and xoapweather folders in the plugin colby skin folder, any more ideas ?

thanks - the daft thing is just trying to get it to look pretty as another feature to sell the wife on a stunnning HCPC system in the house !

DVD playback works fine
dsp fan
 
Posts: 28
Joined: Sun Oct 10, 2004 5:09 pm
Location: London

Postby Colby on Wed Oct 13, 2004 10:25 pm

There is no reason to use xweather if your using xoap. Simon is mistaken. As for your nowicons and other things not showing, check 2 things:
1. are the images in the images folder of the xoap plugin in the xlobby directory. (Step #2)
2. Is the text box for the information wide enough to display text or images.

plugin>xoapweather>>current>nowicon

this code is wrong. Remove one of the >
as. plugin>xoapweather>current>nowicon

All these bugs will work out. You will be able to sell it to your wife. If working out the bugs doesnt help her try my secret weapon. (image inspired from the movie clueless).
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby edgley on Wed Oct 13, 2004 10:32 pm

Opps.

Sorry about that. That will teach me to try and use my brain so early.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby dsp fan on Thu Oct 14, 2004 7:46 pm

colby,

still trying hard. thought the Wardrobe was superb you obviously have too much time on your hands or the story is really true.

Anyway, the images are in the plugin folder there is nothing that indicates "nowicon" but thats just the xml name for that particuloar slot.

I have resized the box to huge and still only hte text appears in the box

plugin>xoap>current>nowicon

so give its just stating the text im no programmer but does that mean that is cannot find the item it is referening and therefore prints the text ?? or is it says that it does not know where to find the icon so it continues in the xml and prints what is sees ??

that the xml in weather.xml in colby skin

<eventbutton>
<imagename>text</imagename>
<location>134,97,192,184</location>
<navitem>False</navitem>
<text>plugin&gt;xoapweather&gt;current&gt;nowicon</text>
<font>Arial,1.30208333333333%,regular</font>
<locked>true</locked>
</eventbutton>

anymore thoughts ?? thanks ahead
dsp fan
 
Posts: 28
Joined: Sun Oct 10, 2004 5:09 pm
Location: London

Postby Colby on Thu Oct 14, 2004 8:50 pm

plugin>xoap>current>nowicon
it should read
plugin>xoapweather>current>nowicon

in the skin editor under display tab make sure this textbox reads this way
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby dsp fan on Fri Oct 15, 2004 4:32 pm

oh it does, i just keep typing it wrong,

the code you see if the exact extract so im lost totally. Assuming that code was correct which it was and i was being a numpty,

is there anything else you can think about the reference ??

cheers t
dsp fan
 
Posts: 28
Joined: Sun Oct 10, 2004 5:09 pm
Location: London

Postby Colby on Sat Oct 16, 2004 2:05 am

Simon wrote:Opps.

Sorry about that. That will teach me to try and use my brain so early.


Simon,

YEAH!
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby jowaldo on Fri Dec 24, 2004 8:31 pm

Is it possible to get this plugin to show abbreviated day names? For example on the xweather plugin you can put

plugin>xoapweather>current>1>%date:ddd%

Which will show Mon, or Tue, etc... instead of Monday, Tuesday, etc..

If not, would this be possible to add to it Brad?

I'm updating my ppc weather skins, and need abbreviated day names for everything to fit well on the screen.

Thanks!
jowaldo
 
Posts: 903
Joined: Wed May 21, 2003 7:17 pm

Postby Naylia on Sat Dec 25, 2004 3:19 am

jowaldo wrote:Is it possible to get this plugin to show abbreviated day names? For example on the xweather plugin you can put

plugin>xoapweather>current>1>%date:ddd%

Which will show Mon, or Tue, etc... instead of Monday, Tuesday, etc..

If not, would this be possible to add to it Brad?

I'm updating my ppc weather skins, and need abbreviated day names for everything to fit well on the screen.

Thanks!


I'm voting for this too, but I am worried because I think the guy discontinued development.
Naylia
 
Posts: 530
Joined: Tue Oct 19, 2004 7:50 pm
Location: Boston, MA

Postby fornold on Thu Dec 30, 2004 3:03 am

I played around with the source he put in the download. I think this does the job for:

plugin>xoapweather>current>1>%day:ddd%

DLL is at:
http://home.comcast.net/~drmbrown/XoapWeather.dll

I am new to Xlobby and just a hack at programming but it seems to work on my system. Definitely save the original dll first.

fornold
fornold
 
Posts: 2
Joined: Mon Dec 27, 2004 4:34 pm

Postby Patrick on Thu Dec 30, 2004 3:05 am

Checked bradsjm's source code, two things.
1-Sounds like you want the day value (returns the day of the week) and not the date value. Either way the plugin just pulls the information from the weather xml data and does not actually create a date value so the ddd format would not work anyway.
2-Looks like a minor coding error on the variableparser with the substring
that extracts a format and this would prevent the format from working.


I think I have successfully modified the plugin to include a substring format that you would use like:
plugin>xoapweather>current>1>%day:S0,3%
The S tells the plugin to use a substring and the 0 is the starting position and the 3 is the length. So when the day is Thursday the above would return Thu.

It appears bradsjm has stopped his work on the project.
So if he does not reply with some other help (or displeasure with the modification of his code) and this would be helpful to you let me know.

HTH,
Patrick
Patrick
 
Posts: 7
Joined: Tue May 25, 2004 1:30 pm

Postby Naylia on Thu Dec 30, 2004 4:20 pm

Nice guys! I'll check it out tonight.
Naylia
 
Posts: 530
Joined: Tue Oct 19, 2004 7:50 pm
Location: Boston, MA

PreviousNext