Relay Activity on Portal

Related to the Portal
Sebyte

Relay Activity on Portal

Post by Sebyte »

The portal is working ok and retrieving the data on the relays. But I have noticed one anomaly on my system.

I only have one wave maker pump at this time which is connected to port5. I turn off the wave maker from 9pm to 10am, using this code.
  // Wavemaker not available 9 pm to 10 am

  if ( (hour() >= 20) || (hour() <= 9) )
  {

    ReefAngel.Relay.Off(Port5);

   }
When checking the Portal this morning I noticed that the relay activity seems to have been continuing during the "off period", when in fact the wave maker was definitely off. The code is what I used before moving to v0.9.0.

Should I be using a different code to ensure that port5 is not available during the 9pm to 10am time period, and the real relay activity is captured?

Many thanks.
  
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Relay Activity on Portal

Post by binder »

If you have overridden the port to be always ON, then it will not shutoff. You should make sure the port is actually set to AUTO on the portal. Otherwise if it is forced ON or OFF, that forcing will override your other schedule.

The overriding is handled inside the Write function with this code:

Code: Select all

    byte TempRelay = RelayData;
    TempRelay &= RelayMaskOff;
    TempRelay |= RelayMaskOn;
This has to be there, otherwise you could never override a port and turn it on/off at your desire.
Sebyte

Re: Relay Activity on Portal

Post by Sebyte »

All of the relay ports were set to Auto in the portal.

It would seem then that the Portal is reporting the logic state of the relay, and not the actual state as controlled by the override code.

Just to clarify so that I get the instructions right for the next version of my guide.

Am I right in thinking that the code you show has to be "hand coded" into the .ino file and is not auto generated. Also that it should be in the void setup() section of the code?

Thanks again.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

The Portal should show the actual state of the relay.
The calculation is already done within the portal.
Let me investigate what is going on.
Roberto.
Sebyte

Re: Relay Activity on Portal

Post by Sebyte »

Roberto

Just had another look, and I don't see any activity on port2 which is my ATO. This is another port which I control when it can be available. I can send the code if you need it.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

Here is the compromise I had to make. :(
I initially had the Portal sending data every 5 minutes.
Then, talking to Dave, Curt and John, we came to realize that it would be nice to have it send every relay toggle.
So, I made the changes and started monitoring.
This made the database grow immensely very fast and I would soon be battling space issues.
So, I had to decide to go back and only send data every 5 minutes.
At the present moment, the portal only receives data every 5 minutes, which means if the ATO event happens anywhere in between this 5 minutes, you won't see any activity on the Portal.
I'm still studying other options to get this problem resolved.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

Seems like I'm getting the port5 toggle.
I get 33 (B00100001) and 49 (B00110001) over and over.
I also get ROFF=255 and RON=0, which means that the relay is on auto mode.
Did you confirm that the powerhead goes out at night?
Can I see the entire code?
Roberto.
Sebyte

Re: Relay Activity on Portal

Post by Sebyte »

The WM was definitely off, it went offline at last night as usual and when I checked this morning it was still off until 10:00. I also watched the ports on the RA controller and there was no activity on port5 until 10:00.

My .ino file is not complex as you will see.
// Autogenerated file by RAGen (v1.2.1.158), (02/17/2012 15:06)
// RA_021712_1506.ino
//
// This version designed for v0.9.0 or later

/* The following features are enabled for this File: 
#define DateTimeSetup
#define VersionMenu
#define wifi
#define WDT
#define SIMPLE_MENU
*/


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


void setup()
{
    ReefAngel.Init(); //Initialize controller

    ReefAngel.FeedingModePorts = Port6Bit;
    ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit;
    ReefAngel.OverheatShutoffPorts = Port7Bit | Port8Bit;
    ReefAngel.LightsOnPorts = 0;

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

void loop()
{
    // Specific functions
    ReefAngel.StandardATO(Port2,1000); // ",1000" added to stop ATO after 1000 seconds because of slow fill rate (18-02-12)
    ReefAngel.StandardHeater(Port3);
    ReefAngel.StandardFan(Port4);
    ReefAngel.Wavemaker1(Port5);
    ReefAngel.StandardLights(Port7);
    ReefAngel.MHLights(Port8);
    ReefAngel.Portal("sebyte", "*********");

    // ATO available 6 times per day - 00:00 to 01:00, 04:00 to 05:00, 08:00 to 09:00, 12:00 to 13:00, 16:00 to 17:00, 20:00 to 21:00,


  if (hour() % 4 == 0 && ReefAngel.LowATO.IsActive()) //Rev made 19/11/11
  {

    ReefAngel.Relay.On(Port2);
  }
  else
  { 
    ReefAngel.Relay.Off(Port2);
  }


  // Kalk Reactor available 6 times per day - 01:30 to 2:00, 05:30 to 06:00, 09:30 to 10:00,
  // 13:30 to 14:00, 17:30 to 18:00, 21:30 to 2:00.

  if (hour() % 4 == 1 && minute()>30)
  {
    pinMode(highATOPin,OUTPUT);
    digitalWrite(highATOPin,HIGH); // Turn on Solid State Relay
  }
  else
  {
    pinMode(highATOPin,OUTPUT);
    digitalWrite(highATOPin,LOW); // Turn off Solid State Relay
  } 


  // Wavemaker not available 9 pm to 10 am

  if ( (hour() >= 20) || (hour() <= 9) )
  {

    ReefAngel.Relay.Off(Port5);

   }

     // Web Banner stuff
   // if(ReefAngel.Timer[4].IsTriggered())
   // {
   // ReefAngel.Timer[4].Start();
   // ReefAngel.WebBanner();
   // }

    ReefAngel.ShowInterface();
}
Thanks
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

Ahhh.
You have to place the portal line after your checks or it won't pick up the changes.
The best is to place it above ShowInterface(). That way, you know it is getting the latest changes.
Roberto.
Sebyte

Re: Relay Activity on Portal

Post by Sebyte »

Ok, I understand. But that is the line generated by RAgen, so if it should be at the end of the loop, either RAgen needs to place it there, or we need to document this!

Perhaps a // Place holder for "your code goes here" // could be included in the auto generated code?

I will alter the code and see what happens later. As for the ATO, I now understand that short bursts will not be recorded because of the sampling time scale.

Thanks Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

Yeah, totally agree on the documenting it :)
When RAGen generates the code, the Portal line is placed just above the ShowInterface().
The extra code was added manually by you.
So, what if we placed comment lines like this:

Code: Select all

void loop()
{
    // Specific functions
    ReefAngel.StandardHeater(Port3);
    ReefAngel.StandardFan(Port4);
    ReefAngel.Wavemaker1(Port5);
    ReefAngel.StandardLights(Port7);
    ReefAngel.MHLights(Port8);
    // Place your custom code below

    // Place your custom code above
    ReefAngel.Portal("username", "key");
    ReefAngel.ShowInterface();
}
That would make it very clear for everyone where to place their custom code.
What do you think of this solution?
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

Should've read your post better before posting mine :(
Roberto.
Sebyte

Re: Relay Activity on Portal

Post by Sebyte »

That's the way to go ;)
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Relay Activity on Portal

Post by binder »

Sebyte wrote:That's the way to go ;)
Ok, "twist my arm" to add it into RAGen. ;-)

Man, you guys are keeping me busy with all these additions. :geek:
Sebyte

Re: Relay Activity on Portal

Post by Sebyte »

More Kudos to you :P
Junior Dabul
Posts: 17
Joined: Mon Mar 26, 2012 5:32 am

Re: Relay Activity on Portal

Post by Junior Dabul »

sorry for jump in.

My relay activity on the portal shows "no data" and the dashboard doesnt show any activity too. unless i change to auto.

as far as i understood i have to set the RA to send data to it ,right??? or the client suit?. Once my client suit is not working properly by the expansion relay communication version (waiting the new 3.0), i may have to set the controller to send it.

this is my banner :

http://forum.reefangel.com/status/banne ... ?id=Junior Dabul&t=10 this is my banner code

how should be and where to place the code to send the data???

I will try this one below but its something wrong. its doesnt verify on Arduino. i havent upload yet.

#include <avr/pgmspace.h>
prog_char id_label[] PROGMEM = "junior";
prog_char probe1_label[] PROGMEM = "Water";
prog_char probe2_label[] PROGMEM = "Room";
prog_char probe3_label[] PROGMEM = "light";
prog_char relay1_label[] PROGMEM = "ATO";
prog_char relay2_label[] PROGMEM = "Actinic & Daylight";
prog_char relay3_label[] PROGMEM = "Moonlight";
prog_char relay4_label[] PROGMEM = "Chiller";
prog_char relay5_label[] PROGMEM = "Wavemaker 1";
prog_char relay6_label[] PROGMEM = "Wavemaker 1";
prog_char relay7_label[] PROGMEM = "Heater";
prog_char relay8_label[] PROGMEM = "Return";
#ifdef RelayExp
#if InstalledRelayExpansionModules >= 1
prog_char relay11_label[] PROGMEM = "Sump Light";
prog_char relay12_label[] PROGMEM = "UV light";
prog_char relay13_label[] PROGMEM = "Skimmer";
prog_char relay14_label[] PROGMEM = "Wavemaker 3";
prog_char relay15_label[] PROGMEM = "Phos Reactor";
prog_char relay16_label[] PROGMEM = "Carbon Reactor";
prog_char relay17_label[] PROGMEM = "Dosing Pump";
prog_char relay18_label[] PROGMEM = "Always On";
#endif // InstalledRelayExpansionModules >= 1
#endif // RelayExp

PROGMEM const char *webbanner_items[] = {
id_label, probe1_label, probe2_label, probe3_label,
relay1_label, relay2_label, relay3_label, relay4_label,
relay5_label, relay6_label, relay7_label, relay8_label,
#ifdef RelayExp
#if InstalledRelayExpansionModules >= 1
relay11_label, relay12_label, relay13_label, relay14_label,
relay15_label, relay16_label, relay17_label, relay18_label,
#endif // InstalledRelayExpansionModules >= 1
#endif // RelayExp
};

void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.LoadWebBanner(pgm_read_word(&(webbanner_items[0])), SIZE(webbanner_items));

// Initialize and start the timer
ReefAngel.Timer[4].SetInterval(120); // set interval to 180 seconds
ReefAngel.Timer[4].Start();

ReefAngel.SetTemperatureUnit(1); // set to Celsius Temperature
// Ports that are always on
ReefAngel.Relay.On(Port8);
ReefAngel.Relay.On(Box1_Port2);
ReefAngel.Relay.On(Box1_Port1); //UV Lights
ReefAngel.Relay.On(Box1_Port3); //Skimmer
ReefAngel.Relay.On(Box1_Port4); //GFO Reactor
ReefAngel.Relay.On(Box1_Port5); //Carbon Reactor
ReefAngel.Relay.On(Box1_Port8); //Always On
}
void loop()
{
// Specific functions
ReefAngel.StandardATO(Port1,60); //Setup Port1 as Auto Top-Off function with 60s timeout
ReefAngel.StandardLights(Port2,9,00,17,00); //Actinic and Daylights schedule 9:00am - 5:00pm
ReefAngel.StandardLights(Port3,22,30,5,0); //Moonlight schedule 10:30pm - 5:00am
ReefAngel.StandardFan(Port4,250,246); // Setup Chiller to turn on at 25.0C and off at 24.6C
ReefAngel.Wavemaker(Port5,300);
ReefAngel.Wavemaker(Port6,300);
ReefAngel.StandardHeater(Port7,242,250); // Setup Heater to turn on at 24.2C and off at 25.0C
ReefAngel.StandardLights(Box1_Port2,22,30,14,30); //Refugium schedule 10:30pm - 2:30pm
ReefAngel.Wavemaker(Box1_Port6,60); //Wavemaker on 60sec cycle
ReefAngel.DosingPump1(Box1_Port7); //DosingPump1
ReefAngel.Portal("juniordabul", "XXXXXXX");
ReefAngel.ShowInterface();

if ( ReefAngel.Timer[4].IsTriggered() )
{
ReefAngel.Timer[4].Start();
ReefAngel.WebBanner();
}
}

that is the error:

alteracoes_17apr.cpp.o: In function `loop':
C:\Users\JUNIOR~1\AppData\Local\Temp\build9090624217643483980.tmp/alteracoes_17apr.cpp:114: undefined reference to `ReefAngelClass::WebBanner()'
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

Try this:

Code: Select all

#include <Salinity.h>
#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 <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <ReefAngel.h>

void setup()
{
 ReefAngel.Init(); //Initialize controller
 ReefAngel.SetTemperatureUnit(1); // set to Celsius Temperature
 // Ports that are always on
 ReefAngel.Relay.On(Port8);
 ReefAngel.Relay.On(Box1_Port2);
 ReefAngel.Relay.On(Box1_Port1); //UV Lights
 ReefAngel.Relay.On(Box1_Port3); //Skimmer
 ReefAngel.Relay.On(Box1_Port4); //GFO Reactor
 ReefAngel.Relay.On(Box1_Port5); //Carbon Reactor
 ReefAngel.Relay.On(Box1_Port8); //Always On
}
void loop()
{
 // Specific functions
 ReefAngel.StandardATO(Port1,60); //Setup Port1 as Auto Top-Off function with 60s timeout
 ReefAngel.StandardLights(Port2,9,00,17,00); //Actinic and Daylights schedule 9:00am - 5:00pm
 ReefAngel.StandardLights(Port3,22,30,5,0); //Moonlight schedule 10:30pm - 5:00am
 ReefAngel.StandardFan(Port4,250,246); // Setup Chiller to turn on at 25.0C and off at 24.6C
 ReefAngel.Wavemaker(Port5,300);
 ReefAngel.Wavemaker(Port6,300);
 ReefAngel.StandardHeater(Port7,242,250); // Setup Heater to turn on at 24.2C and off at 25.0C
 ReefAngel.StandardLights(Box1_Port2,22,30,14,30); //Refugium schedule 10:30pm - 2:30pm
 ReefAngel.Wavemaker(Box1_Port6,60); //Wavemaker on 60sec cycle
 ReefAngel.DosingPump1(Box1_Port7); //DosingPump1
 ReefAngel.Portal("Junior Dabul");
 ReefAngel.ShowInterface();

}
The WebBanner function() you were trying to use is deprecated.
It has been replaced with the Portal() function.
Also, I noticed that your forum username has a space and your Portal() function had no space.
I'm not sure if it will work, but work a try. The space may cause issues.
The reason you are not seeing the relay expansion is because you have the Client sending data and it is not ready to send the expansion box data just yet.
My suggestion is disable the Client sending data and use only the controller with the Portal() function.
Roberto.
Junior Dabul
Posts: 17
Joined: Mon Mar 26, 2012 5:32 am

Re: Relay Activity on Portal

Post by Junior Dabul »

the difference on space and no space is because the Client no recognize with the space and i had to put the user with no space.
just to make simple i tried change on the portal to have no space but i cannot.

i will try with the space as i believe if that's the way set up .So that is the way should be. if don't work i will try with no space.

About the client i know i have to wait to the new version.

The gadgets stopped working. i don't know. Suddenly it lost the IP and now when i put back seems doesn't recognize. doesn't show any activity. it show all the ports in both relays to set up but before when was working was showing the main relay and didnt show any the relay expansion. :(
Junior Dabul
Posts: 17
Joined: Mon Mar 26, 2012 5:32 am

Re: Relay Activity on Portal

Post by Junior Dabul »

I tried all. with space, without....all the same.....the portal connects but no relay extension or relay activity data.

i already set the client to not send the data.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

If you use without the space, your forum username has to be without space too.
It tracks by the forum username
Roberto.
Junior Dabul
Posts: 17
Joined: Mon Mar 26, 2012 5:32 am

Re: Relay Activity on Portal

Post by Junior Dabul »

ok...so do you think i have to use without space???? because if you say yes i have to chance my ID name at the portal.

if you say yes, .....any chance to change or do i have to create another one????

let me know

Thanks
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Relay Activity on Portal

Post by binder »

Just a thought about spaces, since it is web based, would the %20 work instead of a space? So you would do something like this:

Code: Select all

ReefAngel.Portal("Junior%20Dabul");
Would that work? I think it would be worth a try at least.
Junior Dabul
Posts: 17
Joined: Mon Mar 26, 2012 5:32 am

Re: Relay Activity on Portal

Post by Junior Dabul »

Hi Curt....it looks kind of working now with the %20.

W am new in here and dont know much about it. when i access the banner it show the activity on both relays (one expansion) but at the portal page on dashboard and relay activity still showing only the standard relay and no data on relay activity.

Other thing is on dash board when i access i show on OFF and when i change for Auto it show if the port is on or off. is that right????

Cheers
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Relay Activity on Portal

Post by binder »

Junior Dabul wrote:Hi Curt....it looks kind of working now with the %20.

W am new in here and dont know much about it. when i access the banner it show the activity on both relays (one expansion) but at the portal page on dashboard and relay activity still showing only the standard relay and no data on relay activity.
I don't know much about the Portal and all the sections of it. I haven't used the Portal much at all and it's still relatively new. Roberto or somebody else will have to comment on this one.
Other thing is on dash board when i access i show on OFF and when i change for Auto it show if the port is on or off. is that right????
Yes.

When you are looking at the relay status on the portal page (the same with the /wifi page on the controller), if it says ON or OFF, that means the port is overridden and forced ON or OFF. The port will not change automatically based on the code on the controller. When it's set to AUTO, the port is running on its normal schedule. The color will be RED for OFF and GREEN for ON.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: Relay Expansion in Portal

Post by rossbryant1956 »

I can no longer see my relay box 1 in the portal. Relay box 0 works fine but 1 is not there. I checked features.h, even ran the test utilities, and they work just fine on both boxes. Please let me know what I am doing wrong. I have libs 9.9

Code: Select all

// AutoGenerated file by Reef Angel Wizard

/*
 * Copyright 2012 Reef Angel
 *
 * Licensed under the Apache License, Version 2.0 (the "License")
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#ifndef __REEFANGEL_FEATURES_H__
#define __REEFANGEL_FEATURES_H__

#define SIMPLE_MENU
#define InstalledRelayExpansionModules 1
#define RelayExp
#define wifi
#define VersionMenu
#define WDT


#endif  // __REEFANGEL_FEATURES_H__

Code: Select all

// Autogenerated file by RAGen (v1.2.1.158), (02/17/2012 22:55)

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

void setup()
{
    ReefAngel.Init();  //Initialize controller
    ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port8Bit; // Turn off Port 5, Port 6, Port8 when feeding mode is activated
    ReefAngel.WaterChangePorts = Port5Bit | Port6Bit | Port7Bit | Port8Bit; // Turn off Port5, Port6, Port7 and Port8 when water change mode is activated
    ReefAngel.TempProbe = T2_PROBE;  // Set the 1st plug (which acts like the 2nd plug) 
    ReefAngel.OverheatProbe = T2_PROBE;  // to monitor the overheat and temperatures
    ReefAngel.Relay.On(Port8); // Turn on Pump
}

void loop()
{
    // Specific functions
    ReefAngel.StandardLights(Port2,8,00,23,00); // Regular Lights on at 8:00am and off at 11:00pm
    ReefAngel.StandardLights(Port3,00,30,03,30); // Moon Lights on at 12:30am and off at 3:30am
    ReefAngel.StandardLights(Port4,23,30,14,30);  //Refugium schedule 11:30pm - 2:30pm
    ReefAngel.Wavemaker1(Port5);
    ReefAngel.Wavemaker2(Port6);
    ReefAngel.StandardHeater(Port7);
    // Randomize the Timer
	static time_t timer=now()+15;
	if (now()>timer)
	{
		timer=now()+random(15, 60);
	}
	ReefAngel.WavemakerToggle(Port5, Port6, timer);
    // turn on port 7 when temp falls below 76.0 and turn off when temp gets above 80.0
    if (ReefAngel.Params.Temp[T2_PROBE] <= 780 && ReefAngel.Params.Temp[T2_PROBE] > 0) ReefAngel.Relay.On(Port7); 
    if (ReefAngel.Params.Temp[T2_PROBE] >= 791) ReefAngel.Relay.Off(Port7);
    if (ReefAngel.Params.Temp[T1_PROBE] <= 780 && ReefAngel.Params.Temp[T1_PROBE] > 0) ReefAngel.Relay.On(Box1_Port1);
    if (ReefAngel.Params.Temp[T1_PROBE] >= 791) ReefAngel.Relay.Off(Box1_Port1);
    // if the hour is 8a or 6p, minute is 55 and seconds is 0
	// start the feeding mode
		if ( ((hour() == 8) || (hour() == 18)) && 
		(minute() == 55) && 
		(second() == 0) ) 
                {
		ReefAngel.FeedingModeStart();
		}	
    ReefAngel.Portal("rossbryant1956");
    ReefAngel.ShowInterface();
}
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: Relay Activity on Portal

Post by rossbryant1956 »

My second expansion box just turned up on the portal but not the labels are gone. Strange.
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

Please add this anywhere in your code:

Code: Select all

//Box1_
It's the new auto feature selection I developed that is kicking in.
There is no more such a thing as features file.
Anything you do to that file will just end up being modified by Arduino IDE.
It's looking for specific keywords to enable the expansion relay box.
Roberto.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: Relay Activity on Portal

Post by rossbryant1956 »

it shows up in this line of code:

if (ReefAngel.Params.Temp[T1_PROBE] >= 791) ReefAngel.Relay.Off(Box1_Port1);

is that good enough or do I need a

//box1

thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: Relay Activity on Portal

Post by rossbryant1956 »

also weird, look at the sig line...my labels are there but not on the portal and are not defined in the code.
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Relay Activity on Portal

Post by rimai »

rossbryant1956 wrote:it shows up in this line of code:

if (ReefAngel.Params.Temp[T1_PROBE] >= 791) ReefAngel.Relay.Off(Box1_Port1);

is that good enough or do I need a

//box1

thx
That's good enough.
Do you have the Client running?
Roberto.
Post Reply