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:
Whistler  (CWAE)  658 m (2159 ft)     50.129° N, 122.955° W     (location info from stored values in internal table)
http://weather.gladstonefamily.net/site/CWAE?showall=1
http://weather.gc.ca/past_conditions/index_e.html?station=wae

Whistler  (CWAE)
658 m (2159 ft)
50.129° N, 122.955° W
Data provided by: Environment Canada
(As of: 4:42:01 PDT, Wed, Aug 12, 2020)
 Date    
 
 Time
(PDT)
 Air
  Temp
(°F)
 Wind
  Speed
(mph)
 Wind
 Direction
 
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
11 August 2020    05:00     48.2    —        95    29.9
11 August 2020    06:00     47.3    calm        98    29.9
11 August 2020    07:00     48.9    calm        97    29.9
11 August 2020    08:00     52.5    calm        89    29.9
11 August 2020    09:00     56.7    2    S    82    29.9
11 August 2020    10:00     59.5    6    S    71    29.9
11 August 2020    11:00     64.0    3    S    62    29.9
11 August 2020    12:00     66.0    8    S    57    29.9
11 August 2020    13:00     69.6    5    S    48    29.9
11 August 2020    14:00     69.4    3    SW    46    29.9
11 August 2020    15:00     67.5    3    SW    46    29.8
11 August 2020    16:00     65.7    6    S    49    29.8
11 August 2020    17:00     64.4    6    S    52    29.9
11 August 2020    18:00     63.1    3    S    52    29.9
11 August 2020    19:00     61.5    —        55    29.9
11 August 2020    20:00     58.5    —        67    29.9
11 August 2020    21:00     57.0    —        72    29.9
11 August 2020    22:00     55.0    —        77    29.9
11 August 2020    23:00     53.4    —        80    29.9
12 August 2020    00:00     51.6    —        84    29.9
12 August 2020    01:00     49.1    —        86    29.9
12 August 2020    02:00     50.2    —        86    29.9
12 August 2020    03:00     48.9    —        89    29.9
12 August 2020    04:00     48.0    —        88    29.9

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