Scale Documentation
Version:Â 2.0.2Â
Retrieved:Â 2025-10-09 15:16:17
Scale
This module is used to scale the values from a sensor, eg to align it with data from other sensors or to convert units (eg Fahrenheit->Celsius).
This module is designed to be located in the middle of a flow.
Settings
The data comtained in the property Value Property will be used as the input value to the scale function, Scale and Offset are constants in the formula
| Name | Requirements | Purpose | Default |
|---|---|---|---|
| Value Property | Length:Â 1-64 | The property that contains the value to scale | Â |
| Target Property | Length:Â 0-64 | The property that will hold the scaled value, can be empty and defaults to [Value Property] | Â |
| Offset | double | The offset to be used | 0.0 |
| Scale | double | The scale to be used | 1.0 |
Input
The input must have a property that matches the Value Property property.
| Name | Required | Type | Description |
|---|---|---|---|
| [Value Property] | yes | double | The property containing the value to scale |
Output
| Name | Type | Description |
|---|---|---|
| [Value Property] | double | the input value scaled like Input*SCALE + OFFSET |
Example
To convert from Celsius to fahrenheit
| Setting | Value |
|---|---|
| [Offset] | 32 |
| [Scale] | 1.8 |
30 °C * 1.8 + 32 = 86.0 °F
Search Documentation
Process & Analyze
Process & Analyze
Calculations & Statistics