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  (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  (CYDC)
700 m (2297 ft)
49.468° N, 120.514° W
Data provided by: Environment Canada
(As of: 22:21:23 PDT, Tue, May 22, 2018)
 Date    
 
 Time
(PDT)
 Air
  Temp
(°F)
 Wind
  Speed
(mph)
 Wind
 Direction
 
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
21 May 2018    23:00     54.0    3    NW    56    29.9
22 May 2018    00:00     49.8    2    N    66    30.0
22 May 2018    01:00     49.1    2    WNW    68    30.0
22 May 2018    02:00     46.4    2    W    73    30.0
22 May 2018    03:00     46.0    3    NW    76    30.0
22 May 2018    04:00     42.6    calm        81    30.0
22 May 2018    05:00     42.1    calm        84    30.0
22 May 2018    06:00     42.1    calm        83    30.0
22 May 2018    07:00     46.6    calm        75    30.0
22 May 2018    08:00     50.2    calm        66    30.0
22 May 2018    09:00     54.7    calm        57    30.0
22 May 2018    10:00     60.1    2    N    49    30.0
22 May 2018    11:00     66.6    calm        39    29.9
22 May 2018    12:00     71.6    3    S    35    29.9
22 May 2018    13:00     79.2    3    SSW    27    29.9
22 May 2018    14:00     81.9    2    N    21    29.9
22 May 2018    15:00     84.4    5    ESE    17    29.8
22 May 2018    16:00     85.5    6    SE    17    29.8
22 May 2018    17:00     85.5    3    NNW    17    29.8
22 May 2018    18:00     83.8    6    N    25    29.8
22 May 2018    19:00     83.1    9    WNW    18    29.7
22 May 2018    20:00     79.0    6    NW    23    29.8
22 May 2018    21:00     74.1    6    WNW    28    29.8
22 May 2018    22:00     66.4    2    W    38    29.8

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