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 »

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
smellsfishy
Posts: 14
Joined: Mon Mar 11, 2013 3:47 pm

Re: Reef Angel Web Wizard

Post by smellsfishy »

Just tried to install this on the mac and the installer failed. Not a very descriptive error either :?
Attachments
error screenshot
error screenshot
Screen Shot 2016-11-30 at 5.24.49 PM.png (132.13 KiB) Viewed 17101 times
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel Web Wizard

Post by lnevo »

What kind of Mac, what OS are you running?

I've got a hacked MacPro (2007) running El Capitan working OK. Not sure what kind of debug could be done... Roberto?
Naptalene
Posts: 98
Joined: Tue Nov 05, 2013 12:50 am

Re: Reef Angel Web Wizard

Post by Naptalene »

Installed on my old 2009 Mac Pro with El Capitan.
Seems to run fine and compiled my old sketch perfectly.

Only problem I had was that I kept clicking the app in "Applications"trying to make it open lol.
Didn't see it in the "Status" bar on the top left:P

Can I officially stop using/uninstall the Arduino based version on my Mac?
Believe it or not.... I can ask even stupider questions than this one.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Sure, if everything seems to be working for you.
The Arduino IDE still has some features you don't have on the webwizard, such as Serial monitor, but if you don't use, you won't be missing much.
Roberto.
Naptalene
Posts: 98
Joined: Tue Nov 05, 2013 12:50 am

Re: Reef Angel Web Wizard

Post by Naptalene »

Hi, I just started messing around with the tide and weather options and see I can't #include them via the web plugin.
Does this mean I'll have to use the Arduino interface then?
Create my code there and then I can copy/Paste and use the webwizard to save it on your server?
Believe it or not.... I can ask even stupider questions than this one.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

Does it compile on the webwizard?
Roberto.
Naptalene
Posts: 98
Joined: Tue Nov 05, 2013 12:50 am

Re: Reef Angel Web Wizard

Post by Naptalene »

Sorry for my lat reply, no it doesn't but by just copying/pasting the code into the webwizard and saving I have cloud backup of my codes that I can always get to. I've lost them twice lol. There's a reason for trying to lose the arduino version. I'll start a new thread now.
Believe it or not.... I can ask even stupider questions than this one.
psyrob
Posts: 247
Joined: Thu Sep 01, 2011 8:44 pm

Re: Reef Angel Web Wizard

Post by psyrob »

umm, does this work on a mac? Can't load it on my 2015 macbook air
Image
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Reef Angel Web Wizard

Post by rrodriguess »

Hello

I just started using the webwizard ... and I have to say ... very good app! Much better than the arduino's IDE ... at least for us :)

Anyway. I use Windows 10 uploading the code through bluetooth using the Arduino's IDE just fine.

I installed the plugin. Is is recognize by the webwizard ("Plug in found and connected") but I am not able to send code through bluetooth.

The port combo-box does not give me the COM4 choice (that's the port I use locally).

Do I have to do anything else besides what I have done?

I have read all posts above, but haven't found anything similar...

Best regards
Rafa
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Web Wizard

Post by rimai »

I just tested and indeed it doesn't show any BT com ports.
There must be something in the enumeration of the ports that block them from being used.
I'll have to troubleshoot further.
Roberto.
Post Reply