<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Http retriever html to regex]]></title><description><![CDATA[<p dir="auto">Hello, I have just finished installing a solar array and need to get my enphase envoy gateway to communicate with mango, here is the html code of the data. All I need is the current watts to put into mango.</p>
<p dir="auto">366a<br />
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;<br />
&lt;html lang="en"&gt;<br />
&lt;!-- START HEAD CONTENT --&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;production&lt;/title&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;<br />
&lt;!-- include style sheet --&gt;<br />
&lt;link rel="styleSheet" type="text/css" href="/include/css/style.css" &gt;<br />
&lt;style type="text/css"&gt;.nav { width: 190px; font-size: 10px; padding: 10px; margin: 10px;float: left; background: #D8DBD4; color: #213d30; border: 2px solid #333; }<br />
.navholder { width: auto; height: auto; float: left; margin: 10px 0px 0 0 }<br />
.tbl_cap { font-size:8pt; background-color:#DD4F05; color:white; border-style:solid; border-width:1px; border-color:white; }<br />
.tbl_bod { font-family:arial; font-size:8pt; color:#213d30; background-color:#D8DBD4; border-style:solid; border-color:white; border-width:1px; }<br />
.tbl_bod_right { font-family:arial; font-size:8pt; color:#213d30; background-color:#D8DBD4; border-style:solid; border-color:white; border-width:1px; text-align:right }<br />
.tbl_hdr { font-size:8pt; background-color:#CCCCCC; border-style:solid; border-width:1px; border-color:white; color:#213d30; }<br />
.clearer { clear: both; font-size: 1px; }<br />
.outer { width: auto; height: auto; padding: 0px; font-size: 10px }<br />
.table1 { width: 100%; margin-left: auto; margin-right: auto;border: 1px solid #CCCCCC }<br />
.table2 { width: 100%;text-align: center;margin-left: auto; margin-right: auto;border: 1px solid #CCCCCC }<br />
.table3 { width: 720px;margin-left: auto; margin-right: auto;border: 1px solid #CCCCCC }<br />
.div_params { height: 190px; width: 380px; overflow: auto;margin-left: auto; margin-right: auto; }<br />
.div_edit_params { height: 230px; width: 470px; overflow: auto;margin-left: auto; margin-right: auto; }<br />
.div_outer_box { width: 720px;margin-left: auto; margin-right: auto;border: 1px solid #FFFFFF }<br />
.txt_expl_center { font-size: 12px; text-align:center;height: auto; border: 1px solid #CCCCCC;margin-top: 5px; margin-left: 5px; margin-right: auto; }<br />
.label_text_right { text-align: right; border: 1px solid #CCCCCC;font-size: 10px; }<br />
.label_text_left { text-align: left; border: 1px solid #CCCCCC;font-size: 10px; }<br />
.label_text_left_alert { text-align: left; color: #7d3020; border: 1px solid #CCCCCC;font-size: 12px; }<br />
.link_cell_right { font-size: 10px;height: auto; border: 1px solid #CCCCCC;text-align: right;margin-top: 5px; margin-left: auto; margin-right: 25px; }<br />
.link_cell_left { font-size: 10px;height: auto; border: 1px solid #CCCCCC;text-align: left;margin-top: 5px; margin-left: 25px; margin-right: auto; }<br />
.link_cell_right_out { font-size: 12px; padding: 15px;height: auto; border: 1px solid #CCCCCC;text-align: right;margin-top: 5px; margin-left: auto; margin-right: 25px; }<br />
.link_cell_left_out { font-size: 12px;height: auto; border: 1px solid #CCCCCC;text-align: left; padding: 15px;margin-top: 5px; margin-left: 25px; margin-right: auto; }<br />
.ns_fldset { height: auto; width: 720px; border: 1px solid #7d3020; background: #CCCCCC; padding: 15px; }<br />
.ns_fldset_inner { border: 1px solid #7d3020; background: #CCCCCC; }<br />
.enp_legend { text-align: left; border: 1px solid #7d3020; background: #FFD401; }<br />
.input_left { border: 1px solid #CCCCCC; text-align: left; }<br />
.grid_config { float: left; margin-left: 50px; width: 830px; text-align: center; }<br />
.swimgnav { width: 160px; height: auto; font-size: 10px; padding: 10px; margin: 10px;float: left; background: #D8DBD4; color: #213d30;border: 2px solid #333; }<br />
.frames { clear: right; width: auto; padding: 15px; height: auto; margin-left: 200px; margin-right: auto; }<br />
.tbl_cap_left { font-size:8pt; background-color:#DD4F05; color:white; border-style:solid; border-width:1px; border-color:white; text-align:left; }<br />
.tbl_cap_center { font-size:8pt; background-color:#DD4F05; color:white; border-style:solid; border-width:1px; border-color:white; text-align:center; }<br />
.tbl_bod_left { font-family:arial; font-size:8pt; color:#213d30; background-color:#D8DBD4; border-style:solid; border-color:white; border-width:1px; text-align:left; }<br />
.tablePaged { float: left;width: 100%;text-align: center;margin-left: auto; margin-right: auto;border: 1px solid #CCCCCC }<br />
.table.dataTable { margin: 0 auto; clear: both; width: 100%; }<br />
.table.dataTable thead th { padding: 3px 18px 3px 10px;border-bottom: 1px solid black;font-weight: bold;cursor: pointer;*cursor: hand; }<br />
.table.dataTable tfoot th { padding: 3px 18px 3px 10px;border-top: 1px solid black;font-weight: bold; }<br />
.table.dataTable td { padding: 3px 10px; }<br />
.table.dataTable td.center, table.dataTable td.dataTables_empty { text-align: center; }<br />
.table.dataTable tr.odd { background-color: #E2E4FF; }<br />
.table.dataTable tr.even { background-color: white; }<br />
.table.dataTable tr.odd td.sorting_1 { background-color: #D3D6FF; }<br />
.table.dataTable tr.odd td.sorting_2 { background-color: #DADCFF; }<br />
.table.dataTable tr.odd td.sorting_3 { background-color: #E0E2FF; }<br />
.table.dataTable tr.even td.sorting_1 { background-color: #EAEBFF; }<br />
.table.dataTable tr.even td.sorting_2 { background-color: #F2F3FF; }<br />
.table.dataTable tr.even td.sorting_3 { background-color: #F9F9FF; }<br />
.dataTables_wrapper { position: relative; clear: both; *zoom: 1; }<br />
.dataTables_length { float: left; }<br />
.dataTables_filter { margin: 0px 0px 2px 0px; float: right; text-align: right; }<br />
.DTTT_button_text { margin: 0px 0px 0px 3px; float: right; text-align: right; }<br />
.dataTables_info { clear: both; float: left; }<br />
.dataTables_paginate { float: right; text-align: right; }<br />
.paging_full_numbers { height: 22px; line-height: 22px; }<br />
.paging_full_numbers a:active { outline: none }<br />
.paging_full_numbers a:hover { text-decoration: none; }<br />
.paging_full_numbers a.paginate_button,.paging_full_numbers a.paginate_active { border: 1px solid #aaa;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;padding: 2px 5px;margin: 0 3px;cursor: pointer;*cursor: hand;color: #333 !important; }<br />
.paging_full_numbers a.paginate_button { background-color: #ddd; }<br />
.paging_full_numbers a.paginate_button:hover { background-color: #ccc;text-decoration: none !important; }<br />
.paging_full_numbers a.paginate_active { background-color: #99B3FF; }<br />
.paging_full_numbers a.paginate_button_disabled { border: 1px solid #aaa;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;padding: 2px 5px;margin: 0 3px;cursor: default;opacity: 0.6;color: gray; }<br />
.dataTables_processing { position: absolute;top: 50%;left: 50%;width: 250px;height: 30px;margin-left: -125px;margin-top: -15px;padding: 14px 0 2px 0;border: 1px solid #ddd;text-align: center;color: #999;font-size: 14px;background-color: white; }<br />
.sorting { padding: 2px 15px;background-clip: padding-box;background-origin: border-box;background-image: url('/images/sort_both.png');background-repeat: no-repeat;background-position: right center;background-color: #DD4F05; }<br />
.sorting_asc { padding: 2px 15px;background-clip: padding-box;background-origin: border-box;background-image: url('/images/sort_asc.png');background-repeat: no-repeat;background-position: right center;background-color: #DD4F05; }<br />
.sorting_desc { padding: 2px 15px;background-clip: padding-box;background-origin: border-box;background-image: url('/images/sort_desc.png');background-repeat: no-repeat;background-position: right center;background-color: #DD4F05; }<br />
.sorting_asc_disabled { padding: 2px 15px;background-clip: padding-box;background-origin: border-box;background-image: url('/images/sort_asc_disabled.png');background-repeat: no-repeat;background-position: right center;background-color: #DD4F05; }<br />
.sorting_desc_disabled { padding: 2px 15px;background-clip: padding-box;background-origin: border-box;background-image: url('/images/sort_desc_disabled.png');background-repeat: no-repeat;background-position: right center;background-color: #DD4F05; }<br />
.table.dataTable th:active { outline: none; }<br />
.p.t_fixed_header_scroll_inner { width: 100%;height: 200px; }<br />
.div.t_fixed_header_scroll_outer { top: 0; left: 0; visibility: hidden; width: 200px; height: 150px; overflow: hidden; }<br />
.div.t_fixed_header { position: relative;margin: 0;width: 100%; }<br />
.div.t_fixed_header * { margin: 0;padding: 0; }<br />
.div.t_fixed_header table.head { position: relative; }<br />
.div.t_fixed_header table { width: 100%;table-layout: fixed;empty-cells: show;border-collapse: collapse;border-spacing: 0; }<br />
.div.t_fixed_header table.headtable td.fillScrollbar { font-size: 0px;-o-text-overflow: inherit;text-overflow: inherit; }<br />
.div.t_fixed_header tr th, div.t_fixed_header tr td { overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis; }<br />
.div.t_fixed_header.t_fixed_header_wrap tr th, div.t_fixed_header.t_fixed_header_wrap tr td { white-space: normal; }<br />
.div.t_fixed_header div.body { overflow-x: auto;padding: 0;width: 100%; }<br />
.div.t_fixed_header_main_wrapper { position: relative;overflow: hidden; }<br />
.div.t_fixed_header_main_wrapper_child { position: relative;width: 100% }<br />
.div.t_fixed_header_main_wrapper.ui { border-width: 1px 1px 1px 1px;border-style: solid;font-weight: normal;font-size: 1.1em; }<br />
.div.t_fixed_header_main_wrapper.ui  div.t_fixed_header_caption { text-align: center;font-weight: bold;padding: 0 5px;height: 30px;line-height: 30px;border-width: 0 0 1px 0;border-style: solid; }<br />
.div.t_fixed_header_main_wrapper.ui  div.t_fixed_header_caption.toggle { border-width: 0; }<br />
.div.t_fixed_header div.headtable { border: 0;overflow-x: hidden;overflow-y: auto; }<br />
.div.t_fixed_header.ui .body { border-width: 1px 0 0 0;border-style: solid;background-image: none; }<br />
.div.t_fixed_header.ui .headtable th { padding: 5px;text-align: center;border-width: 0 1px 0 0;border-style: solid; }<br />
.div.t_fixed_header.ui .headtable .hover { cursor: pointer;height: 16px; }<br />
.div.t_fixed_header.ui .headtable th span.ui-resize { background: transparent;cursor: col-resize;display: inline;float: right;height: 20px;margin: -3px -5px -5px 0;width: 5px;z-index: 10000; }<br />
.div.t_fixed_header.ui div.ui-resize-ghost { display: none;position: absolute;top: 0;width: 2px;border: none; }<br />
.div.t_fixed_header.ui .body tr { border: 0px; }<br />
.div.t_fixed_header.ui .body td { padding: 5px;text-align: left;line-height: 15px; }<br />
.div.t_fixed_header.ui .body tr td { border-width: 0 1px 1px 0;border-style: solid;background: none; }<br />
.div.t_fixed_header.ui .body tr:last-child td { border-bottom-width: 0px; }<br />
.div.t_fixed_header.ui.default .headtable th:last-child, div.t_fixed_header.ui.default .body td:last-child { border-right-width: 0px; }<br />
.div.t_fixed_header.ui .body td.last_td, div.t_fixed_header.ui .headtable th.last_td { border-right-width: 0px; }<br />
.div.t_fixed_header_main_wrapper.ui div.pager { border-width: 0 0 0 0;padding: 4px 2px 2px 3px;overflow: hidden;background-image: none; }<br />
.div.t_fixed_header_main_wrapper.ui div.pager .button { float: right;padding: 4px 0;cursor: pointer; }<br />
.div.t_fixed_header_main_wrapper.ui div.pager .button.noborder { border-right-width : 0px; }<br />
.div.t_fixed_header_main_wrapper.ui div.pager .button span { margin: 0 4px; }<br />
.div.t_fixed_header_main_wrapper.ui div.pager div.page_infos { height: 27px;line-height: 27px;float: right;margin-right: 10px;font-weight: normal; }<br />
&lt;/style&gt;<br />
&lt;!-- include JS libraries --&gt;<br />
&lt;script type="text/JavaScript"&gt;<br />
&lt;!--<br />
function refreshPage(period) {<br />
setTimeout("document.forms['tpm_status'].submit()", period);<br />
}<br />
//   --&gt;<br />
&lt;/script&gt;</p>
<pre><code>&lt;/head&gt;
&lt;!-- END HEAD CONTENT --&gt;
  &lt;body&gt;
&lt;!-- START TOP NAV CONTENT --&gt;
  &lt;form action="/production" method="post"&gt;
  &lt;div class="nav_header"&gt;
  &lt;input type="hidden" name="fname" value="nav_header" &gt;
  &lt;input type="hidden" name="profile" value="0" &gt;
  &lt;input type="hidden" name="regSpec" value="0" &gt;
  &lt;input type="hidden" name="country" value="0" &gt;
  &lt;input type="hidden" name="regSpecName" value="" &gt;
  &lt;input type="hidden" name="profileName" value="" &gt;
  &lt;table width="100%" style="border-style:none;"&gt;
    &lt;tr&gt;
      &lt;td class="hdr_line" valign="middle"&gt;
          &lt;a href="http://enphase.com/en/" title="Visit the Enphase Energy website"&gt;
          &lt;img src="/images/enphase-logo.png"
          style="background:white; text-align:left; height:50px;"
          alt="Enphase Energy, Inc."&gt;
          &lt;/a&gt;
          &lt;/td&gt;
      &lt;td class="hdr_line" valign="middle" colspan="4"&gt;Envoy Serial Number: 121329011145&lt;/td&gt;
      &lt;td class="hdr_line" valign="middle"&gt;
          &lt;a href="http://enlighten.enphaseenergy.com?locale=en" title="Visit the Enlighten website"&gt;
          &lt;img src="/images/enlighten_logo.png"
          style="background:white; text-align:right; height:40px;"
          alt="Enlighten website"&gt;
          &lt;/a&gt;
          &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="hdr_line"&gt;&lt;a href="/home?locale=en"&gt;Home&lt;/a&gt;&lt;/td&gt;
      &lt;td class="hdr_line"&gt;&lt;a href="/event?locale=en"&gt;Events&lt;/a&gt;&lt;/td&gt;
      &lt;td class="hdr_line"&gt;&lt;a id="nav_header_production" href="/production?locale=en"&gt;Production&lt;/a&gt;&lt;/td&gt;           
      &lt;td class="hdr_line"&gt;&lt;a id="nav_header_inventory" href="/inventory?locale=en"&gt;Inventory&lt;/a&gt;&lt;/td&gt;
      &lt;td class="hdr_line"&gt;&lt;a id="nav_header_admin" href="/admin/home?locale=en"&gt;Administration&lt;/a&gt;&lt;/td&gt;
      &lt;td class="hdr_line"&gt;&lt;/td&gt;
      &lt;td class="hdr_line" align="left"&gt;Language
        &lt;select id="locale" name="locale" onchange="this.form.submit()"&gt;               &lt;option value="it"&gt;italiano&lt;/option&gt;&lt;option value="de"&gt;Deutsch&lt;/option&gt;&lt;option value="fr"&gt;franÃ§ais&lt;/option&gt;&lt;option value="es"&gt;EspaÃ±ol&lt;/option&gt;&lt;option value="en" selected="selected" &gt;English&lt;/option&gt;
        &lt;/select&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  &lt;HR&gt;
&lt;!-- END TOP NAV CONTENT --&gt;
&lt;!-- START MAIN PAGE CONTENT --&gt;
</code></pre>
<p dir="auto">1e2<br />
&lt;h1&gt;System Energy Production&lt;/h1&gt;<br />
&lt;div style="margin-right: auto; margin-left: auto;"&gt;&lt;table&gt;<br />
&lt;tr&gt;&lt;td colspan="3"&gt;System has been live since<br />
&lt;div class=good&gt;Fri Jan 10, 2014 10:14 AM EST&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Currently&lt;/td&gt;    &lt;td&gt;    0 W&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Today&lt;/td&gt;     &lt;td&gt; 8.11 kWh&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Past Week&lt;/td&gt;    &lt;td&gt; 26.9 kWh&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Since Installation&lt;/td&gt;    &lt;td&gt; 26.9 kWh&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;&lt;br&gt;&lt;/div&gt;</p>
<p dir="auto">187<br />
&lt;!-- END MAIN PAGE CONTENT --&gt;<br />
&lt;!-- START BOTTOM NAV CONTENT --&gt;<br />
&lt;HR&gt;<br />
&lt;div style="margin-left: auto; margin-right:auto; width: 100%; text-align: center; "&gt;<br />
© 2007-2012, [e] Enphase Energy, Inc. All rights reserved. |<br />
&lt;a href="<a href="http://www.enphaseenergy.com/licenses" rel="nofollow ugc">http://www.enphaseenergy.com/licenses</a>"&gt;Licenses&lt;/a&gt;<br />
&lt;!-- END BOTTOM NAV CONTENT --&gt;<br />
&lt;br&gt;&lt;br&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p dir="auto">0</p>
]]></description><link>https://forum.mango-os.com/topic/1466/http-retriever-html-to-regex</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 14:16:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1466.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Jan 2014 04:27:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Http retriever html to regex on Mon, 25 Aug 2014 05:59:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I am just starting out with Mango Automation. My hardware is Spark Core (<a href="http://spark.io" rel="nofollow ugc">spark.io</a>).<br />
I am trying to use HTTP Retriever to get sensor values exposed through spark API.<br />
I am having similar trouble with parsing the html response with regex. I haven't been able to replicate the results that worked at <a href="http://regexpal.com" rel="nofollow ugc">regexpal.com</a>. Any help with this would be very much appreciated. Thanks!</p>
<p dir="auto">My response looks like:</p>
<p dir="auto">{<br />
"cmd": "VarReturn",<br />
"name": "Outlet4State",<br />
"result": 0,<br />
"coreInfo": {<br />
"last_app": "",<br />
"last_heard": "2014-08-25T00:55:52.299Z",<br />
"connected": true,<br />
"deviceID": "xx"<br />
}<br />
}</p>
<p dir="auto">All I care about now is the binary output "result"</p>
]]></description><link>https://forum.mango-os.com/post/9149</link><guid isPermaLink="true">https://forum.mango-os.com/post/9149</guid><dc:creator><![CDATA[rahil]]></dc:creator><pubDate>Mon, 25 Aug 2014 05:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to Http retriever html to regex on Mon, 13 Jan 2014 22:52:12 GMT]]></title><description><![CDATA[<ol>
<li>Point the HTTP retriever URL to your page</li>
<li>Create a Numeric point with value regex: Currently.<em>?(\d+.?\d</em>)</li>
<li>Sit back, relax, and enjoy the sunshine.</li>
</ol>
]]></description><link>https://forum.mango-os.com/post/8236</link><guid isPermaLink="true">https://forum.mango-os.com/post/8236</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 13 Jan 2014 22:52:12 GMT</pubDate></item></channel></rss>