Skip to main content

LinearScaler@1

Node LinearScaler@1 is used to scale a value from one range to another.

Adapter Prerequisites

  • General availability: All adapters support this node type.

Node Configuration

For fields path, targetPath, targetValueWriteMode, and targetValueKind, see Overview.

transformations:
- type: LinearScaler@1
path: $.value
targetPath: $.scaledValue
scaleInputMin: 0 # Min value of input range
scaleInputMax: 1 # Max value of input range
scaleOutputMin: 0 # Min value of output range
scaleOutputMax: 1000 # Max value of output range