everyone thanks for your help on this, I learned some regex troubleshooting from this thread thanks to all the replies. So it looks like it wasn't able to find the temperature number because the method that regex is scraping with needs to be authenticated via a pin. I am using ecobee's api and you need to register all browsers with a pin that way it is able to communicate with the API. I registered the google chrome and IE browser with the api assuming the scrape method was using those browsers to scrape, but no luck.
i am still unable to get the scrape method to register. By using the REGex tool i was able to see that it was requiring a registration. darn it ! looks like this isnt going to work unless there is a way to force regex tool to use IE or Chrome to scrape if this makes sense.
below is what is showing when using regex tool tp scrape the localhost site: In order to get this to work i need to hit the complete link once i register the PIN with the API.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ecobee API Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<style type="text/css">
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin, .pin {
max-width: 330px;
padding: 20px;
margin: 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form-signin input[type="text"],
.form-signin input[type="password"] {
font-size: 16px;
height: auto;
margin-bottom: 15px;
padding: 7px 9px;
width:305px;
}
.btn {
margin:0 auto;
}
.pin {
text-align:center;
}
fieldset {
text-align:center;
}
</style>
<link rel='stylesheet' href='/css/bootstrap.min.css' />
<link rel='stylesheet' href='/css/bootstrap-responsive.min.css' />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type='text/javascript' src='/js/bootstrap.min.js' > </script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/thermostats">Ecobee API Demo</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="/login">Get Pin</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<h2>Step 1</h2>
<p>Go to your ecobee portal under the settings tab and add this application using the pin code below</p>
<div class="pin">
<p class="lead">pin code: [color=red][i][b]4_DIGIT_PINCODE_WAS_HERE[/b][/i][/color]</p>
</div>
<h2>Step 2</h2>
<p>Once you have authorized this app to have access to your account you may log in by clicking the Complete Link button below.</p>
<form class="form-signin" action="/login" method="POST">
<fieldset>
<input name="authcode" type="hidden" value="[color=red][i][b]AUTHCODE_WASHERE[/b][/i][/color]" />
<button class="btn" type="submit" data-loading-text="waiting 30 seconds">Complete Link</button>
</fieldset>
</form>
</div> <!-- /container -->
</body>
</html>