Resuming normal lighting.
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Resuming normal lighting.
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.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Resuming normal lighting.
Lights off, which I understand is misleading.... 
It basically cancels the Lights on mode.
It basically cancels the Lights on mode.
Roberto.
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Re: Resuming normal lighting.
When I use lights off. It doesn't turn them on at the scheduled time. It hard overrides to off.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Re: Resuming normal lighting.
Yes. The joystick menu.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Resuming normal lighting.
The Lights Off menu simply cancels the override. It does not override it off.
Roberto.
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Re: Resuming normal lighting.
Mine does. If I use it the lights off it won't resume normal the next day. I will come home to No lights.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Re: Resuming normal lighting.
#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();
}
#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();
}
Last edited by johniii on Mon Mar 04, 2013 3:29 pm, edited 1 time in total.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Re: Resuming normal lighting.
Ra+
Sorry about the jumbled code. Tapatalk bunched it up.
edit: just unjumbled the code
Sorry about the jumbled code. Tapatalk bunched it up.
edit: just unjumbled the code
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Resuming normal lighting.
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?
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?
Roberto.
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Re: Resuming normal lighting.
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.
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.
- lnevo
- Posts: 5422
- Joined: Fri Jul 20, 2012 9:42 am
Resuming normal lighting.
Make sure to check and report on roff as well since your stating it leaves things in override off...
Lee
Lee
-
johniii
- Posts: 86
- Joined: Sun Mar 03, 2013 8:37 am
Re: Resuming normal lighting.
Roff was 255 all modes