• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: RSS2HTML weather.com.au feed extract
PostPosted: Fri May 04, 2012 7:30 am 
Offline
New Member

Joined: Fri May 04, 2012 7:18 am
Posts: 2
Hi guys,

I'm trying to get a working weather feed for my website: http://203.98.84.170/~ncpdev/index.php?page=rates

So far RSS2HTML with the default template can print out chunks of weather data, but I need specific bits like current temperature, max/min temp for styling - as you can see on the weather box (right).

It seems in the code:

Code:
{foreach from=$rss->items item='item'}
{$item.summary}
{/foreach}

displays:

Code:
<item>
...
<description>
<![CDATA[
<b>Temperature:</b> 13.9&deg;C<br /> <b>Dew Point:</b> 6.3&deg;C<br /> <b>Relative Humidity:</b> 60%<br /> <b>Wind Speed:</b> 11.1km/h<br /> <b>Wind Gusts:</b> 16.7km/h<br /> <b>Wind Direction:</b> WSW<br /> <b>Pressure:</b> 1021.2hPa<br /> <b>Rain Since 9AM:</b> 0.0mm<br />
]]>
</description>

but I need this bit:
Code:
<w:current temperature="13.9" dewPoint="6.3" humidity="60" windSpeed="11.1" windGusts="16.7" windDirection="WSW" pressure="1021.2" rain="0.0"/>

And this:
Code:
<w:forecast day="Friday" description="Mostly Sunny. Cool." min="6" max="16" icon="2" iconUri="http://www.weather.com.au/images/icons/2.gif" iconAlt="Mostly Sunny"/>
<w:forecast day="Saturday" description="Mostly Sunny. Mild." min="6" max="17" icon="2" iconUri="http://www.weather.com.au/images/icons/2.gif" iconAlt="Mostly Sunny"/>
<w:forecast day="Sunday" description="Afternoon Clouds. Cool." min="5" max="17" icon="4" iconUri="http://www.weather.com.au/images/icons/4.gif" iconAlt="Afternoon Clouds"/>

Any help, or working alternatives will be great - thanks!


Top
 Profile  
 
 Post subject: Re: RSS2HTML weather.com.au feed extract
PostPosted: Fri May 04, 2012 7:33 am 
Offline
New Member

Joined: Fri May 04, 2012 7:18 am
Posts: 2
ps: feed is this: http://rss.weather.com.au/vic/numurkah


Top
 Profile  
 
 Post subject: Re: RSS2HTML weather.com.au feed extract
PostPosted: Wed Jun 27, 2012 6:01 pm 
Offline
Forum Members
Forum Members

Joined: Thu Nov 22, 2007 10:41 pm
Posts: 77
Were you able to sort out how to access the values you wanted from the RSS feed?

I'm looking to accomplish the same thing with a different feed with RSS2HTML as well, but have attempted the solutions I've seen posted so far to no avail.

If you did resolve it, could you kindly share the solution?

Thanks!

/Greg


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner