• T
    TomW

    Folks;

    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. :?:

    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.

    Trying to migrate some of this stuff to Mango.

    A typical method to grab the values is via a cgi script on the CAI boards:

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

    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

    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.

    Currently the regex is "(^\d\d.\d)" but it gives nothing.

    The value is always the first line and the first string in the page the cgi returns.

    In particular, I have no clue what this means in the help pop up?

    This is the text to parse with my value of 1234 embedded in the middle,

    If the desired value is the "1234", a RegEx pattern that works may be:

    my value of (.*?) embedded

    Do I need to include "my value of" in the regex?

    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.

    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?

    Tom

    posted in Hardware read more
  • T
    TomW

    I am trying to import data from a smallish cluster of CAI Webcontrol boards. I can get this data via a wget script url an url to a cgi script on the CAI boards. So I downloaded the newest HTTP module and stuck the file in the web/modules directory. Perhaps I don't need this module to use a local script to gather numeric data via wget?

    This seems to have broken the "help" icons? I get this error:

    
        Document file not found: web/WEB-INF/dox/welcomeToMango.htm  
    
    

    I see lots of files in /opt/mango/web/WEB-INF/, including "welcomeToMango.htm" so I am not sure what has happened or why?

    They seemed to work before I added the HTTP module? I removed the http directory thinking it was the problem but after a restart still does not work.

    Any ideas on this?

    Thanks.

    Tom

    posted in User help read more
  • T
    TomW

    Good morning folks;

    First post here so here it goes. No laughing, please! :D

    As a test I got Mango to run on my daily driver laptop with Ubuntu 11.10 on it.

    Was pretty straight forward. Downloaded the app and a couple modules, unpacked the core file, copied the modules into the right place and fired it up, after changing a conflicting port assignment on tomcat.

    It ran all day yesterday and seemed fine.

    I could not get it running on an Archlinux Pi due to a jdk dependency issue from a missing package on the repository (sqlite). I abandoned that effort and wrote a fresh Raspbian "Wheezy" to a fresh SD card for my #1 Pi. Mango installed fine as it did on the Archlinux Pi. I fired it off with the start script and it has not errored but is still loading after 10 minutes or so. Not sure if it is hung up or what but it has not bailed out. I just killed and restarted it after 45 minutes it gets hung up at this line, apparently permanently:

    INFO 2013-01-18 11:30:33,706 (com.serotonin.util.properties.ReloadingProperties.checkForReload:142) - (dglux) Found updated file(s) at [/home/tomw/Mango/web/modules/dglux/classes/dglux.properties]. Reloading properties

    So, what brands of Linux are folks using with Mango on the Pi?

    Getting it fired up on my laptop has me believing it is a simple issue on the Pi releases I am using.

    Thanks for any info. I am very interested in getting Mango running on a Pi to monitor my Midnite Solar Classic MPPT Controller.

    Tom

    posted in Mango Automation Installation read more
  • T
    TomW

    @jkonoth said:

    Thnank you very much for the prompt reply.Would be extremely greateful if you could provide specific directions to the online documentation
    Regards and Thanks Jkonoth

    I think by "online documentation" they mean the help in Mango you can get by clicking the "?" in the config pages?

    I never saw or found an online (spelled on the internet) set of documents.

    Just my experience and I asked several times for documentation and got the same response.

    Good luck with it.

    Tom

    posted in How-To read more
  • T
    TomW

    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.

    I tried. Back to crond scripts, perl,sed, awk and gnuplot, I guess.

    Thanks anyway.

    Tom

    posted in Hardware read more
  • T
    TomW

    OK, after I posted this the bit in the help pop up made sense. Sort of. Still not sure how to implement it, however.

    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 "%".

    Thanks.

    Tom

    edited for typos / spelling

    posted in Hardware read more
  • T
    TomW

    Folks;

    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. :?:

    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.

    Trying to migrate some of this stuff to Mango.

    A typical method to grab the values is via a cgi script on the CAI boards:

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

    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

    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.

    Currently the regex is "(^\d\d.\d)" but it gives nothing.

    The value is always the first line and the first string in the page the cgi returns.

    In particular, I have no clue what this means in the help pop up?

    This is the text to parse with my value of 1234 embedded in the middle,

    If the desired value is the "1234", a RegEx pattern that works may be:

    my value of (.*?) embedded

    Do I need to include "my value of" in the regex?

    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.

    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?

    Tom

    posted in Hardware read more
  • T
    TomW

    OK switching to the mango directory and starting seems to have cured it. Will edit the ma-start.sh later.

    Thanks.

    Tom

    posted in User help read more
  • T
    TomW

    I am trying to import data from a smallish cluster of CAI Webcontrol boards. I can get this data via a wget script url an url to a cgi script on the CAI boards. So I downloaded the newest HTTP module and stuck the file in the web/modules directory. Perhaps I don't need this module to use a local script to gather numeric data via wget?

    This seems to have broken the "help" icons? I get this error:

    
        Document file not found: web/WEB-INF/dox/welcomeToMango.htm  
    
    

    I see lots of files in /opt/mango/web/WEB-INF/, including "welcomeToMango.htm" so I am not sure what has happened or why?

    They seemed to work before I added the HTTP module? I removed the http directory thinking it was the problem but after a restart still does not work.

    Any ideas on this?

    Thanks.

    Tom

    posted in User help read more
  • T
    TomW

    Steve;

    I have been looking at those videos you linked.

    They are helping me sort it out. I am trying to import data from a smallish cluster of CAI Webcontrol boards. I can get this data via a wget script and an url to a cgi script on the CAI boards. So I downloaded the newest HTTP module and stuck the file in the web/modules directory. Perhaps I don't need this module to use a local script to gather numeric data via wget?

    This seems to have broken the "help" icons? I get this error:

    
    
    Document file not found: web/WEB-INF/dox/welcomeToMango.htm
    
    
    

    I see lots of files in /opt/mango/web/WEB-INF/, including "welcomeToMango.htm" so I am not sure what has happened or why?

    They seemed to work before I added the HTTP module? I removed the http directory thinking it was the problem but after a restart still does not work.

    Any ideas on this?

    Thanks.

    Tom

    P.S.

    This problem was solved in this thread:

    http://forum.infiniteautomation.com/forum/posts/list/1389.page

    Tom

    posted in Mango Automation Installation read more