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:
Howe Sound - Pam Rocks  (CWAS)  10 m (33 ft)     49.488° N, 123.299° W     (location info from stored values in internal table)
http://weather.gladstonefamily.net/site/CWAS?showall=1
http://weather.gc.ca/past_conditions/index_e.html?station=was

Howe Sound - Pam Rocks  (CWAS)
10 m (33 ft)
49.488° N, 123.299° W
Data provided by: Environment Canada
(As of: 14:15:47 PST, Sun, Feb 18, 2018)
 Date    
 
 Time
(PST)
 Air
  Temp
(°F)
 Wind
  Speed
(mph)
 Wind
 Gust
(mph)
 Wind
 Direction
 
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
17 February 2018    15:00     44.1    14        SSW    80    29.5
17 February 2018    16:00     40.1    13        NNE    90    29.5
17 February 2018    17:00     38.8    17        NNE    91    29.5
17 February 2018    18:00     39.2    14        NNE    92    29.5
17 February 2018    19:00     38.7    25        NNE    92    29.5
17 February 2018    20:00     40.1    23        NNE    84    29.5
17 February 2018    21:00     41.0    36     46    NNE    68    29.5
17 February 2018    22:00     40.1    44     53    NNE    70    29.4
17 February 2018    23:00     37.2    21     48    N    75    29.5
18 February 2018    00:00     32.4    37     48    NNE    96    29.5
18 February 2018    01:00     34.9    30     42    N    87    29.6
18 February 2018    02:00     37.2    45     52    NNE    64    29.6
18 February 2018    03:00     36.9    42     52    NNE    61    29.6
18 February 2018    04:00     36.3    48     59    NNE    53    29.6
18 February 2018    05:00     35.1    44     64    NNE    54    29.6
18 February 2018    06:00     34.2    50     60    NNE    51    29.7
18 February 2018    07:00     33.4    50     62    NNE    51    29.7
18 February 2018    08:00     33.6    49     56    NNE    50    29.8
18 February 2018    09:00     32.9    47     62    NNE    48    29.8
18 February 2018    10:00     32.5    55     62    NNE    51    29.8
18 February 2018    11:00     33.6    51     60    NNE    54    29.9
18 February 2018    12:00     32.7    50     58    NNE    46    29.9
18 February 2018    13:00     32.9    47     58    NNE    46    29.9
18 February 2018    14:00     33.6    45     54    NNE    48    29.9

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