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: 14:27:13 PDT, Sat, Jun 15, 2019)
 Date    
 
 Time
(PDT)
 Air
  Temp
(°F)
 Wind
  Speed
(mph)
 Wind
 Direction
 
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
14 June 2019    15:00     74.3    6    S    39    30.0
14 June 2019    16:00     75.0    11    S    38    30.0
14 June 2019    17:00     72.1    6    S    43    30.0
14 June 2019    18:00     69.8    6    S    48    30.0
14 June 2019    19:00     66.4    —        56    30.0
14 June 2019    20:00     62.6    —        65    30.0
14 June 2019    21:00     60.1    —        71    30.0
14 June 2019    22:00     58.1    —        77    30.0
14 June 2019    23:00     56.5    —        81    30.0
15 June 2019    00:00     55.4    —        83    30.0
15 June 2019    01:00     54.7    —        84    30.0
15 June 2019    02:00     54.7    —        85    30.0
15 June 2019    03:00     55.2    —        83    30.1
15 June 2019    04:00     55.2    —        82    30.0
15 June 2019    05:00     55.2    —        83    30.1
15 June 2019    06:00     54.3    calm        83    30.1
15 June 2019    07:00     55.2    calm        80    30.1
15 June 2019    08:00     57.2    2    N    76    30.1
15 June 2019    09:00     60.6    2    S    68    30.1
15 June 2019    10:00     64.2    2    SE    61    30.1
15 June 2019    11:00     69.3    calm        53    30.0
15 June 2019    12:00     72.7    calm        45    30.0
15 June 2019    13:00     74.7    5    S    44    30.0
15 June 2019    14:00     77.0    3    SW    40    30.0

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