Give this pattern a go:
Code:
Pattern1=(?s)instantaneous value: .*? (.*?)
If this is your first visit, be sure to check out the FAQ. You must register before you can post.
IMPORTANT: Your first post will be checked for appropriate content. This may take a bit of time.
<html><head><title>XW-110</title><style type="text/css"> * { margin: 0px; padding: 0px; } .main { padding: 5px 5px 5px 5px; background-color: #737BA0;border-radius: 4px;-webkit-border-radius: 4px;-moz-border-radius: 4px; } div.left { width: auto; float: left; padding: 5px; } div.main { width: auto; float: left; padding: 10px; margin: 14px; border: solid 1px black; } span.left { float: left; display: block; text-align: right; width: 8em; } span.right { float: left; display: block; text-align: left; } table { background: #929dcc; border-style: solid; border-width: 0px 1px 1px 0px; border-color: #000; font: 14px verdana, arial, sans-serif; color: #fff;width: 352px; } td { padding: 5px 10px 5px 10px; text-align: left; background: #484e65; border-style: solid; border-width: 1px 0px 0px 1px; border-color: #000; } td.header {padding: 10px 30px 10px 30px;text-align: center;background: #f8f8f8;font: bold 20px verdana, arial, sans-serif;color: #484e65 !important; } td.center { text-align: center; } input { padding: 2px 8px 2px 8px; } </style><script type="text/javascript">var rID=null;function gId(a){return document.getElementById(a)}function refresh(a){var b=(new Date).getTime(),c="state.xml";ajaxRequest(a?c+"?"+a+"&updtTemp=1&time="+b:c+"?updtTemp=1&time="+b)}function resetRefresh(){rID&&clearTimeout(rID);rID=setTimeout("refresh()",3E3)}function ajaxRequest(a){if(ax="Microsoft Internet Explorer"==navigator.appName?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest){ax.onreadystatechange=ajaxRequestFinished;try{ax.open("GET",a,!0),ax.send(null)}catch(b){}}}function ajaxRequestFinished(){switch(ax.readyState){case 4:resetRefresh(),updateStatus()}}function fV(a){var b="<"+a+">";a="</"+a+">";index=ax.responseText.indexOf(b);startindex=index+b.length;endindex=ax.responseText.indexOf(a);return ax.responseText.slice(startindex,endindex)}function updateStatus(){var a,b;a=fV("sensor1");b=gId("sv1");a="C"==fV("units")?a+" °C":a+" °F";b.innerHTML=a;a=fV("s1Alrm");"0"!=a?(b.style.backgroundColor="rgb(255, 0, 0)",b.style.color="rgb(255, 255, 255)"):(b.style.backgroundColor="",b.style.color="");a=fV("battery");b=gId("sv2");"External"===fV("powersource")?(b.innerHTML="External",b.style.backgroundColor="",b.style.color=""):15>=a?(b.innerHTML=a+" %",b.style.backgroundColor="rgb(255, 0, 0)",b.style.color="rgb(255, 255, 255)"):(b.innerHTML=a+" %",b.style.backgroundColor="",b.style.color="")}function init(){refresh()};</script></head><body onload="javascript:init()"><div class="main"><div class="left"><table id="t0"><tbody><tr><td class="header" id="hd">XW-110</td></tr></tbody></table></div><div style="clear: both;"></div><div class="left" id="d1"><table id="t1"><tbody><tr id="s1"><td>Temperature</td><td id="sv1" style="color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);">13.0 °C</td></tr><tr id="s2"><td>Battery</td><td id="sv2">External</td></tr></tbody></table></div><div class="left" id="d2"></div><div style="clear: both;"></div><div class="left" id="d3"></div><div style="clear: both;"></div></div></body></html>
<td id="sv1" style="background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);">13.0 °C</td>
Pattern1= (?s) <td id="sv1" style="background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);">(.*?)</td>
Dec-06 1:04:29 PM | Error | Loading script C:\Program Files (x86)\HomeSeer HS3\scripts\jon00_test.vben :File not found: C:\Program Files (x86)\HomeSeer HS3\scripts\jon00_test.vben |
Dec-06 1:04:29 PM | Error | Reading script: C:\Program Files (x86)\HomeSeer HS3\scripts\jon00_test.vben Script does not appear to be encrypted properly. |
Comment