openhab-addons/bundles/org.openhab.transform.javas.../conf/transform/scale.js

4 lines
124 B
JavaScript

(function(data, cf, d) {
return parseFloat(data) * parseFloat(cf) / parseFloat(d);
})(input, correctionFactor, divider)