[!FeedX? &url=`http://xoap.weather.com/weather/local/DRXX0009|xq|cc|xe|*|xa|prod|xe|xoap|xa|par|xe|***|xa|key|xe|***|xa|dayf|xe|3` &preset=`weather.com` &debug=`1`!]
Mmmm... weird...
1) Can you post your FeedX call ?
2) are you using the debugger?
Reading the weather.com guide, you have to indicate the day and the part of day.
As you can read, the day has an argument d="1" or d="0", and part has also an
attribute p="n" or p="d"... seems like it is calling everything as it does not know
which one to send...
You also have to tell FeedX and weather.com to have &dayf=2 so the forecast
only includes 2 days... (I think you are already doing this)
THE problem is that I do not know how to access the attributes! The best way will
be to check the debugger to see 1) what and in what order is the feed sending the
forecast info and 2) see the tpl builder to see if it is giving you a way to access the
attributes...
let me know...
.
Just a quick note. You will want to edit your previous post to blank out your partner id and key :-D Or if a moderator can do that, it would be nice. Later tonight I will take a look at what you are trying to do, if you haven’t already figured it out by then.
<dayf>
<lsup>5/7/07 1:36 PM Local Time</lsup>
<day d="0" t="Monday" dt="May 7">
<hi>N/A</hi>
<low>74</low>
<sunr>6:08 AM</sunr>
<suns>7:02 PM</suns>
<part p="d">
<icon>44</icon>
<t>N/A</t>
<wind>
<s>N/A</s>
<gust>N/A</gust>
<d>N/A</d>
<t>N/A</t>
</wind>
<bt>N/A</bt>
<ppcp>40</ppcp>
<hmid>N/A</hmid>
</part>
<part p="n">
<icon>47</icon>
<t>Scattered T-Storms</t>
<wind>
<s>8</s>
<gust>N/A</gust>
<d>85</d>
<t>E</t>
</wind>
<bt>Sct T-Storms</bt>
<ppcp>40</ppcp>
<hmid>90</hmid>
</part>
</day>
<day d="1" t="Tuesday" dt="May 8">
<hi>89</hi>
<low>74</low>
<sunr>6:08 AM</sunr>
<suns>7:03 PM</suns>
<part p="d">
<icon>38</icon>
<t>Scattered T-Storms</t>
<wind>
<s>13</s>
<gust>N/A</gust>
<d>111</d>
<t>ESE</t>
</wind>
<bt>Sct T-Storms</bt>
<ppcp>60</ppcp>
<hmid>79</hmid>
</part>
<part p="n">
<icon>47</icon>
<t>Scattered T-Storms</t>
<wind>
<s>9</s>
<gust>N/A</gust>
<d>85</d>
<t>E</t>
</wind>
<bt>Sct T-Storms</bt>
<ppcp>60</ppcp>
<hmid>88</hmid>
</part>
</day>
In the debugger tree, it appears that the placeholders for [+DAY+] are
[+HI+] [+LOW+] [+SUNR+] [+SUNS+] [+PART.P+] [+PART.1.P+] ...
as you can see, PART.P is d... they are accessing the attribute p="d" and
PART.1.P is n... so...
so probably you can access the day by DAY.D, DAY.1.D, etc...
so by indicating DAY.1.D and PART.1.P you are telling to show the evening forecast for tomorrow!!!
Just thinking out loud... give it a try... I am out of ideas...
. I am not saying that the snippet is not flexible, I am sure it is, I just have not been able to figure out how to output this, and have not been able to find accurate documentation on how to build the templates, so all I’ve done is pretty much guessing, trial and error.{{WEATHER->inner}}{{DAYF->dayf}}<h1>[+DAY.T+]</h1>
{{DAY(1)->firstDay}}
<h1>[+DAY.1.T+]</h1>
{{DAY(1,1)->secondDay}}
<h1>[+DAY.2.T+]</h1>
{{DAY(1,2)->thirdDay}}<p>{{PART(1,1)->part}}<b>High:</b> [+HI+]<br />
<b>Low:</b> [+LOW+]</p><p>{{PART(3,1)->part}}<b>High:</b> [+HI+]<br />
<b>Low:</b> [+LOW+]</p><p>{{PART(5,1)->part}}<b>High:</b> [+HI+]<br />
<b>Low:</b> [+LOW+]</p><img src="http://image.weather.com/web/common/wxicons/52/[+ICON+].gif"/>