Change pressure according to formula

Moderator: leecollings

Post Reply
Peregrine
Posts: 3
Joined: Friday 08 April 2016 10:35
Target OS: Windows
Domoticz version:
Contact:

Change pressure according to formula

Post by Peregrine »

Hi,

I have realised that my barometer show a too small value but it is not a fixed value it has a linear error, i.e. the greater the pressure the larger the error. I know that you can add a fixed value change in the device setup but not according to a formula like, a x pressure + b. Is this possible to implement this?
georgesattali
Posts: 84
Joined: Saturday 05 March 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Change pressure according to formula

Post by georgesattali »

Hello,
would be easily done with a virtual device and a "device" script in blocky or lua : each time your real barometer device changes, you can apply the formula to the virtual barometer.
I don't know if there are other solutions.
Bye, GD
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest