data e time

Do you have a question on how to do something.
Ask in here.
Post Reply
marco3020
Posts: 75
Joined: Sun Feb 19, 2012 12:18 pm

data e time

Post by marco3020 »

good morning how I can put the item on the main display setup command to set the time and date? thanks to all
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: data e time

Post by rimai »

Roberto.
marco3020
Posts: 75
Joined: Sun Feb 19, 2012 12:18 pm

Re: data e time

Post by marco3020 »

not fuction

plesae add in this file in setup menu add time date thanks
You do not have the required permissions to view the files attached to this post.
marco3020
Posts: 75
Joined: Sun Feb 19, 2012 12:18 pm

Re: data e time

Post by marco3020 »

i have cleaning reef angel 1.02 and have install reef angel version 1.02a i have update libraries version 1.03

not fuction

i have this code wharis error?

/* The following features are enabled for this File:
#define DateTimeSetup
#define VersionMenu
#define DisplayLEDPWM
#define WDT
#define SIMPLE_MENU
#define ENABLE_ATO_LOGGING
#define ENABLE_EXCEED_FLAGS
*/


#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.AddDateTimeMenu();
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
ReefAngel.UseFlexiblePhCalibration();
ReefAngel.AddStandardMenu(); // Add Standard Menu

// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit | Port7Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 270 );


// Ports that are always on
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );

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


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

void loop()
{
ReefAngel.SingleATO( true,Port1,60,0 );
ReefAngel.StandardLights( Port2,7,0,18,0 );
ReefAngel.StandardHeater( Port3,251,261 );
ReefAngel.StandardFan( Port4,271,261 );
ReefAngel.Relay.DelayedOn( Port7,5 );
ReefAngel.CO2Control( Port8,620,650 );
ReefAngel.PWM.SetDaylight( PWMSlope(6,40,18,0,6,100,60,6) );
ReefAngel.PWM.SetActinic( PWMSlope(6,00,18,0,6,100,60,6) );
////// Place your custom code below here


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

if (((NumMins(hour(),minute()) >= NumMins(0,00)) && (NumMins(hour(),minute()) <= NumMins(6,00))) || (NumMins(hour(),minute()) >= NumMins(12,00)) && (NumMins(hour(),minute()) <= NumMins(18,00)))
ReefAngel.Relay.On(Port5);
else
ReefAngel.Relay.Off(Port5);

// accensione pompa sx dalle 06:00 alle 12:13 e dalle 18:00 alle 23:59
if (((NumMins(hour(),minute()) >= NumMins(6,00)) && (NumMins(hour(),minute()) <= NumMins(12,00))) || (NumMins(hour(),minute()) >= NumMins(18,00)) && (NumMins(hour(),minute()) <= NumMins(23,59)))
ReefAngel.Relay.On(Port6);
else
ReefAngel.Relay.Off(Port6);
// This should always be the last line
ReefAngel.ShowInterface();
}
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: data e time

Post by rimai »

Yes, it is correct.
Are you sure you are uploading the code correctly?
Can you compile and post what it shows in the screen?
Roberto.
marco3020
Posts: 75
Joined: Sun Feb 19, 2012 12:18 pm

Re: data e time

Post by marco3020 »

yes
Post Reply