temperature average day

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Pik
Starting Member
Starting Member
Posts: 33
Joined: Sun Apr 13, 2014 2:14 pm

Re: temperature average day

Post by Pik »

I got it !

for count, I have : "Main.SetglobalVar("Temp_n".str(1+val(Var_temp_n)))"
for sum, I have : "Main.setGlobalVar("Temp_somme", str(val(Var_Temp_somme)+val(Dev_36_value1)))"
for average, I have : "Main.setGlobalVar("Temp_average", str(val(Var_Temp_somme)/val(Var_Temp_n)))"

In fact, I was runnig the action in Action menu (when you open Event menu, you have actions list available).
When I launch the action (right clic on action and Run) this is doing nothing !
I checked with a light, and each time I right clic on Run (action), no switch On/Off.
Now, I check my script running the event.

So, I was checking my script running action but I could wait for long time !

Anyway, I have to thank you very much for your help because you gave me explanations on this vocabulary to use.

Regards.
Pik
Starting Member
Starting Member
Posts: 33
Joined: Sun Apr 13, 2014 2:14 pm

Re: temperature average day

Post by Pik »

Post closed
Post Reply

Return to “DomotiGa Forum”