Page 1 of 1

lua through blocky

Posted: Monday 31 October 2016 21:48
by reddo
Hi all,

I have domoticz controlling my floor heating, switching on and off the circulation pump based on ingoing temperature in to header from a blocky script. Now this works OK but I rather have it based on differential temperature between in and outlet, which is not dependent on the ambient temperature.

I have an ESP8266 running ESP_EASY with 2 DS18B20's reading 'Aanvoertemp VVW' en 'Afvoertemp VVW' from the header.

Now I cannot calculate the difference in blocky sadly so I need some other measures...

Could anyone point me out how to generate a variable 'DeltaT' in a LUA script which I can use in blocky for switching the pump ??

Thanks !

Re: lua through blocky

Posted: Monday 31 October 2016 21:56
by Egregius
Why not do everything in lua, php or any other language?
Nlovlky is for simple things.

Re: lua through blocky

Posted: Monday 31 October 2016 22:10
by reddo
Because I have no clue how to do that. Blocky is workable for me, programming is sadly not my best side....

Re: lua through blocky

Posted: Monday 31 October 2016 22:38
by Egregius
In PHP it's as simple as
$DeltaT=$AanvoertempVVW-$AfvoertempVVW
In Lua? I have no clue at all. I control everything with one php script.