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: 8:49:56 PST, Sat, Feb 23, 2019)
 Date    
 
 Time
(PST)
 Air
  Temp
(°F)
 Rel
 Humid
(%)
 Sea Level
 Pressure
(in Hg)
22 February 2019    09:00     29.5    98    29.9
22 February 2019    10:00     30.6    97    29.9
22 February 2019    11:00     31.3    96    29.9
22 February 2019    12:00     31.5    94    29.9
22 February 2019    13:00     32.7    93    29.8
22 February 2019    14:00     32.4    90    29.8
22 February 2019    15:00     38.7    71    29.8
22 February 2019    16:00     37.8    73    29.8
22 February 2019    17:00     29.3    93    29.9
22 February 2019    18:00     26.8    99    29.9
22 February 2019    19:00     24.4    100    29.9
22 February 2019    20:00     24.6    99    29.9
22 February 2019    21:00     26.1    100    29.9
22 February 2019    22:00     26.6    100    30.0
22 February 2019    23:00     26.8    99    30.0
23 February 2019    00:00     27.1    99    30.0
23 February 2019    01:00     26.8    99    30.0
23 February 2019    02:00     26.8    98    30.0
23 February 2019    03:00     26.2    98    30.0
23 February 2019    04:00     25.9    99    30.1
23 February 2019    05:00     25.9    98    30.1
23 February 2019    06:00     25.5    98    30.1
23 February 2019    07:00     25.5    99    30.1
23 February 2019    08:00     26.6    99    30.1

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