Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 819 Bytes

File metadata and controls

32 lines (22 loc) · 819 Bytes

Rest API to dynamically adjust runtime parameters of the uni-meter

Set parameters

Using this API call, you can dynamically adjust one or more runtime parameters of the uni-meter:

http://<uni-meter-ip>:<uni-meter-port>/api/set_parameters?min-sample-period=2500ms&power-offset-total=20

Currently, the following runtime parameters can be adjusted:

  • min-sample-period
  • power-offset-total
  • power-offset-l1
  • power-offset-l2
  • power-offset-l3

Get parameters

Using this API call, you can retrieve the current runtime parameters of the uni-meter:

http://<uni-meter-ip>:<uni-meter-port>/api/get_parameters

The parameters are returned as JSON object in the response body:

{
  "power-offset-l1": 0.00,
  "power-offset-l2": 0.00,
  "power-offset-l3": 0.00,
  "power-offset-total": 0.00
}