• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. peppemath
    3. Topics

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 24
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by peppemath

    • P

      Dimensions of "Graphical View editor"

      How-To
      • • • peppemath
      4
      0
      Votes
      4
      Posts
      2.5k
      Views

      P

      @zumiani said:

      Hello peppermath,
      load a background image with desired dimensions.

      FANTASTIC!!!!!!

      Grazie!!!!

    • P

      Ressetting Username and Password

      How-To
      • • • peppemath
      4
      0
      Votes
      4
      Posts
      3.4k
      Views

      K

      if you forgot your password then you have to use the DOS system in this system you can pic your data in to any other disk so it will be safe for you...

    • P

      Meta Data Source HELP

      User help
      • • • peppemath
      17
      0
      Votes
      17
      Posts
      7.0k
      Views

      M

      Glad to hear. Thanks for closing off.

    • P

      Monitoring application/daemon in a remote linux machine

      User help
      • • • peppemath
      12
      0
      Votes
      12
      Posts
      4.9k
      Views

      P

      Hello everyone,
      after some testing and considering that I'm new with java
      to solve my problem I have proceeded as follows:

      MANGO->proxy->agent

      a) I created a html control with a button that makes a local call to a proxy java (proxyProcess) by ajax

      <script language="javascript"> <!-- var myRequest = null; function CreateXmlHttpReq( handler) { alert("create XmllHttpReq"); var xmlhttp = null; xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = handler; return xmlhttp; } function myHandler() { if (myRequest.readyState == 4 && myRequest.status == 200) { alert(myRequest.responseText); } } function sendRequest( operation) { var path = '?process=snmpd&command=' + operation; var urlProxy = 'http://xxx.xxx.xxx.xxx:8080/proxyPROCESS' + path; alert("sendRequest to proxy \n" + urlProxy); try { myRequest = CreateXmlHttpReq(myHandler); myRequest.open( 'GET', urlProxy, true); myRequest.send( null); } catch(e) { alert(e.message); } } --> </script> <input type="button" value="start " onclick="sendRequest('start')" />

      b) I created a servlet (positioned between the servlet Mango) proxyProcess.class that received the request makes a remote call (http://yyy.yyy.yyy.yyy/provaXMango/PROCESSI/processCommands.php?process = "+ param1 + "& command =" + param2) to the server where I want to execute the command

      public class proxyPROCESS extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { String param1 = request.getParameter("process"); String param2 = request.getParameter("command"); URL url = new URL("http://yyy.yyy.yyy.yyy/provaXMango/PROCESSI/processCommands.php?process=" + param1 + "&command=" + param2); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); int code = conn.getResponseCode(); //conn.disconnect(); } catch(MalformedURLException ex) { ex.printStackTrace(); } catch(IOException ioex) { ioex.printStackTrace(); } } }

      c) I created an php agent on the remote server to run command

      <?php $availableProcess = array(); getProcess( $availableProcess); $qs = $_SERVER['QUERY_STRING']; $process = $_GET['process']; $command = $_GET['command']; //comando to execute $completeCommand = "sudo /etc/init.d/" . $process . " " . $command; $tmp = exec( $completeCommand, $outputs, $ret_var); ?>

      To execute commands with www user with sudo, you need to enable the www user to run the desired command in sudoers, for example

      apache yyy.yyy.yyy.yyy=NOPASSWD: /etc/init.d/snmpd

      Everything works correctly!

      Probably this is not the optimal solution, but it works!

      Ciao

    • P

      Setting min/max value of dinamic/analogic graphic

      User help
      • • • peppemath
      2
      0
      Votes
      2
      Posts
      1.7k
      Views

      P

      Ciao

      I have a datasource with 2 point that return a CURRENTvalue and a MAXvalue (and/or MINvalue).
      I have associated to this datasource a dinamic graphich, in particular the CURRENTvalue point.
      Is it possible to set the max value of dinamic graphic with the MAXvalue of datasource?

      Ciao everyone!!!

    • P

      WEBCAM Amalfi

      User help
      • • • peppemath
      4
      0
      Votes
      4
      Posts
      2.6k
      Views

      P

      Thanks
      now is perfect

      with

      URL = http://65.5.172.234/axis-cgi/jpg/image.cgi
      WEBCAM ... = <img src="http://65.5.172.234/axis-cgi/mjpg/video.cgi?camera=&showlength=1&resolution=704x240" id="liveimage" />

      It works perfectly