Internal Mem Coding on and off help

Do you have a question on how to do something.
Ask in here.
Post Reply
skehole
Posts: 75
Joined: Fri Feb 13, 2015 4:58 pm

Internal Mem Coding on and off help

Post by skehole »

Hi all....first off, here's my code

#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 <Humidity.h>
#include <DCPump.h>
#include <PAR.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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port3Bit | Port5Bit | Port6Bit | Port7Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;


// Ports that are always on
ReefAngel.Relay.On( Port2 );
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
ReefAngel.StandardHeater( Port1 );
////// Place your custom code below here


////// Place your custom code above here

// This should always be the last line
ReefAngel.Portal( "skehole" );
ReefAngel.DDNS( "fish tank" ); // Your DDNS is skehole-fish tank.myreefangel.com
ReefAngel.ShowInterface();
}



On my currently unused relay 4 I would like to program my reefbrite to come on at 11am and off at 9pm. No ramping or nothing. Simply on and then off. Can someone assist me? TIA!
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Internal Mem Coding on and off help

Post by rimai »

Have you tried using the wizard?
Also, don't use a space on your DDNS.
It will mess up the communication with the portal.
Spaces are not part of the HTTP protocol.
Roberto.
skehole
Posts: 75
Joined: Fri Feb 13, 2015 4:58 pm

Re: Internal Mem Coding on and off help

Post by skehole »

rimai wrote:Have you tried using the wizard?
Also, don't use a space on your DDNS.
It will mess up the communication with the portal.
Spaces are not part of the HTTP protocol.
I have not used the wizard, I was already running this and was wondering if there was a way to add in a line or whatever of code.

Yeah, I fixed that on my actual code. That was cut and pasted from the thread where we came to the same conclusion about the Ddns.
Image
Post Reply