Internal memory in portal isnt updating my system.

Basic / Standard Reef Angel hardware
Post Reply
User avatar
Dctrojan
Posts: 96
Joined: Wed Oct 16, 2013 9:50 am

Internal memory in portal isnt updating my system.

Post by Dctrojan »

The internal memory control on portal seems to be not working. Ive been trying to change the light setting through portal and it doesnt give a error, just a few windows pop up. They say on the top just the url to reef angel and under that it says:

mb263,64

then when you click ok it all goes away and nothing changes.

Portal does allow me to change turn off and on my relays though, im very confused.
User avatar
Dctrojan
Posts: 96
Joined: Wed Oct 16, 2013 9:50 am

Re: Internal memory in portal isnt updating my system.

Post by Dctrojan »

This is the code the wizard generates except for the WavemakerRandom1 which I added to randomize the circulation pumps I have. It seems to make them work even though the wizard didn't have the option to select this under wave makers
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Internal memory in portal isnt updating my system.

Post by rimai »

I don't see the code
Roberto.
User avatar
Dctrojan
Posts: 96
Joined: Wed Oct 16, 2013 9:50 am

Re: Internal memory in portal isnt updating my system.

Post by Dctrojan »

#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 <Humidity.h>
#include <DCPump.h>
#include <ReefAngel.h>

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


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


void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port3Bit | Port4Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port4Bit | Port7Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;


// Ports that are always on
ReefAngel.Relay.On( Port1 );

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


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

void loop()
{
ReefAngel.MoonLights( Port2 );
ReefAngel.DayLights( Port3 );
ReefAngel.ActinicLights( Port4 );
ReefAngel.WavemakerRandom1( Port5,20,60 );
ReefAngel.WavemakerRandom2( Port6,25,65 );
ReefAngel.Relay.Set( Port7, !ReefAngel.Relay.Status( Port3 ) );
ReefAngel.StandardHeater( Port8 );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "Dctrojan" );
ReefAngel.ShowInterface();
}

void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 11, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 11, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();

// pH Expansion
ReefAngel.LCD.DrawText( COLOR_MEDIUMSEAGREEN,DefaultBGColor,15,48, "PHE:" );
ReefAngel.LCD.DrawSingleMonitor( ReefAngel.Params.PHExp,COLOR_MEDIUMSEAGREEN,39,48, 100 );
pingSerial();

// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 65, TempRelay );
pingSerial();

// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}

void DrawCustomGraph()
{
}
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Internal memory in portal isnt updating my system.

Post by rimai »

Refresh the page to reload the js file and try again.
Roberto.
New2novas
Posts: 32
Joined: Wed Sep 18, 2013 6:17 pm

Re: Internal memory in portal isnt updating my system.

Post by New2novas »

i'm having the same problem, say the portal is displaying tidal swell but i had requested long pulse in the wizard and it is in fact doing the long pulse routine, nothing i change in the portal has effect
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Internal memory in portal isnt updating my system.

Post by rimai »

@new2novas:
Did you go with the internal memory settings?
Roberto.
User avatar
Dctrojan
Posts: 96
Joined: Wed Oct 16, 2013 9:50 am

Re: Internal memory in portal isnt updating my system.

Post by Dctrojan »

All i did was refresh the code and reapply it to the controller and its working now.
New2novas
Posts: 32
Joined: Wed Sep 18, 2013 6:17 pm

Re: Internal memory in portal isnt updating my system.

Post by New2novas »

Sorry to hijack but....im not sure what you mean, are you referring to where it asks if I want to store the code? What's weird is it worked a couple days ago but not the past few
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Internal memory in portal isnt updating my system.

Post by rimai »

When you generate your code with the wizard, you can choose to save setting in the code, which is recommended for beginners until you are more familiar with the controller and internal memory, which is what the Portal will use to change settings.
You must choose internal memory settings choice if you want to change setting with the Portal.
Roberto.
New2novas
Posts: 32
Joined: Wed Sep 18, 2013 6:17 pm

Re: Internal memory in portal isnt updating my system.

Post by New2novas »

That did it....as always thanks
Image
Post Reply