API Docs
-
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!
-
Hi rshah,
They're in the new UI, but you need to enable the menu item for them.
-
@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>
-
You are using 'moment' when you mean 'maMoment' in the top part, perhaps?
-
@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