lua through blocky

Moderator: leecollings

Post Reply
reddo
Posts: 30
Joined: Thursday 01 September 2016 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

lua through blocky

Post 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 !
-Domoticz-RFLink-PVoutput-Solarmeter-SBFSpot-ESPEasy-Volumio with spotify connect-
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: lua through blocky

Post by Egregius »

Why not do everything in lua, php or any other language?
Nlovlky is for simple things.
reddo
Posts: 30
Joined: Thursday 01 September 2016 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: lua through blocky

Post by reddo »

Because I have no clue how to do that. Blocky is workable for me, programming is sadly not my best side....
-Domoticz-RFLink-PVoutput-Solarmeter-SBFSpot-ESPEasy-Volumio with spotify connect-
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: lua through blocky

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest