• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Pikey4
    3. Best

    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 1
    • Followers 0
    • Topics 29
    • Posts 64
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by Pikey4

    • RE: Meta Point Help

      Thanks for helping out @CraigWeb @phildunlap @Jared-Wiltshire ,

      I couldn't get it to work with a Persistent TCP data on central server, so set up on an ES on Site and it seems to be tracking good. All the 4's and 1's are lining up where I expect them.

      Thanks Again.

      I got this to work:

      var prevVal = p709.lastValue(2);
      var thisVal = p709.lastValue(1);
      var nextVal = p709.lastValue();
      
      if (thisVal >= prevVal && thisVal >= nextVal) {
          // peak
          return 4;
      } else if (thisVal >= prevVal && thisVal < nextVal) {
          // still climbing
          return 3;
      } else if (thisVal < prevVal && thisVal < nextVal) {
          // trough
          return 1;
      } else {
          // falling
          return 2;
      }
      

      0_1547002473983_mangoChart.png

      posted in How-To
      P
      Pikey4
    • RE: Calculating power use

      Hi Rowen,
      Hope this helps to get started.

      I am only monitoring current on one of the 3 phases on a small job, and I've used:

      return (1.732 * 0.7 * p217.value * p218.value)/1000;
      

      1.732 = Square Root of 3
      0.7 = power factor I measured onsite once
      p217 = Amps
      p218 = Voltage

      It's not going to be as good as a power meter, but gets me trending which is all I am after and it's fairly close.

      posted in User help
      P
      Pikey4