Reef Angel Web Wizard

Community contributed apps
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

I did not have the TTL cable connected as I usually use Bluetooth. :D

I hooked one up but got the following message:
Attempting to upload your code to RA_PLUS on local port COM4 ...

avrdude: ser_open(): can't open device "\\.\COM3": The system cannot find the file specified.
avrdude: ser_drain(): read error: The handle is invalid.
Could not program the board
It's set to COM4, but looks like it's trying to open COM3.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

:(
Bug. I hard coded COM3 when testing.
Let me fix it and I'll update shortly
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Try again.
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

Appears to work! Compiled and uploaded successfully.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Awesome!!! :)
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel Web Wizard

Post by lnevo »

Can this fix my issue with the other boards? :)
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

I don't know how you were able to upload codes because there was a misconfigured option on the config.ini file.
I updated it, so you should reinstall.
Also, I just updated the original post with links for the Win and Mac versions of the plug in.
@lnevo, hopefully it will. I have not tried other boards just yet. I wanted to get the ones that use avrdude first.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Ahh. On a second look, the settings wasn't related to upload codes, but to download other stuff that we may need in the future.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

lnevo wrote:Can this fix my issue with the other boards? :)
I think this is working too :)
Can you test?
Unfortunately, it is still using the ssid, password and cloud settings of the original RA_CustomSettings.h file.
I need to come up with a plan to be able to update that on the fly, but you should be able to test the upload feature to the board.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Ok, I implemented today the ability to save sketches on the cloud.
No more loosing your sketches because of computer crash :)
Wizard is still not implemented.
Test it out and let me know how the save and open files are working out.
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

Save and open seems to be working correctly.

However, the main RA menu is missing the "Timeouts" option.

--Colin
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

That feature is activated through your code.
What code were you using?
You need to add this line to setup():

Code: Select all

ReefAngel.AddStandardMenu();
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

That line is in there (29G Frag Tank.ino). It works correctly when I upload it from Arduino, but is missing when I use the web wizard.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel Web Wizard

Post by lnevo »

rimai wrote:
lnevo wrote:Can this fix my issue with the other boards? :)
I think this is working too :)
Can you test?
Unfortunately, it is still using the ssid, password and cloud settings of the original RA_CustomSettings.h file.
I need to come up with a plan to be able to update that on the fly, but you should be able to test the upload feature to the board.
How about storing the settings as another file within the working directory with the ino file. #include "Cloud.h" instead of <cloud.h> When you're in an INO you can have a button Add header file. This would let you keep it outside the libraries folder (which was going to be annoying anyway, when it comes to storing in git) or just another file to .gitignore. And then it could be another file you can open.

Another thing to consider is showing the default code, controller test, when you go to Open.

And lastly, it would be interesting too to be able to select which library version to compile against. It's nice to always have the latest one, but you have Standard as a board, so why not :) Then you could make it easy to test against dev as well.

Anyway, all my tests were successful. :) I really like it. I could do coding on the train now... I'm assuming too that the firmware compiled on the web would be available to the scripts we were working on?

Very awesome!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

I created the installation package for both Win and Mac.
Can someone please test and confirm that it is working for you?
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

The Windows installer works fine for me. Avast Antivirus checked it a lot. I'd recommend disabling antivirus before install.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Does it auto start when you boot the computer too?
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

Yes.

The main menu is still messed up, however.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Can you post a screen shot?
Which browser?
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

Sorry, the menu on the RA. When you click the joystick some of the options are missing.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Ahh. It has to be the features file. Let me check.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Can you try again?
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

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.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

I'm not getting that error. Can you post the code you tried to compile?
Roberto.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

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
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

The menu appears to be fixed now as well.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

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
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Reef Angel Web Wizard

Post by cosmith71 »

I put in some random stuff and it seems to be working OK (compiled fine).

But what's all this Star and Cloud stuff?
lnevo3
Posts: 16
Joined: Fri Nov 11, 2016 11:08 am

Re: Reef Angel Web Wizard

Post by lnevo3 »

Check the wizard ;)
cosmith2
Posts: 3
Joined: Wed Jun 12, 2013 8:00 am

Re: Reef Angel Web Wizard

Post by cosmith2 »

Nevermind. :D
Post Reply