View previous topic :: View next topic |
Author |
Message |
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Mon Nov 28, 2005 8:22 pm Post subject: |
|
|
I just added it to the templates (omitting the "Subscribe to") and replacing your location with the wview tag equivalents. It is running on my site now.
Only thing I don't like is that when you select subscribe to, it just adds it to your bookmarks which just take you to the homepage. Would be nice if it launched the RSS engine and displayed the RSS feed data...
Mark |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Mon Nov 28, 2005 9:12 pm Post subject: |
|
|
That looks like just an oddity of Firefoxs' handling of RSS feeds. It does the same in my Firefox.
In Safari on MacOS X, which has RSS built-in directly to the browser, clicking the resulting RSS icon brings up the correct feed.
It's just an application type mapping so you should be able to set Firefox to use Sage, or an outside application, to open RSS links.
That said, it might be "fixed" in Firefox 1.5 which is due out in the coming days. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Mon Nov 28, 2005 9:16 pm Post subject: |
|
|
Ah...
I see.. if, when you click on the RSS link and "subscribe" you use the dropdown to add it to the "Sage Feeds" folder instead of bookmarks, Firefox will open it as an RSS feed. |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Mon Dec 05, 2005 8:52 am Post subject: |
|
|
Hi
As Firefox can use RSS feeds as live bookmarks (Sage not required) I've been experimenting with defining each measurement as an individual item and the results look pretty useful (to me anyway). Looks not too bad in Sage and Opera too. It'll probably break in IE7
Check out the RSS feed at http://www.scorpiocomputing.com/weather to see what I mean.
A copy and paste of the xtx file follows.
Cheers
Jon
-------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title><!--stationCity--> <!--stationState--> weather</title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<language>en-us</language>
<pubDate><!--stationDate-->,<!--stationTime--></pubDate>
<ttl>1</ttl>
<generator><!--wviewVersion--></generator>
<item>
<title>Time: <!--stationTime-->, <!--stationDate--></title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<pubDate><!--stationTime-->, <!--stationDate--></pubDate>
<guid isPermaLink="true">YOUR_URL_HERE</guid>
<dc:date><!--stationDate--> - <!--stationTime--></dc:date>
<content:encoded><![CDATA[
<p>
Temp: <!--outsideTemp--><!--tempUnit--><br>
Wind Chill: <!--windChill--><!--tempUnit--><br>
Heat Index: <!--outsideHeatIndex--><!--tempUnit--><br>
Humidity: <!--outsideHumidity--><!--humUnit--><br>
Dewpoint: <!--outsideDewPt--><!--tempUnit--><br>
Barometer: <!--barometer--><!--barUnit--><br>
Wind: <!--windDirection--> at <!--windSpeed--><!--windUnit--><br>
Rain Today: <!--dailyRain--><!--rainUnit--><br>
Rain Rate: <!--rainRate--><!--rainUnit--><br>
</p>
]]></content:encoded>
</item>
<item>
<title>Temp: <!--outsideTemp--><!--tempUnit--></title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<pubDate><!--stationTime-->, <!--stationDate--></pubDate>
<guid isPermaLink="true">YOUR_URL_HERE</guid>
<dc:date><!--stationDate--> - <!--stationTime--></dc:date>
</item>
<item>
<title>Wind: <!--windDirection--> at <!--windSpeed--></title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<pubDate><!--stationTime-->, <!--stationDate--></pubDate>
<guid isPermaLink="true">YOUR_URL_HERE</guid>
<dc:date><!--stationDate--> - <!--stationTime--></dc:date>
</item>
<item>
<title>Wind Chill: <!--windChill--><!--tempUnit--></title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<pubDate><!--stationTime-->, <!--stationDate--></pubDate>
<guid isPermaLink="true">YOUR_URL_HERE</guid>
<dc:date><!--stationDate--> - <!--stationTime--></dc:date>
</item>
<item>
<title>Barometer: <!--barometer--><!--barUnit--></title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<pubDate><!--stationTime-->, <!--stationDate--></pubDate>
<guid isPermaLink="true">YOUR_URL_HERE</guid>
<dc:date><!--stationDate--> - <!--stationTime--></dc:date>
</item>
<item>
<title>Rain Today: <!--dailyRain--><!--rainUnit--></title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<pubDate><!--stationTime-->, <!--stationDate--></pubDate>
<guid isPermaLink="true">YOUR_URL_HERE</guid>
<dc:date><!--stationDate--> - <!--stationTime--></dc:date>
</item>
<item>
<title>Humidity: <!--outsideHumidity--><!--humUnit--></title>
<link>YOUR_URL_HERE</link>
<description>Current Weather Conditions</description>
<pubDate><!--stationTime-->, <!--stationDate--></pubDate>
<guid isPermaLink="true">YOUR_URL_HERE</guid>
<dc:date><!--stationDate--> - <!--stationTime--></dc:date>
</item>
</channel>
</rss> |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Mon Dec 05, 2005 10:18 pm Post subject: |
|
|
Safari on the Mac doesn't support those feeds yet. I've run across another site with a feed like that and Safari simply doesn't see it. Bummer. |
|
Back to top |
|
|
|