Page 1 of 1

warningsCA

Posted: Sat Dec 09, 2017 8:48 pm
by Hugh
Screen Shot 2017-12-09 at 4.35.02 PM.png
Screen Shot 2017-12-09 at 4.35.02 PM.png (99.97 KiB) Viewed 6529 times
I am using the warningsCA block. As you can see in the attachment there is currently a warning in my area. The block shows just a generic warning without details.

In the second attachment I show the detailed warning from Environment Canada.

Is it possible to show the detailed warning in the block?

Thanks,

Hugh

Re: warningsCA

Posted: Sun Dec 10, 2017 11:18 am
by Jachym
Hi Hugh,
not sure where your screen comes from, the block uses the XML feed of EC

https://weather.gc.ca/rss/warning/on-118_e.xml

Im afraid the details are not there

Re: warningsCA

Posted: Sat Dec 16, 2017 12:57 am
by BobW55
If you had clicked on the part you have highlighted in red, it should have displayed a screen with the rest of the warning as you showed in your second post.

Re: warningsCA

Posted: Sat Dec 16, 2017 10:11 am
by Jachym
But what I was saying is that if you look at the XML data source:

https://weather.gc.ca/rss/warning/on-118_e.xml

it does not give all these details, thats the issue.

Re: warningsCA

Posted: Mon Jan 29, 2018 10:42 pm
by BlueBear
Sorry for bringing back an old thread but I've been waiting for a current warning for my area

Jachym, I understand that the xml feed from EC doesn't contain the details of any warning but it does contain a link to the page that does. see line 24 of the attached file from the cache directory.

My question, is it possible to have a link in the warning block which would open this in another window something like the "More" button in many other blocks?

Since I can't add a txt file as an attachment I'll just paste it here:
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-ca">

<!--
This is a data file that is meant to be read by RSS readers or aggregators.
See http://www.ec.gc.ca/meteo-weather/defau ... 11703207-1 to learn more about our RSS service.
-->

<title>Carman - Weather Alert - Environment Canada</title>
<link rel="related" href="http://www.weather.gc.ca/warnings/index_e.html" type="text/html"/>
<link rel="self" href="http://www.weather.gc.ca/rss/warning/mb-65_e.xml" type="application/atom+xml"/>
<link rel="alternate" hreflang="fr-ca" href="http://www.meteo.gc.ca/rss/warning/mb-65_f.xml" type="application/atom+xml"/>
<author>
<name>Environment Canada</name>
<uri>http://www.weather.gc.ca</uri>
</author>
<updated>2018-01-29T17:00:00Z</updated>
<id>tag:weather.gc.ca,2013-04-16:20180129170000</id>
<logo>http://www.weather.gc.ca/template/gcweb ... .png</logo>
<icon>http://www.weather.gc.ca/template/gcweb ... .ico</icon>
<rights>Copyright 2018, Environment Canada</rights>
<entry>
<title>BLOWING SNOW ADVISORY IN EFFECT, Carman</title>
<link type="text/html" href="http://www.weather.gc.ca/warnings/report_e.html?mb8"/> This is line 24
<updated>2018-01-29T21:19:00Z</updated>
<published>2018-01-29T21:19:00Z</published>
<category term="Warnings and Watches"/>
<summary type="html">Persons in or near this area should be on the lookout for adverse weather conditions and take necessary safety precautions. Issued: 3:19 PM CST Monday 29 January 2018</summary>
<id>tag:weather.gc.ca,2013-04-16:mb-65_w1:201801292119</id>
</entry>
</feed>