warningsCA

Post Reply
Hugh
Newbie
Newbie
Posts: 7
Joined: Sun Aug 20, 2017 4:57 pm
Location: Flowers Cove, New Brunswick, Canada
Station model: Davis Pro 2
Software: WeatherCat
Contact:

warningsCA

Post by Hugh » Sat Dec 09, 2017 8:48 pm

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 6280 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
Attachments
Screen Shot 2017-12-09 at 4.36.10 PM.png
Screen Shot 2017-12-09 at 4.36.10 PM.png (214.16 KiB) Viewed 6280 times

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: warningsCA

Post by Jachym » Sun Dec 10, 2017 11:18 am

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

User avatar
BobW55
Forecaster
Forecaster
Posts: 115
Joined: Thu Sep 28, 2017 11:43 pm
Location: Michigan USA
Station model: Davis Pro2
Software: Cumulus
Contact:

Re: warningsCA

Post by BobW55 » Sat Dec 16, 2017 12:57 am

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.
http://melvinweather.com/template/indexDesktop.php
Davis Vantage Pro2 wired
Solar/UV sensors
Sky Cam
Ham radio K8pos

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: warningsCA

Post by Jachym » Sat Dec 16, 2017 10:11 am

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.

BlueBear
Forecaster
Forecaster
Posts: 101
Joined: Sun Aug 20, 2017 1:04 pm
Location: Sanford, Manitoba, Canada
Station model: Davis VP2
Software: WeeWx
Contact:

Re: warningsCA

Post by BlueBear » Mon Jan 29, 2018 10:42 pm

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>

Post Reply