<?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[Regex confusion, is there a tutorial?]]></title><description><![CDATA[<p dir="auto">Folks;</p>
<p dir="auto">I am trying to use "http retriever" to gather data from some CAI Webcontrol boards I have scattered around the ranch monitoring Humidity,temperature, driving my smallish solar tracker, running my chicken coop lights and several other jobs. I see folks mention "it is in the documentation" in several unrelated  threads but, for the life of me, I cannot find any documentation other than videos which don't work for me. :?:</p>
<p dir="auto">I have been logging to flat files and graphing with gnuplot. I thought Mango might be a way to consolidate a pile of scripts and cron jobs but at the rate I am not getting it I probably will toss in the towel. So far I hope to get it working so others can follow along and enhance control and monitoring of their RE systems so even the uninitiated can make sense of it. Luckily it is winter and my task list is light with no outdoor work on the ranch much so I thought I would tackle Mango when it got mentioned over on Midnite Solars' forum.</p>
<p dir="auto">Trying to migrate some of this stuff to Mango.</p>
<p dir="auto">A typical method to grab the values is via a cgi script on the CAI boards:</p>
<pre><code>

wget -q -O- http://192.168.2.223/gett1.cgi|cat|awk '{ print $1'}


</code></pre>
<p dir="auto">This gets me just the number ($1) but the cgi returns a line like this: 90.5 F . This value can be from XXX.X to -XX.x depending on the temperature</p>
<p dir="auto">Just how do I translate these scripts to work with the http retriever? Or gather the data via a script and feed it to Mango? I have tried a bunch of things but none of it actually gets me any numeric values.</p>
<p dir="auto">Currently the regex is "(^\d\d.\d)" but it gives nothing.</p>
<p dir="auto">The value is always the first line and the first string in the page the cgi returns.</p>
<p dir="auto">In particular, I have no clue what this means in the help pop up?</p>
<blockquote></blockquote>
<p dir="auto">This is the text to parse with my value of 1234 embedded in the middle,</p>
<p dir="auto">If the desired value is the "1234", a RegEx pattern that works may be:</p>
<p dir="auto">my value of (.*?) embedded</p>
<p dir="auto">Do I need to include "my value of" in the regex?</p>
<p dir="auto">Frankly, some text based how to documents and examples would be nice but all I seem to find is videos which don't help me so much like being able to read it?  I am fair with awk, sed and the like but never used regex the way Mango seems to.</p>
<p dir="auto">A thoroughly confused newbie running out of ideas.Maybe I am trying to kill a fly with a 12 gauge shotgun using Mango for my application?</p>
<p dir="auto">Tom</p>
]]></description><link>https://forum.mango-os.com/topic/1244/regex-confusion-is-there-a-tutorial</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 01:43:05 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1244.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Jan 2013 23:15:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex confusion, is there a tutorial? on Tue, 28 Jan 2014 23:50:44 GMT]]></title><description><![CDATA[<p dir="auto">If you are referring to regular expressions, malik, you can test them on a number of websites such as <a href="http://regexpal.com/" rel="nofollow ugc">http://regexpal.com/</a></p>
<p dir="auto">A comprehensive guide to regular expressions in Java can be found here: <a href="http://docs.oracle.com/javase/tutorial/essential/regex/" rel="nofollow ugc">http://docs.oracle.com/javase/tutorial/essential/regex/</a></p>
]]></description><link>https://forum.mango-os.com/post/8262</link><guid isPermaLink="true">https://forum.mango-os.com/post/8262</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 28 Jan 2014 23:50:44 GMT</pubDate></item><item><title><![CDATA[Reply to Regex confusion, is there a tutorial? on Fri, 24 Jan 2014 11:14:33 GMT]]></title><description><![CDATA[<p dir="auto">I am trying to use "http retriever" to gather data from some CAI Webcontrol boards I have scattered around the ranch monitoring Humidity,temperature, driving my smallish solar tracker, running my chicken coop lights and several other jobs. I see folks mention "it is in the documentation" in several unrelated threads but, for the life of me, I cannot find any documentation other than videos which don't work for me.</p>
]]></description><link>https://forum.mango-os.com/post/8253</link><guid isPermaLink="true">https://forum.mango-os.com/post/8253</guid><dc:creator><![CDATA[malik66]]></dc:creator><pubDate>Fri, 24 Jan 2014 11:14:33 GMT</pubDate></item><item><title><![CDATA[Reply to Regex confusion, is there a tutorial? on Wed, 23 Jan 2013 22:30:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi Tom,</p>
<p dir="auto">Thanks for your testing of the WebControl board.  I have one in my office and have been meaning to play with it but have not had time as of yet.  I know others that are using Mango without any issue to read data from them but since I haven't tested myself, at this time I can't make any suggestions.  In the future we may produce a data source module specifically designed to communication and control the WebCotrol boards.  Since they use their own unique API this will be the best option.</p>
<p dir="auto">Joel.</p>
]]></description><link>https://forum.mango-os.com/post/7431</link><guid isPermaLink="true">https://forum.mango-os.com/post/7431</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Wed, 23 Jan 2013 22:30:04 GMT</pubDate></item><item><title><![CDATA[Reply to Regex confusion, is there a tutorial? on Wed, 23 Jan 2013 09:48:46 GMT]]></title><description><![CDATA[<p dir="auto">I think I am done with this app. No obvious documentation and not user friendly / intuitive enough for me. It has potential but too steep a learning curve for my hobby level interest.</p>
<p dir="auto">I tried. Back to crond scripts, perl,sed, awk and gnuplot, I guess.</p>
<p dir="auto">Thanks anyway.</p>
<p dir="auto">Tom</p>
]]></description><link>https://forum.mango-os.com/post/7422</link><guid isPermaLink="true">https://forum.mango-os.com/post/7422</guid><dc:creator><![CDATA[TomW]]></dc:creator><pubDate>Wed, 23 Jan 2013 09:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to Regex confusion, is there a tutorial? on Wed, 23 Jan 2013 05:47:22 GMT]]></title><description><![CDATA[<p dir="auto">Tom,</p>
<p dir="auto">I'll ping Joel and this and get you a reply soon</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.mango-os.com/post/7421</link><guid isPermaLink="true">https://forum.mango-os.com/post/7421</guid><dc:creator><![CDATA[stevededrick]]></dc:creator><pubDate>Wed, 23 Jan 2013 05:47:22 GMT</pubDate></item><item><title><![CDATA[Reply to Regex confusion, is there a tutorial? on Tue, 22 Jan 2013 23:33:50 GMT]]></title><description><![CDATA[<p dir="auto">OK, after I posted this the bit in the help pop up made sense. Sort of. Still not sure how to implement it, however.</p>
<p dir="auto">In my case there is nothing before the value I want and "usually" a space followed by an "F"  unless it is humidity data then it is a value followed by a space and a "%".</p>
<p dir="auto">Thanks.</p>
<p dir="auto">Tom</p>
<p dir="auto">edited for typos / spelling</p>
]]></description><link>https://forum.mango-os.com/post/7418</link><guid isPermaLink="true">https://forum.mango-os.com/post/7418</guid><dc:creator><![CDATA[TomW]]></dc:creator><pubDate>Tue, 22 Jan 2013 23:33:50 GMT</pubDate></item></channel></rss>