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:
Pemberton Automatic Weather Reporting System  (CWGP)  204 m (669 ft)     50.306° N, 122.734° W     (location info from stored values in internal table)
http://weather.gladstonefamily.net/site/CWGP?showall=1
http://weather.gc.ca/past_conditions/index_e.html?station=wgp

Pemberton Automatic Weather Reporting System  (CWGP)
204 m (669 ft)
50.306° N, 122.734° W
Data provided by: Environment Canada
(As of: 13:38:40 PST, Wed, Nov 14, 2018)
 Date    
 
 Time
(PST)
 Air
  Temp
(°F)
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
13 November 2018    14:00     33.8    100    30.3
13 November 2018    15:00     34.5    100    30.3
13 November 2018    16:00     34.2    100    30.3
13 November 2018    17:00     33.6    100    30.3
13 November 2018    18:00     33.6    100    30.3
13 November 2018    19:00     34.0    100    30.3
13 November 2018    20:00     35.1    100    30.3
13 November 2018    21:00     35.1    100    30.3
13 November 2018    22:00     35.1    100    30.3
13 November 2018    23:00     35.6    100    30.3
14 November 2018    00:00     35.1    100    30.3
14 November 2018    01:00     35.1    100    30.3
14 November 2018    02:00     35.1    100    30.2
14 November 2018    03:00     35.1    100    30.2
14 November 2018    04:00     34.9    100    30.2
14 November 2018    05:00     34.9    100    30.2
14 November 2018    06:00     35.2    100    30.1
14 November 2018    07:00     35.8    100    30.1
14 November 2018    08:00     35.8    100    30.1
14 November 2018    09:00     36.5    100    30.1
14 November 2018    10:00     36.7    100    30.2
14 November 2018    11:00     37.2    100    30.2
14 November 2018    12:00     37.8    100    30.2
14 November 2018    13:00     38.8    99    30.2

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