2023-04-19 00:59:34 +08:00
|
|
|
# Scale values with a predefined range to a different output range.
|
|
|
|
|
[[processors.scale]]
|
|
|
|
|
## It is possible to define multiple different scaling that can be applied
|
|
|
|
|
## do different sets of fields. Each scaling expects the following
|
|
|
|
|
## arguments:
|
|
|
|
|
## - input_minimum: Minimum expected input value
|
|
|
|
|
## - input_maximum: Maximum expected input value
|
|
|
|
|
## - output_minimum: Minimum desired output value
|
|
|
|
|
## - output_maximum: Maximum desired output value
|
2023-05-08 23:27:58 +08:00
|
|
|
## alternatively you can specify a scaling with factor and offset
|
|
|
|
|
## - factor: factor to scale the input value with
|
|
|
|
|
## - offset: additive offset for value after scaling
|
2023-04-19 00:59:34 +08:00
|
|
|
## - fields: a list of field names (or filters) to apply this scaling to
|
2023-05-08 23:27:58 +08:00
|
|
|
|
|
|
|
|
## Example: Scaling with minimum and maximum values
|
2023-04-19 00:59:34 +08:00
|
|
|
# [processors.scale.scaling]
|
|
|
|
|
# input_minimum = 0
|
|
|
|
|
# input_maximum = 1
|
|
|
|
|
# output_minimum = 0
|
|
|
|
|
# output_maximum = 100
|
|
|
|
|
# fields = ["temperature1", "temperature2"]
|
2023-05-08 23:27:58 +08:00
|
|
|
|
|
|
|
|
## Example: Scaling with factor and offset
|
2023-04-19 00:59:34 +08:00
|
|
|
# [processors.scale.scaling]
|
2023-05-08 23:27:58 +08:00
|
|
|
# factor = 10.0
|
|
|
|
|
# offset = -5.0
|
|
|
|
|
# fields = ["voltage*"]
|