Author Topic: Environment Canada website changed.. ec-forecast.php 3.01 being updated...  (Read 1715 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
I've received notes from several folks in Canada about the recent change (today) to the Environment Canada forecast website.

Yes, I know the current script is broken.. I'm in the process of preparing an update to the script which should be available later today.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #1 on: December 14, 2015, 01:53:09 PM »
Hi Ken,
Sorry to tag on to an old thread but, is it EC that has made changes yet again? http://www.komokaweather.com/komokaweather-ca/wxforecast.php
I have checked a couple other Canadian sites and while they do not show the error message, the forecast is not showing correctly http://dw7240.com//Base-Canada/wxforecast.php.
 
Regards,
Paul

Offline linuxfreak

  • Hamilton Central Mountain Weather
  • Senior Contributor
  • ****
  • Posts: 188
  • Wink, wink!
    • Hamilton Central Mountain Weather
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #2 on: December 14, 2015, 02:34:48 PM »
From Ken:

Quote
Sigh... yes, they changed the website to use chunked+gzip returns where it was only gzipped.

On it...

 =D> ;)

George
George
Davis VP2/FARS, VVP, WD, WL, WSWin, Cumulus, NexStorm, StrikeStar, NSLog, XPort(GPS), WASP2, DigitalAtmosphere, ScannerCast(WUradio), Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3  #-o
CWOP - DW3112, PWS & WU - IONHAMIL2, AWEKAS - 5112, COWN, WML - WD01901

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Environment Canada website changed.. ec-forecast.php 3.04 is now available
« Reply #3 on: December 14, 2015, 03:49:37 PM »
Ok, got it fixed with a 3.04 update to handle the chunked+gzipped response from Environment Canada website.  They previously only used a gzipped response but decided the compressed output needed chunking too.  Go figure...

Standalone users: download from the script page
Saratoga template users: use the update tool page with a query of Base-Canada, Plugin-*, 14-Dec-2015

Best regards,
Ken

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline chrisgrainger

  • Contributor
  • ***
  • Posts: 122
    • Top of The Rideau
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #4 on: December 14, 2015, 04:27:45 PM »
Ken,

Thanks very much.  Updated and installed and lo and behold, there is a forecast. 

Cheers!

Chris

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #5 on: December 14, 2015, 05:01:58 PM »
Thanks Ken, very much appreciated.
 
Now on to my alternate where I have several broken EC links.  Hopefully, like a time before it will fix itself...
 
Regards,
Paul

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #6 on: December 14, 2015, 05:42:42 PM »
If the EC persists in offering responses with both chunked and gzipped format, then only the 3.04 version will work.  If they drop the chunking (and keep to gzipped only), then the V3.03 will work again.  V3.04 will handle either case :)
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline weathergirl

  • Forecaster
  • *****
  • Posts: 677
    • Beamsville Weather Station
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #7 on: December 14, 2015, 06:40:03 PM »
Thanks for the new script Ken, it's working well!
Ann-Marie
Beamsville, Ontario, Canada

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #8 on: December 16, 2015, 06:10:06 PM »
Time for an update to V3.05 of ec-forecast.php -- the EC changed the verbiage about temperature forecasts, so the update is needed to display the temps..

Standalone users: download from the script page
Saratoga template users: use the update tool page with a query of Base-Canada, Plugin-*, 16-Dec-2015

Best regards,
Ken
« Last Edit: December 16, 2015, 06:13:22 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline DW7240

  • Senior Contributor
  • ****
  • Posts: 225
    • The Vicarage Weather Feed
Re: Environment Canada website changed.. ec-forecast.php 3.01 being updated...
« Reply #9 on: December 16, 2015, 07:14:36 PM »
Thank you Ken, as always, you keep us all going and so we continue to use your scripts - tried and tested, and always best !

Nick. dw7240.com.


 

anything