Can ReefAngel.Use2014 Screen import portal labels?

Related to the development libraries, released by Curt Binder
Post Reply
mudcat1
Posts: 133
Joined: Sun Dec 09, 2012 7:23 pm

Can ReefAngel.Use2014 Screen import portal labels?

Post by mudcat1 »

I upgraded to the Reef Angel version 1.1.1 libraries and noticed there is a new Reef Angel screen option named ReefAngel.Use2014Screen(). I added the following code to my INO.

void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu
ReefAngel.Use2014Screen();

The new screen appears to be working but I am curious if I can import the custom labels that I have created in the portal to the Reef Angel console? If so, what command(s) do I need to add to my INO to import the portal labels?
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Can ReefAngel.Use2014 Screen import portal labels?

Post by cosmith71 »

This. First set is the first relay box, second and third sets are expansion relays. Just use however many sets you need. Put them under setup().

Code: Select all

 // Define labels for LCD screen
  ReefAngel.CustomLabels[0]="Fan"; 
  ReefAngel.CustomLabels[1]="Heater"; 
  ReefAngel.CustomLabels[2]="Skimmer"; 
  ReefAngel.CustomLabels[3]="Return"; 
  ReefAngel.CustomLabels[4]="Swabbie"; 
  ReefAngel.CustomLabels[5]="Sump Light"; 
  ReefAngel.CustomLabels[6]="Canopy Fans"; 
  ReefAngel.CustomLabels[7]="Refugium Light";

  ReefAngel.CustomLabels[Box1_Port1Label] = "Alk Pump";
  ReefAngel.CustomLabels[Box1_Port2Label] = "Cal Pump";
  ReefAngel.CustomLabels[Box1_Port3Label] = "Top Off";
  ReefAngel.CustomLabels[Box1_Port4Label] = "";
  ReefAngel.CustomLabels[Box1_Port5Label] = "";
  ReefAngel.CustomLabels[Box1_Port6Label] = "";
  ReefAngel.CustomLabels[Box1_Port7Label] = "";
  ReefAngel.CustomLabels[Box1_Port8Label] = "";

  ReefAngel.CustomLabels[Box2_Port1Label] = "Virt Alk";
  ReefAngel.CustomLabels[Box2_Port2Label] = "Virt Cal";
  ReefAngel.CustomLabels[Box2_Port3Label] = "";
  ReefAngel.CustomLabels[Box2_Port4Label] = "";
  ReefAngel.CustomLabels[Box2_Port5Label] = "";
  ReefAngel.CustomLabels[Box2_Port6Label] = "";
  ReefAngel.CustomLabels[Box2_Port7Label] = "";
  ReefAngel.CustomLabels[Box2_Port8Label] = "";
--Colin
mudcat1
Posts: 133
Joined: Sun Dec 09, 2012 7:23 pm

Re: Can ReefAngel.Use2014 Screen import portal labels?

Post by mudcat1 »

cosmith71 wrote:This. First set is the first relay box, second and third sets are expansion relays. Just use however many sets you need. Put them under setup().

Code: Select all

 // Define labels for LCD screen
  ReefAngel.CustomLabels[0]="Fan"; 
  ReefAngel.CustomLabels[1]="Heater"; 
  ReefAngel.CustomLabels[2]="Skimmer"; 
  ReefAngel.CustomLabels[3]="Return"; 
  ReefAngel.CustomLabels[4]="Swabbie"; 
  ReefAngel.CustomLabels[5]="Sump Light"; 
  ReefAngel.CustomLabels[6]="Canopy Fans"; 
  ReefAngel.CustomLabels[7]="Refugium Light";

  ReefAngel.CustomLabels[Box1_Port1Label] = "Alk Pump";
  ReefAngel.CustomLabels[Box1_Port2Label] = "Cal Pump";
  ReefAngel.CustomLabels[Box1_Port3Label] = "Top Off";
  ReefAngel.CustomLabels[Box1_Port4Label] = "";
  ReefAngel.CustomLabels[Box1_Port5Label] = "";
  ReefAngel.CustomLabels[Box1_Port6Label] = "";
  ReefAngel.CustomLabels[Box1_Port7Label] = "";
  ReefAngel.CustomLabels[Box1_Port8Label] = "";

  ReefAngel.CustomLabels[Box2_Port1Label] = "Virt Alk";
  ReefAngel.CustomLabels[Box2_Port2Label] = "Virt Cal";
  ReefAngel.CustomLabels[Box2_Port3Label] = "";
  ReefAngel.CustomLabels[Box2_Port4Label] = "";
  ReefAngel.CustomLabels[Box2_Port5Label] = "";
  ReefAngel.CustomLabels[Box2_Port6Label] = "";
  ReefAngel.CustomLabels[Box2_Port7Label] = "";
  ReefAngel.CustomLabels[Box2_Port8Label] = "";
--Colin
Thanks Colin.
mudcat1
Posts: 133
Joined: Sun Dec 09, 2012 7:23 pm

Re: Can ReefAngel.Use2014 Screen import portal labels?

Post by mudcat1 »

I hoped there was a Reef Angel function that would work similar to the "Download Labels from Portal" that exists in the Reef Angel U-App and the Reef Angel Android app. Then I would only have to update the labels one time in the portal for use with the Reef Angel LCD console and all of the other companion apps.

Also Colin's suggestion works for the relays but does not provide custom labels for the temperature (T1, T2, T3) or pH probes.
Post Reply