Page 1 of 1

Combining 2 xoapweather variables to get a 3rd

PostPosted: Thu Dec 04, 2008 1:18 am
by Cabinetguy
I've been doing some research into Xoapweather to try and have the "nowicons" display the various phases of the moon.
I have found that the Xoapweather feed includes a text field for moon phase, and an icon number to show a moon phase icon like the weather condition icons.

In the default icon set there are icons for some of the various moon phases with numbers such as 27_3, 27_4. Does anyone know how to combine the nowicon number and the moon icon number into the above format and have xlobby show these icons?


Brian

Re: Combining 2 xoapweather variables to get a 3rd

PostPosted: Sun Dec 07, 2008 7:12 pm
by Cabinetguy
After searching Google alot, I found a webpage on Xpath queries.
So I went into Xoapweathers variable config section and made a variable called "Newicon" and in the xpath section I typed in a Xpath query

string-join(('/weather/cc/icon','weather/cc/moon/icon'),'_')

that should have combined the "now icon" id number and the moon icon id number, and returned a icon id. like this 27_8.
It didn't work. I put % on either side of"newicon so that I could get the text output in the text box on my weather page , and I got this

'(string(string-join(('/weather/cc/icon','weather/cc/moon/icon'),'_')) has an invalid token"
The moon icon id. is valid, I tried it separately to make sure.

Does anyone have any ideas?


Brian