Lowering temperature at night

Do you have a question on how to do something.
Ask in here.
Post Reply
wtitb
Posts: 32
Joined: Sun Nov 17, 2013 3:32 pm

Lowering temperature at night

Post 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
wtitb
Posts: 32
Joined: Sun Nov 17, 2013 3:32 pm

Re: Lowering temperature at night

Post 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
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Lowering temperature at night

Post by rimai »

Use this:
ReefAngel.Params.Temp[T2_PROBE]
ReefAngel.Params.Temp[T3_PROBE]
Roberto.
wtitb
Posts: 32
Joined: Sun Nov 17, 2013 3:32 pm

Re: Lowering temperature at night

Post 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
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Lowering temperature at night

Post by rimai »

Correct. Use in Celsius and use no decimal point, just like you mentioned: 305
Roberto.
Post Reply