Relay Activity on Portal
-
- Posts: 17
- Joined: Mon Mar 26, 2012 5:32 am
Re: Relay Activity on Portal
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
if you say yes, .....any chance to change or do i have to create another one????
let me know
Thanks
Re: Relay Activity on Portal
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:
Would that work? I think it would be worth a try at least.
Code: Select all
ReefAngel.Portal("Junior%20Dabul");
-
- Posts: 17
- Joined: Mon Mar 26, 2012 5:32 am
Re: Relay Activity on Portal
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
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
Re: Relay Activity on Portal
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.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.
Yes.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????
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.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Expansion in Portal
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.
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.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
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.
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.
Re: Relay Activity on Portal
Please add this anywhere in your code:
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.
Code: Select all
//Box1_
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.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
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
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.
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.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
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.
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.
Re: Relay Activity on Portal
That's good enough.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
Do you have the Client running?
Roberto.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
I did, but for some reason it has been acting very strange lately. Display looks weird, touch any commands get an exception error, etc. Not able to stop and start services, etc.
Went as far to uninstall and reinstall last night but no better. Is there something in this new code that client doesn't like?
Went as far to uninstall and reinstall last night but no better. Is there something in this new code that client doesn't like?
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.
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.
Re: Relay Activity on Portal
Just make sure that you set the Client not to send parameter to reefangel.com
Or you will get issues in the Portal, similar to what you were mentioning.
Only one thing should send data. Either the controller or the Client.
Or you will get issues in the Portal, similar to what you were mentioning.
Only one thing should send data. Either the controller or the Client.
Roberto.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
got this all fixed...
How would I write an alert on the portal that sent an email (or sms) if port 8 (main pump) turned off. I would also like it to sound the buzzer currently looked to atohigh. thx
How would I write an alert on the portal that sent an email (or sms) if port 8 (main pump) turned off. I would also like it to sound the buzzer currently looked to atohigh. 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.
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.
Re: Relay Activity on Portal
Currently, there is no way to do that, but I'll add to the list shortly.
Roberto.
Re: Relay Activity on Portal
Ok, so thinking about this one, what is that would cause Port 8 to turn off?
Roberto.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
my float valve on the i/o connector that detected an overflow situation on the main tank. (that now works thanks to you!)
My overflow kit from Glass holes will sometimes get clogged and when it does it overfills the tank and it starts pouring out. I mounted a float valve close to it and now when it happens it will trigger the float valve and shut off the pump.
This will work if I can hear the buzzer. If not at home then the portal could warn me that port 8 just turned off, then I would have time to get home, look into it, etc.
thx
My overflow kit from Glass holes will sometimes get clogged and when it does it overfills the tank and it starts pouring out. I mounted a float valve close to it and now when it happens it will trigger the float valve and shut off the pump.
This will work if I can hear the buzzer. If not at home then the portal could warn me that port 8 just turned off, then I would have time to get home, look into it, etc.
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.
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.
Re: Relay Activity on Portal
Oh, in this case it is simple.
You can use one of the custom variables.
Then, on the Portal, you can set a trigger to send you alerts when C0 = 0.
You can use one of the custom variables.
Code: Select all
ReefAngel.CustomVar[0]=ReefAngel.IO.GetChannel(0);
ReefAngel.CustomVar[7]=1;
Roberto.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
Thx Sir, I'll test it over the weekend.
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.
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.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Relay Activity on Portal
This is working fine...tell me again what custom var 7 is doing?rimai wrote:Oh, in this case it is simple.
You can use one of the custom variables.Then, on the Portal, you can set a trigger to send you alerts when C0 = 0.Code: Select all
ReefAngel.CustomVar[0]=ReefAngel.IO.GetChannel(0); ReefAngel.CustomVar[7]=1;
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.
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.
Re: Relay Activity on Portal
Same thing as your Box1_Port8 is doing.
Making sure it keeps something that is non zero to keep that feature alive
Making sure it keeps something that is non zero to keep that feature alive
Roberto.