Re: temperature average day
Posted: Sun Jun 01, 2014 2:59 pm
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.
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.