Blank Screen RAStar

Do you have a question on how to do something.
Ask in here.
User avatar
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France
PostPosted: Fri Jan 06, 2017 5:33 am
Hello Rimai,

Uapp is not working for me :-( : uapp/
Cloud setting : xender and my forum password

I reseted my forum password as you ask

here is my code :
Code: Select all
#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.h>

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

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


void setup()
{
    // This must be the first line
    //InternalMemory.LCDID_write(255);
    ReefAngel.Init();  //Initialize controller
    ReefAngel.Star();
    ReefAngel.AddPHExpansion();  // pH Expansion Module
    ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature
   
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Box1_Port8;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Box1_Port8;
    // Ports turned off when Overheat temperature exceeded
    //ReefAngel.OverheatShutoffPorts = Box1_Port1 | Box1_Port2;
    // Ports turned off when Leak is detected
    ReefAngel.LeakShutoffPorts = Box1_Port1 | Box1_Port2;
    // Ports toggled when Lights On / Off menu entry selected
    //ReefAngel.LightsOnPorts = Box1_Port1 | Box1_Port2;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 300 );

    // Ports that are always on
    ReefAngel.Relay.On( Box1_Port3 );
    ReefAngel.Relay.On( Box1_Port4 );
    //ReefAngel.Relay.On( Box1_Port5 );
    ReefAngel.Relay.On( Box1_Port6 );
    ReefAngel.Relay.On( Box1_Port7 );
    //ReefAngel.Relay.On( Box1_Port8 );

    ////// Place additional initialization code below here
    ReefAngel.Portal("Xender","xxxx");
    //ReefAngel.Network.WifiAuthentication("xxxx:xxxxx");
 
    ////// Place additional initialization code above here
}

void loop()
{
    //ReefAngel.StandardLights( Box1_Port1,8,0,23,0 );
    //ReefAngel.StandardLights( Box1_Port2,8,0,23,0 );
    //ReefAngel.PWM.SetDaylight( PWMSlope( 9,0,23,0,15,70,60,0 ) );
    //ReefAngel.PWM.SetActinic( PWMSlope( 9,0,23,0,15,70,60,0 ) );
    //ReefAngel.PWM.SetDaylight2( PWMSlope( 9,0,23,0,15,70,60,0 ) );
    //ReefAngel.PWM.SetActinic2( PWMSlope( 9,0,23,0,15,70,60,0 ) );
    ReefAngel.PWM.SetChannel( 0,PWMSlope( 8,0,23,0,15,70,60,0 ) );
    ReefAngel.PWM.SetChannel( 1,PWMSlope( 8,0,23,0,15,70,60,0 ) );
    ReefAngel.PWM.SetChannel( 2,PWMSlope( 8,0,23,0,15,70,60,0 ) );
    ReefAngel.PWM.SetChannel( 3,PWMSlope( 8,0,23,0,15,70,60,0 ) );
    ReefAngel.PWM.SetChannel( 4,PWMSlope( 8,0,23,0,15,70,60,0 ) );
 
 
    boolean buzzer=false;

    if ( ReefAngel.IsLeakDetected() )
      {
        buzzer=true;
      } else
      {
        buzzer=false;
      }
     
     if ( ReefAngel.isOverheat() )
      {
        buzzer=true;
      } else
      {
        buzzer=false;
      }
     
    if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

    ////// Place your custom code below here
 
   
    //CO2
    ReefAngel.CO2Control( Box1_Port5,720,710 );
   
 
   if ( (weekday() == 1) || (weekday() == 7) ) // Sunday or Saturday
     {
   // 0 - on hour, 1 - on minute, 2 - off hour, 3 - off minute
   // 4 - on hour, 5 - on minute, 6 - off hour, 7 - off minute
      ReefAngel.StandardLights(Box1_Port1, 8,0,23,0 );  // Weekend schedule
      ReefAngel.StandardLights(Box1_Port2, 8,0,23,0 );  // Weekend schedule
     } else
     {
      ReefAngel.StandardLights(Box1_Port1,8,0,23,0 );  // Weekday schedule  (use standard internal memory values)
      ReefAngel.StandardLights(Box1_Port2,8,0,23,0 );  // Weekday schedule  (use standard internal memory values)
     }


   


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

    ReefAngel.Network.Cloud();
    // This should always be the last line
    ReefAngel.ShowTouchInterface();
}

// RA_STRING1=xxxx
// RA_STRING2=null
// RA_STRING3=null


Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image

Posts: 12272
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Jan 06, 2017 10:42 am
Just to be sure, your code does have the RA_STRING1 in it and you just erased, right?
RA_STRING1 is the password that RA will use to connect to the cloud server.
If you reset it after you encrypted the password, you will have to generate the code again to encrypt the password again.
Roberto.
Previous

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 3 guests