Page 1 of 1
Resuming normal lighting.
Posted: Sun Mar 03, 2013 8:43 am
by johniii
Ok so when people come over early to check out my tank I sometimes use the all lights on command. How do I resume the normal schedule without hooking up a pc or unplugging the controller.
Re: Resuming normal lighting.
Posted: Sun Mar 03, 2013 10:14 am
by rimai
Lights off, which I understand is misleading....

It basically cancels the Lights on mode.
Re: Resuming normal lighting.
Posted: Sun Mar 03, 2013 10:37 am
by johniii
When I use lights off. It doesn't turn them on at the scheduled time. It hard overrides to off.
Re: Resuming normal lighting.
Posted: Sun Mar 03, 2013 12:06 pm
by rimai
You are talking about the joystick menu, right?
Re: Resuming normal lighting.
Posted: Sun Mar 03, 2013 12:27 pm
by johniii
Yes. The joystick menu.
Re: Resuming normal lighting.
Posted: Sun Mar 03, 2013 1:29 pm
by rimai
The Lights Off menu simply cancels the override. It does not override it off.
Re: Resuming normal lighting.
Posted: Sun Mar 03, 2013 6:49 pm
by johniii
Mine does. If I use it the lights off it won't resume normal the next day. I will come home to No lights.
Re: Resuming normal lighting.
Posted: Sun Mar 03, 2013 7:59 pm
by rimai
Can you post your code?
Re: Resuming normal lighting.
Posted: Mon Mar 04, 2013 7:33 am
by johniii
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port2Bit | Port4Bit | Port6Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit | Port4Bit | Port6Bit | Port7Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 825 );
// Ports that are always on
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardATO( Port1,120 );
ReefAngel.StandardLights( Port2,14,0,22,0 );
ReefAngel.DosingPumpRepeat( Port3,0,120,2 );
ReefAngel.StandardLights( Port4,14,0,22,0 );
ReefAngel.DosingPumpRepeat( Port5,60,120,2 );
ReefAngel.StandardLights( Port6,14,0,22,0 );
ReefAngel.StandardHeater( Port7,785,788 );
ReefAngel.StandardHeater( Port8,785,788 );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
Re: Resuming normal lighting.
Posted: Mon Mar 04, 2013 9:41 am
by rimai
Do you have RA or RA+?
Re: Resuming normal lighting.
Posted: Mon Mar 04, 2013 3:04 pm
by johniii
Ra+
Sorry about the jumbled code. Tapatalk bunched it up.
edit: just unjumbled the code
Re: Resuming normal lighting.
Posted: Mon Mar 04, 2013 3:32 pm
by rimai
I just tested it and I can't seem to replicate this issue.
If you use Serial Monitor at 57600 baud, you can get the XML data from the controller.
Send "GET /r99 " make sure there is a space at the end...
Look for <R>, <RON> and <ROFF>
R will contain the bits that should be on/off when in auto mode.
RON will contain the bit for override on
ROFF will contain the bit for override off
In auto mode, you should have RON=0 and ROFF=255
When you override your lights on, you should see RON=42 and ROFF=255
Is this what you are getting?
Re: Resuming normal lighting.
Posted: Mon Mar 04, 2013 4:02 pm
by johniii
just checked. Ron 42 in override. Ron 0 in auto.
everything is right now. tonight after the normal scheduled shut off i will use lights on then lights off. To see if when i get home tomorrow the lights are on. Before it was only giving a problem without the pc hooked up. when i would hook it up. they would correct.
Thank You for your help Roberto.
Resuming normal lighting.
Posted: Mon Mar 04, 2013 4:11 pm
by lnevo
Make sure to check and report on roff as well since your stating it leaves things in override off...
Lee
Re: Resuming normal lighting.
Posted: Mon Mar 04, 2013 5:09 pm
by johniii
Roff was 255 all modes