Page 1 of 1

delta t lua

Posted: Friday 10 June 2016 21:54
by tiga
hello im programming a fan for free cooling in the summer but i am not so good in programming in lua

can someone please help me with i think is a simple script.

i have an outside temp sensor and an inside temp sensor and i want it to set a user variable Delta t (like every 5 minutes or so)

so for example: outside temp is 25 degrees and inside temp is 20 degrees i want a uservariable (delta_t) that states: -5 degrees

i can not find a simmular lua script that does only this.only verry complex ones but i'm nog good enough to filter out this pease.

can someone please help me?? :mrgreen:

Re: delta t lua

Posted: Friday 10 June 2016 21:58
by jvdz
Help or code it for you? ;)

Jos

Re: delta t lua

Posted: Friday 10 June 2016 22:30
by tiga
help me on the way jos for 90% ;)

i am realy a dumbass with lua :D

to make it a little bit more challenging, im temporarely using the weather underground for my outside temp(im buying my own soon).
i beleve you have to filter out the temp value??????