• Recent
    • Tags
    • Popular
    • Register
    • Login

    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

    API Docs

    Mango Automation general Discussion
    2
    5
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rshah
      last edited by

      Hi,

      Does anyone know where in the old or new UI I can find the API docs? I don't mean the REST API, I mean for things like ma-point-value, or ma-serial-chart, etc?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi rshah,

        They're in the new UI, but you need to enable the menu item for them.

        0_1523989525150_editmenu.png

        1 Reply Last reply Reply Quote 0
        • R
          rshah
          last edited by

          @phildunlap said in API Docs:

          They're in the new UI, but you need to enable the menu item for them.

          Thanks @phildunlap !

          I assume you'll want a separate thread for this, but if not -- anything catch your eye as incorrect below? This isn't working for us and I'm not sure why.

              <ma-now update-interval="1 minutes" output="to"></ma-now>
              <ma-calc input="to | moment:'subtract':12:'hours'" output="from">
              </ma-calc>
              
              <ma-point-values point-xid="leaderCascadeTotalPower" values="point1Values" from="from" to="to" rollup="AVERAGE" rollup-interval="1 minutes">
              </ma-point-values>
          
          <md-table-container>
              <table md-table>
                  <thead md-head>
                      <tr>
                          <th md-column>Time</th>
                          <th md-column>Value</th>
                      </tr>
                  </thead>
                  <tbody md-body>
                      <tr ng-repeat="value in point1Values">
                          <td md-cell>{{value.timestamp | maMoment:'format':'ll LTS'}}</td>
                          <td md-cell>{{value.value}}</td>
                      </tr>
                  </tbody>
              </table>
          </md-table-container>
          
          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            You are using 'moment' when you mean 'maMoment' in the top part, perhaps?

            1 Reply Last reply Reply Quote 0
            • R
              rshah
              last edited by

              @phildunlap said in API Docs:

              No luck :(

              I've branched this off to it's own thread for clarity,
              https://forum.infiniteautomation.com/topic/3423/retrieve-last-12-hours-of-data

              1 Reply Last reply Reply Quote 0
              • First post
                Last post