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: 13:06:17 PST, Wed, Feb 21, 2018)
 Date    
 
 Time
(PST)
 Air
  Temp
(°F)
 Wind
  Speed
(mph)
 Wind
 Direction
 
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
20 February 2018    13:00     9.1    2    E    64    30.4
20 February 2018    14:00     13.5    4    NNE    62    30.4
20 February 2018    15:00     13.3    3    NNE    64    30.4
20 February 2018    16:00     12.4    3    NE    63    30.4
20 February 2018    17:00     15.8    2    N    55    30.4
20 February 2018    18:00     9.5    3    N    69    30.4
20 February 2018    19:00     11.8    7    NNW    70    30.4
20 February 2018    20:00     10.8    4    NNW    69    30.4
20 February 2018    21:00     5.4    4    NNW    73    30.5
20 February 2018    22:00     5.2    3    NNE    72    30.5
20 February 2018    23:00     1.6    5    NNW    78    30.5
21 February 2018    00:00     -2.4    6    NNW    81    30.5
21 February 2018    01:00     -6.3    2    NNW    81    30.5
21 February 2018    02:00     -8.9    calm        85    30.5
21 February 2018    03:00     -8.5    calm        88    30.5
21 February 2018    04:00     -10.3    calm        84    30.5
21 February 2018    05:00     -12.6    calm        82    30.5
21 February 2018    06:00     -13.2    calm        82    30.4
21 February 2018    07:00     -10.5    calm        82    30.4
21 February 2018    08:00     -10.5    calm        81    30.4
21 February 2018    09:00     -7.2    calm        82    30.4
21 February 2018    10:00     -4.2    3    ENE    80    30.4
21 February 2018    11:00     -1.3    2    NE    73    30.4
21 February 2018    12:00     1.8    calm        70    30.4

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