GetEC.php
This PHP script grabs data for any Environment Canada site and formats it to roughly match the MesoWest data from GetMesoWest.php and the SNOTEL data from GetSNOTEL.php.
Data provided by Environment Canada   https://weather.gc.ca
PHP script by Amar Andalkar, January 2016   (current version 1.1 of 12 Mar 2016)   http://www.skimountaineer.com/

Search for a Site by Station ID:   (Enter a full Station ID, 4 characters only, case-insensitive)        
Number of Days: (Limit: 365 if logged in, or only 1 if not logged in)     End Date: (Format: yyyy-mm-dd, or current date/time if blank)     Show hidden data columns    
Plain Version (just the data table)     Smaller Font     Fixed-Width Font     Table Border     Table Dividers (between days or months)     Table Cell Padding: (if blank, then 0 if plain, 1 otherwise)            
Site Info, Location:
Site Location Info Page:
Full URL for Data Shown Below:
Princeton Airport , Canada (site inactive)  (CYDC)  700 m (2297 ft)     49.4683° N, 120.5143° W     (location info grabbed from http://weather.gladstonefamily.net/site/CYDC?showall=1)
http://weather.gladstonefamily.net/site/CYDC?showall=1
http://weather.gc.ca/past_conditions/index_e.html?station=ydc

Princeton Airport (site inactive)  (CYDC)
700 m (2297 ft)
49.468° N, 120.514° W
Data provided by: Environment Canada
(As of: 15:29:39 PST, Fri, Feb 22, 2019)
 Date    
 
 Time
(PST)
 Air
  Temp
(°F)
 Wind
  Speed
(mph)
 Wind
 Direction
 
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
21 February 2019    16:00     29.7    6    N    50    30.1
21 February 2019    17:00     25.2    5    NW    59    30.1
21 February 2019    18:00     23.4    7    NW    66    30.1
21 February 2019    19:00     20.1    4    NW    68    30.1
21 February 2019    20:00     17.6    calm        77    30.1
21 February 2019    21:00     15.8    calm        82    30.1
21 February 2019    22:00     15.3    calm        83    30.1
21 February 2019    23:00     14.5    calm        83    30.1
22 February 2019    00:00     15.4    calm        84    30.1
22 February 2019    01:00     16.0    calm        84    30.0
22 February 2019    02:00     16.3    calm        83    30.0
22 February 2019    03:00     15.6    calm        83    30.0
22 February 2019    04:00     16.3    calm        85    30.0
22 February 2019    05:00     14.4    calm        84    30.0
22 February 2019    06:00     14.5    3    W    86    30.0
22 February 2019    07:00     14.7    calm        85    30.0
22 February 2019    08:00     15.1    calm        84    30.0
22 February 2019    09:00     16.7    2    N    82    30.0
22 February 2019    10:00     18.9    2    ENE    77    29.9
22 February 2019    11:00     24.1    calm        68    29.9
22 February 2019    12:00     24.4    3    NE    68    29.9
22 February 2019    13:00     28.4    2    N    61    29.8
22 February 2019    14:00     28.4    calm        61    29.8
22 February 2019    15:00     28.4    9    E    65    29.8

Run time: 0.967 seconds
Requested data: 24 rows, columns, values
Received data: rows