Page 1 of 1

Lowering temperature at night

Posted: Sun Nov 09, 2014 3:11 pm
by wtitb
Hi,

I would like to lower the temperature of my freshwater tank at night. The idea was to turn off the heaters between 22:00-6:00 whenever the temperature is higher than the allowed temperature and turn them on again if it's under a certain limit. My problems:

1. how can I read the temperature of a probe in the code?
2. What value do I get for e.g. 30.5 °C? Probably 305?
3. Do I need some conversion between °F and °C or do I get the values according to SetTemperatureUnit?

cheers,
Christian

Re: Lowering temperature at night

Posted: Sun Nov 09, 2014 3:17 pm
by wtitb
I always find the answer just after posting ;)

1) ReefAngel.Params.Temp[T1_PROBE] seems to do the job.

But 2. and 3.?

cheers,
Christian

Re: Lowering temperature at night

Posted: Sun Nov 09, 2014 4:19 pm
by rimai
Use this:
ReefAngel.Params.Temp[T2_PROBE]
ReefAngel.Params.Temp[T3_PROBE]

Re: Lowering temperature at night

Posted: Sun Nov 09, 2014 11:49 pm
by wtitb
with 2. and 3. I referred to the second and third question of the topic ;)
But meanwhile I've seen, that Params.Temp is also used in the XML output of the WIFI interface. So it should be 305 and °C.

cheers,
Christian

Re: Lowering temperature at night

Posted: Mon Nov 10, 2014 5:46 am
by rimai
Correct. Use in Celsius and use no decimal point, just like you mentioned: 305