Reef Angel Web Wizard

Community contributed apps

Posts: 12279
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Nov 03, 2016 12:50 pm
Ahh. It has to be the features file. Let me check.
Roberto.

Posts: 12279
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Nov 03, 2016 8:46 pm
Can you try again?
Roberto.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Fri Nov 04, 2016 7:59 am
I got this:

Compiling code for RA_PLUS board

DC Pump Control (Jebao/Tunze)
Dimming Signal
2014 Main Screen
Extra Font - Medium Size (8x8 pixels)
Standard Menu
Standard Menu
Standard Menu
Standard Menu
GetFileAttributesEx D:\Arduino\libraries\LED\LED.cpp D:\Arduino\libraries\LED\LED.h: The filename, directory name, or volume label syntax is incorrect.

Progress: 55.17%
Your code has some errors and couldn't be compiled.
Please fix the errors above and try again.

Posts: 12279
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Nov 04, 2016 9:15 am
I'm not getting that error. Can you post the code you tried to compile?
Roberto.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Fri Nov 04, 2016 10:11 am
Interesting. Now it's compiling fine.

Code: Select all
#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>
#include <DCPump.h>

////// Place global variable code below here

#define Fan          1
#define Heater       2
#define Whites       3
#define MoonLight    4
#define TopOff       5      // Wavemaker port
#define BettaLight   6      // Wavemaker port
#define Return       7
#define BettaHeater  8

unsigned long LastUpdate=0;        // Variable for timing CO2 shutoff

////// Place global variable code above here


void setup()
{
  // This must be the first line
  ReefAngel.Init();  //Initialize controller

  ReefAngel.AddStandardMenu();  // Add Standard Menu

  pinMode(lowATOPin,OUTPUT);
 
  ReefAngel.Use2014Screen();  // Let's use 2014 Screen
  ReefAngel.CustomLabels[0]="Fan";
  ReefAngel.CustomLabels[1]="Heater";
  ReefAngel.CustomLabels[2]="Unused";
  ReefAngel.CustomLabels[3]="MoonLight";
  ReefAngel.CustomLabels[4]="TopOff";
  ReefAngel.CustomLabels[5]="BettaLight";
  ReefAngel.CustomLabels[6]="Return";
  ReefAngel.CustomLabels[7]="BettaHeater";


  // Ports toggled in Feeding Mode
  ReefAngel.FeedingModePorts = Port7Bit;
  // Ports toggled in Water Change Mode
  ReefAngel.WaterChangePorts = Port2Bit | Port5Bit | Port7Bit;
  // Ports toggled when Lights On / Off menu entry selected
  ReefAngel.LightsOnPorts = Port3Bit | Port4Bit;
  // Ports turned off when Overheat temperature exceeded
  ReefAngel.OverheatShutoffPorts = Port2Bit;
  // Use T1 probe as temperature and overheat functions
  ReefAngel.TempProbe = T1_PROBE;
  ReefAngel.OverheatProbe = T1_PROBE;
  // Set the Overheat temperature setting
  InternalMemory.OverheatTemp_write( 820 );
 
  ReefAngel.DCPump.LowATOChannel = Sync;
  ReefAngel.DCPump.DaylightChannel = None;        // Set DCPump sync/antisync for every PWM port
  ReefAngel.DCPump.ActinicChannel = None;
  ReefAngel.DCPump.WaterChangeSpeed=0;    // Turn off DC Pumps during water change
  ReefAngel.DCPump.FeedingSpeed=255;      // Over 100 ignores feeding mode
  ReefAngel.DCPump.Threshold=20;          // Set lower limits for Jebao pumps

  // Ports that are always on
  ReefAngel.Relay.On( Return );
  ReefAngel.Relay.On( Whites );
 
  ////// Place additional initialization code below here

  ReefAngel.Timer[FEEDING_TIMER].SetInterval(600);


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

void loop()
{
  ReefAngel.StandardFan( Fan,780,786 );
  ReefAngel.StandardHeater( Heater,776,780 );
  //ReefAngel.StandardLights( Whites,8,30,20,30 );
  ReefAngel.StandardLights( MoonLight,20,50,8,0 );
  ReefAngel.StandardLights( BettaLight,8,0,21,0);
  ReefAngel.SingleATO( false,TopOff,3600,0 );
 
  ReefAngel.DCPump.UseMemory = false;
  ReefAngel.DCPump.SetMode(Else,40,20);  // If nothing changes it in the next few lines, this is what runs.
  if (hour()>=22 || hour()<7) ReefAngel.DCPump.SetMode(Gyre,50,30,20);  // Gyre max, duration, minimum
  if (hour()>=7 && hour()<8) ReefAngel.DCPump.SetMode(Gyre,60,30,30);  // Gyre max, duration, minimum
  if (hour()>=8 && hour()<9) ReefAngel.DCPump.SetMode(Else,40,20);    // Else mode from 1000 to 1100.  Wake up!

  // Freshwater tank heater control
  if (ReefAngel.Params.Temp[T2_PROBE] <= 770 && ReefAngel.Params.Temp[T2_PROBE] > 0) ReefAngel.Relay.On(BettaHeater);  // If sensor 2 temperature <= LowTemp - turn on heater
  if (ReefAngel.Params.Temp[T2_PROBE] >= 780) ReefAngel.Relay.Off(BettaHeater);  // If sensor 2 temperature >= HighTemp - turn off heater

    ////// Place your custom code below here
  /*
  if ( ReefAngel.DisplayedMenu == FEEDING_MODE ) 
   ReefAngel.Relay.On( PowerHead );
   else
   ReefAngel.WavemakerRandom( PowerHead,45,90 );
   */
  ////// Place your custom code above here

  // This should always be the last line
  ReefAngel.ShowInterface();
}


User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Fri Nov 04, 2016 10:14 am
The menu appears to be fixed now as well.

Posts: 12279
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sun Nov 06, 2016 3:49 pm
I think the wizard part is good now.
Please give it a try and let me know if you find any bug.
I'm going to try to implement simple if/then statements if everything is good with this.
Roberto.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Sun Nov 06, 2016 5:31 pm
I put in some random stuff and it seems to be working OK (compiled fine).

But what's all this Star and Cloud stuff?

Posts: 16
Joined: Fri Nov 11, 2016 11:08 am
PostPosted: Sat Nov 12, 2016 9:51 pm
Check the wizard ;)

Posts: 1
Joined: Wed Jun 12, 2013 8:00 am
PostPosted: Sun Nov 13, 2016 5:10 am
Nevermind. :D
PreviousNext

Return to Apps

Who is online

Users browsing this forum: No registered users and 1 guest