
And check out the graph:
status/chart.aspx?id=wolfpack&filter=WL
Added some code using 2 memory slots so that I can adjust it remotely with the android app. Until the new function is available, this is how I did it...
Add this global variable:
- Code: Select all
////// Place global variable code below here
byte topofflevel;
////// Place global variable code above here
And add this custom code:
- Code: Select all
/* Water level ATO
Using memory locations:
Location 258 (ATO Level Min Value)
Location 259 (ATO Level Max Value)
**NOTE: I am using the memory locations used on the PWM expansion module, so if you
are using the PWM expansin module, I recommend you use another memory location.
If the current water level is below the ATO Level Min Value, top off until
you reach ATO Level Max Value, else don't.
Also, if the current water level falls below the measureable amount (0) turn off
the return and skimmer.
*/
if (ReefAngel.WaterLevel.GetLevel()<topofflevel)
{
topofflevel=InternalMemory.read(259);
ReefAngel.Relay.On(Port5);
}
else
{
topofflevel=InternalMemory.read(258);
ReefAngel.Relay.Off(Port5);
}
// If water level equals 0, turn off return relay; else, keep it on
if (ReefAngel.WaterLevel.GetLevel()==0)
{
ReefAngel.Relay.Off(Port7);
ReefAngel.Relay.Off(Port8);
}
else
{
ReefAngel.Relay.On(Port8);
ReefAngel.Relay.DelayedOn( Port7 );
}