Its actually a line of text.
I am getting the data like this...
<?php
$url = 'http://www.thesite.com';
$handle = fopen($url, "r"); $contents = file_get_contents($url);
fclose($handle);
$hrs_pattern = "/HR[ ]*([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,})/";
$tmp_pattern = "/TMP[ ]*([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,})/";
$dew_pattern = "/DPT[ ]*([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,})/";
$wdr_pattern = "/WDR[ ]*([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,})/";
$wsp_pattern = "/WSP[ ]*([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,}) ([0-9]{2,})/";
preg_match($hrs_pattern, $contents, $hours);
preg_match($tmp_pattern, $contents, $temps);
preg_match($dew_pattern, $contents, $dews);
preg_match($wdr_pattern, $contents, $wdirs);
preg_match($wsp_pattern, $contents, $wspds);
The site allows data gathering.
if the temps are less than 100 everthing works fine... but one number over 99 and my charts go whacky.