Author Topic: Environment Canada New Web Site Layout  (Read 8921 times)

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Environment Canada New Web Site Layout
« on: April 24, 2013, 04:22:23 PM »
Hi Jacques,

Environment Canada has changed their Web Site Layout.
I needed to changes several EC scripts to keep them working: successfully.
However, there's one issue with the radar imagery.
The $RawImgURL = 'http://weatheroffice.gc.ca/radar/image.php?base=%s';
Even when I change it to "weather.gc.ca" it doesn't work to show the overlay/City display.

Any idea how to fix this??
Thanks,

Arthur

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Environment Canada New Web Site Layout (Re-send)
« Reply #1 on: May 25, 2013, 12:33:57 PM »
Hi Jacques,

Environment Canada has changed their Web Site Layout.
I needed to changes several EC scripts to keep them working: Earthquake Canada, Weather Advisories.
However, there's one issue with the radar imagery. ('ec-radar.php')
The $RawImgURL = 'http://weatheroffice.gc.ca/radar/image.php?base=%s';
Any selection of City, Rivers, Radar Rings is not displayed correctly (the image shows but none of the layovers)

Any idea how to fix this??
Thanks,

Arthur

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Environment Canada New Web Site Layout
« Reply #2 on: May 25, 2013, 06:40:56 PM »
Hi Arthur,

Long time! For the script, it is a SaratogaWX module,
so check if there is no update on it. This script copy
the page to extract good things; but since you experiment,
if layout change more then a bit, script get fooled.

My copy is not working either.
http://weatherbyyou.com/demo/Weather_blues_v2/ec-radar.php

That is why I was working in datamart directly, but détails miss on it.
http://weatherbyyou.com/demo/Weather_blues_v2/radar_ec.php

Best Regards,
Jacques
« Last Edit: May 25, 2013, 06:45:30 PM by Mr.Meteo »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Environment Canada New Web Site Layout
« Reply #3 on: May 26, 2013, 10:38:00 AM »
Hi Jacques,

Thanks for the reply.
Although my site is slightly 'downgraded' (currently no weather station uploads) the rest of all pages (with many scripts) is still up and running  8)  :)

Ken sent me an update for another script (Earthquake) and I figured out the changes in my Weather Advisories pages, but forgot to look t the radar update...  :-[
Found the 1.09 version, which indicates the EC web changes for radar display.
Will look into it today and see of it works.
I saw on your demo version (the second you displayed) that you do have the City names and other overlays displayed..!!!!!

Cheers,
Arthur

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Environment Canada New Web Site Layout
« Reply #4 on: May 26, 2013, 12:12:41 PM »
Hi Jacques,

After downloading the revised script for EC-radar, it all works out well.

Overlays are correctly displayed.

Your demo page looks great (to have 3 overviews of EC Radar Imagery...)
When will that be released???
I remember you've been working on it for quite some time!!!

Thanks for all your efforts.
GREAT..!!!

Cheers,
Arthur