Portal showing everyting

Related to the Portal

Posts: 76
Joined: Sat Jun 30, 2012 9:21 am
PostPosted: Sat May 28, 2022 3:01 am
Hi All,

I dont know if this is still supported or if I need the new cloud module but I have a old RA+ with the old wifi module that does send data to the Portal, I havent setup NAT to the RA from the Net as I only care about historical info.

On the portal it shows all the potential modules and expansion relay boxes but i only have/use one relay box, 2 temp sensors and an RF module and old wifi module but the portal shows everything.

Can someone tell me what I need to do to stop the portal showing equipment I dont have, assuming its possible/sitll supported?

Thanks

Andrew
Image

Posts: 12865
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon May 30, 2022 6:25 pm
If you have the module in your code, it will show up on the portal. Can you post your code?
Roberto.

Posts: 76
Joined: Sat Jun 30, 2012 9:21 am
PostPosted: Mon May 30, 2022 10:51 pm
Here is my code. Please ignore the messynees :roll:

I thiought it would be related to the include bits so tried commenting somebits out.


Code: Select all
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <RF.h>
#include <ReefAngel.h>


//#include <RA_ATO.h>
//#include <Wire.h>
//#include <OneWire.h>
//#include <RA_PWM.h>
//#include <Salinity.h>
//#include <IO.h>
//#include <ORP.h>
//#include <AI.h>
//#include <DCPump.h>


////// Place global variable code below here
// Globals Needed for RF Mode on Custom Main
byte vtechmode;   
byte vtechspeed;
byte vtechpercent;
boolean bFeeding=false;

byte x = 6;
byte y = 2;
byte t;
char text[7];

//Custom Main, Graph & Menu

void DrawCustomMain()
{
  //      ReefAngel.LCD.DrawDate(6, 2);
  ReefAngel.LCD.DrawText(3,255,6,2," Reef of Low");

  ReefAngel.LCD.DrawDate(7, 120);
  ReefAngel.LCD.Clear(COLOR_BLACK, 1, 11, 132, 11);
  pingSerial();

  /*
      ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 6, 90, "--------------------");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 6, 126, "--------------------");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 2, 93, "|");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 2, 103, "|");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 2, 113, "|");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 2, 123, "|");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 126, 93, "|");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 126, 103, "|");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 126, 113, "|");
   ReefAngel.LCD.DrawText(COLOR_TOMATO,255, 126, 123, "|");
   */


  vtechmode=ReefAngel.RF.Mode;
  vtechspeed=ReefAngel.RF.Speed;
  vtechpercent=ReefAngel.RF.Duration;

  ReefAngel.LCD.Clear(255, 35, 20, 20, 85);

  ReefAngel.LCD.DrawText(0,255,18,21,"EcoSmart Mode");
  if (vtechmode == 0) ReefAngel.LCD.DrawLargeText(COLOR_LIMEGREEN,255,25,31,"Constant");
  else if(vtechmode == 1) ReefAngel.LCD.DrawLargeText(COLOR_GOLD,255,25,31,"Lagoonal");
  else if (vtechmode == 2) ReefAngel.LCD.DrawLargeText(COLOR_GOLD,255,25,31,"Reef Crest");
  else if (vtechmode == 3) ReefAngel.LCD.DrawLargeText(COLOR_CORNFLOWERBLUE,255,25,31,"Short Pulse");
  else if (vtechmode == 4) ReefAngel.LCD.DrawLargeText(COLOR_PINK,255,25,31,"Long Pulse");
  else if (vtechmode == 5) ReefAngel.LCD.DrawLargeText(COLOR_MAGENTA,255,25,31,"STM_NTM.");
  else if (vtechmode == 6) ReefAngel.LCD.DrawLargeText(COLOR_MAGENTA,255,25,31,"Tidal Swell");
  else if (vtechmode == 9) ReefAngel.LCD.DrawLargeText(COLOR_WHITE,0,45,31,"Night");
  //
  char text[10];

  ReefAngel.LCD.DrawText(2,255,32,42,"Speed");
  ConvertNumToString(text, vtechspeed, 1);
  if (vtechspeed )ReefAngel.LCD.DrawLargeText(0,255,35,51,text);

  ReefAngel.LCD.DrawText(23,255,32,62,"Duration");
  ConvertNumToString(text, vtechpercent, 1);
  if (vtechpercent) ReefAngel.LCD.DrawLargeText(0,255,35,70,text);
  //   
  ReefAngel.LCD.DrawText(0,255,10,80,"T1");
  ConvertNumToString(text, ReefAngel.Params.Temp[T1_PROBE], 10);
  ReefAngel.LCD.DrawLargeText(COLOR_BLACK, 255, 10, 88, text, Num8x8);
  pingSerial();

 ReefAngel.LCD.DrawText(0,255,50,80,"T2");
  ConvertNumToString(text, ReefAngel.Params.Temp[T2_PROBE], 10);
  ReefAngel.LCD.DrawLargeText(COLOR_BLACK, 255, 50, 88, text, Num8x8);
  pingSerial();
 
  ReefAngel.LCD.DrawText(0,255,100,80,"pH");
  ConvertNumToString(text, ReefAngel.Params.PH, 100);
  ReefAngel.LCD.DrawLargeText(COLOR_INDIGO, 255, 85, 88, text, Num8x8);
  pingSerial();
  //
  pingSerial();
  byte TempRelay = ReefAngel.Relay.RelayData;
  TempRelay &= ReefAngel.Relay.RelayMaskOff;
  TempRelay |= ReefAngel.Relay.RelayMaskOn;
  ReefAngel.LCD.DrawOutletBox(12, 100, TempRelay);
  //
}
void DrawCustomGraph()
{
}


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


void setup()
{
  // This must be the first line
  ReefAngel.Init();  //Initialize controller
  ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature

  // Ports toggled in Feeding Mode
  ReefAngel.FeedingModePorts = Port4Bit; //| Port6Bit | Port7Bit;
  // Ports toggled in Water Change Mode
  // ReefAngel.WaterChangePorts = Port4Bit | Port7Bit;
  // Ports toggled when Lights On / Off menu entry selected
  ReefAngel.LightsOnPorts = 0;
  // Ports turned off when Overheat temperature exceeded
  ReefAngel.OverheatShutoffPorts = Port1Bit | 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( 290 );



 


  // Ports that are always on
  ReefAngel.Relay.On( Port5 ); //MP40
  ReefAngel.Relay.On( Port6 ); //MP40
  ReefAngel.Relay.On( Port7 ); //Return
//ReefAngel.Relay.On( Port8 ); Used By CALC RX Below

  ReefAngel.DCPump.FeedingSpeed=100;
 
  ReefAngel.Timer[FEEDING_TIMER].SetInterval(2100);

  //   if (!ReefAngel.HighATO.IsActive()) ReefAngel.Relay.Off(Port7); // Turn Skimmer off if Return is off and water level increases in sump
    //    ReefAngel.Relay.Set(Port7,ReefAngel.LowATO.IsActive()); // Turn Skimmer on if Return is on and water level in the sump is norma


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


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

void loop()
{
  ReefAngel.StandardHeater( Port1,240,248 );
  ReefAngel.StandardHeater( Port2,240,248 );
  //    ReefAngel.StandardFan( Port3,271,281 );
  //    ReefAngel.StandardLights( Port3,20,0,5,0 );
  //    ReefAngel.StandardLights( Port6,20,0,0,0 );
 
  ReefAngel.StandardLights( Port4,8,0,23,59 );   //SKIMMER 8 am to 23:59
//
//  ReefAngel.StandardLights( Port5,7,0,1,0 );   //MP40 7 am to 2 am
//  ReefAngel.StandardLights( Port6,7,0,1,0 );   //MP40 7 am to 2 am


//if (hour(now())<16)
//  ReefAngel.StandardLights( Port4,8,0,15,0 ); // Skimmer on from 8am to 3pm then off till 4pm
//else
//  ReefAngel.StandardLights( Port4,16,0,23,45 ); // Skimmer on from 4pm to 11:45pm then off till 8am


 
//  ReefAngel.StandardLights( Port5,19,0,9,0 );   
  //    ReefAngel.DosingPumpRepeat( Port8,0,180,30);
//  ReefAngel.CO2Control ( Port8,650,670 ); //was 630 - 640
//  ReefAngel.DosingPumpRepeat( Port3,0,180,180);
  ////
  ReefAngel.RF.UseMemory = false;
  ///////
  //    ReefAngel.RF.SetMode(Constant,80,5);
  //    ReefAngel.RF.SetMode(Random2,50,5);
  //    ReefAngel.RF.SetMode(Smart_NTM,50,10);
  //    ReefAngel.RF.SetMode(Smart_NTM,60,8);
  //    ReefAngel.RF.SetMode(Custom,30,0); //Custom Mode Sync
  //    ReefAngel.RF.SetMode(Custom,50,1); //Custom Mode Anti-Sync
  //    ReefAngel.RF.SetMode(Custom,50,2); //Custome Mode Back of tank


///////    CHANGE Vortech MODE @ TIMES

    if ( ReefAngel.RF.Mode != Feeding_Start)

    if (hour()==10)
      ReefAngel.RF.SetMode(Lagoon,50,4);

  //  if (hour()==10)
   //   ReefAngel.RF.SetMode(Constant,70,4);
  //
    else if (hour()>=0 && hour()<3)
      ReefAngel.RF.SetMode(Lagoon,20,2);           

else if (hour()>=3 && hour()<6)
      ReefAngel.RF.SetMode(Lagoon,10,2);           
         
else if (hour()>=6 && hour()<9)
     ReefAngel.RF.SetMode(ReefCrest,30,10);   

else if (hour()>=9 && hour()<12)
     ReefAngel.RF.SetMode(ReefCrest,40,60);

// else if (hour()>=9 && hour()<12)
  //   ReefAngel.RF.SetMode(Constant,60,4);   
                       
else if (hour()>=12 && hour()<13)
     ReefAngel.RF.SetMode(Constant,60,4);

   else if (hour()>=13 && hour()<20)
      ReefAngel.RF.SetMode(Lagoon,50,14);

// else if (hour()>=13 && hour()<18)
  //   ReefAngel.RF.SetMode(Smart_TSM,80,5);

// else if (hour()>=13 && hour()<18)
  //   ReefAngel.RF.SetMode(Constant,80,4);   
 
//    else if (hour()>=18 && hour()<20)
//      ReefAngel.RF.SetMode(Smart_NTM,50,20);

    else if (hour()>=20 && hour()<21)
      ReefAngel.RF.SetMode(Constant,60,4);   

    else if (hour()>=21 && hour()<22)
      ReefAngel.RF.SetMode(Lagoon,70,5);           

   else if (hour()>=22 && hour()<23)
      ReefAngel.RF.SetMode(Constant,70,4);

    else if (hour()>=23 && hour()<0)
      ReefAngel.RF.SetMode(Lagoon,50,5);           

    else
      ReefAngel.RF.SetMode(Constant,40,3);

if ( ReefAngel.RF.Mode != Feeding_Start)

if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE) ReefAngel.RF.SetMode(Constant,80,5);

  ////// Place your custom code below here

  //    ReefAngel.PWM.SetDaylight( ReefCrestMode(80,20,true) ); // ReefCrest at 60% +/- 20% on sync mode
  //    ReefAngel.PWM.SetDaylight( NutrientTransportMode(80,100,10,true) );

//  if (hour()>=8 && hour()<10)
//    ReefAngel.PWM.SetDaylight( LongPulseMode(0,40,10,true) ); // Long pulse at 40% with 10s pulse on sync mode

//    else if (hour()>=10 && hour()<16)
//    ReefAngel.PWM.SetDaylight( NutrientTransportMode(75,90,2000,true) ); // Nutrient Transport on sync mode

//    else if (hour()>=16 && hour()<17)
//    ReefAngel.PWM.SetDaylight( ReefCrestMode(80,20,true) ); // ReefCrest at 75% + - 20 on sync mode

//    else if (hour()>=17 && hour()<20)
//    ReefAngel.PWM.SetDaylight( LongPulseMode(0,60,4,true) );
  //  ReefAngel.PWM.SetDaylight( NutrientTransportMode(75,90,2000,true) ); // Nutrient Transport on sync mode


//    else if (hour()>=20 && hour()<24)
//    ReefAngel.PWM.SetDaylight( TidalSwellMode(60,true) ); // Tidal Swell at 60% on sync mode

//    else
//    ReefAngel.PWM.SetDaylight( LongPulseMode(0,40,10,true) ); // Long pulse at 40% with 10s pulse on sync mode



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

    // This should always be the last line
  //ReefAngel.Network.WifiAuthentication("appleseed:sdiuhfrweuWdwe");
  ReefAngel.Portal("Appleseed","");
  ReefAngel.ShowInterface();
}
Image

Posts: 12865
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue May 31, 2022 12:08 am
What are you trying to hide on the portal?
Roberto.

Posts: 76
Joined: Sat Jun 30, 2012 9:21 am
PostPosted: Tue May 31, 2022 12:32 pm
at the moment the portal shows the following which i would like to hide

Humidity,
PWM channels,
Salinity,
ORP
PH Exp
PAR
8 extra relay boxes
Radion
Aqua Illumination stuff
I/O expansion module
Water level expansion modules
Custom Fields
Image

Posts: 12865
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Jun 02, 2022 10:02 am
It may be a problem with the page then. Let me look into it.
Roberto.

Posts: 76
Joined: Sat Jun 30, 2012 9:21 am
PostPosted: Thu Jun 02, 2022 11:36 pm
Thanks!
Image

Posts: 12865
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Jun 07, 2022 5:27 pm
Which browser are you using?
I don't see nothing wrong.
Roberto.

Posts: 76
Joined: Sat Jun 30, 2012 9:21 am
PostPosted: Wed Jun 08, 2022 12:31 am
I use mostly Firefox, but the issue also occurs with chrome, brave and edge. I tried chrome on android and have the same issue.
Its not the end of the world as I only goto the portal for the relay activity section.

Thanks
Image

Return to Portal

Who is online

Users browsing this forum: No registered users and 2 guests

cron