How to calibrate sensor data before its display

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
sazaki
Posts: 8
Joined: Thursday 11 February 2021 8:33
Target OS: Linux
Domoticz version:
Contact:

How to calibrate sensor data before its display

Post by sazaki »

I have an ESP32 that sends sensor data to a "Custom Sensor" in domoticz via http. The sensor data is raw and needs to be calibrated (re-calculated using a function y=a*x+b) before it is shown in domotic's "Custom Sensor. I understand that I can do the data calibration in the ESP32 side before I send the data to domoticz. However, for some reasons, I would like to have the calibration done in Domoticz. I would like to use blocky to do the calibration work when data is received than shows it in the "Customer sensor". I wonder if this is feasible?? Please help. Thank you very much.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: How to calibrate sensor data before its display

Post by waaren »

sazaki wrote: Sunday 28 March 2021 6:19 I would like to use blocky to do the calibration work when data is received than shows it in the "Customer sensor". I wonder if this is feasible??
No that's not feasible. The Blockly implementation in domoticz does not have any math functions.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest