Client send data to portal is dimmed
Re: Client send data to portal is dimmed
Can you post the code from your ReefAngel Head unit?
Re: Client send data to portal is dimmed
Do you have the Reef Angel WiFi addon?
If you're using the Client to communicate with the controller over wifi, the application should not let you use the portal functionality. The Client will leave that responsibility to your controller and wifi addon.
The "Push parameters to reef angel portal" checkbox should only be enabled if the Client is setup for USB. In this scenario the controller cannot push your data to the portal and the Client (Specifically the Notification Service) will take over that responsibility.
So that checkbox is only enabled if you've got the Client Suite setup to communicate over USB. It won't be enabled for WiFi.
Additionally, for the Client to work, you need to enable the wifi addon from the Reef Angel Wizard. Even if you don't have it. The Client Suite Listener Service needs wifi code running on your controller to communicate with it properly, even over USB. From the Reef Angel Wizard, when you get to the step where you can choose available addons, enable the wifi checkbox even if you don't have it. Then leave the portal settings blank in the wizard and set them instead in the Client.
Also, I know its not documented or even obvious, but if you're on the settings screen in the Client you want to make sure the Listener/Logger/Notification services are all running/connected. You can tell because they should all be green in the bottom status bar. The Client will take the changes you make in the settings screen and pass them off to the individual services. Those services will then store the settings individually. If they're not running when you try to make a change, you will get an error and the settings won't be applied.
When I need to stop/restart the services here's the proper way to do it. Exit the Client window and start the Service Dashboard application that comes with the install and stop all the services. The proper way to start them is Listener first, then Logger, then Notification service. Though it should work no matter the order you start them, you can avoid potential issues by starting the Listener first then the other 2.
If you're using the Client to communicate with the controller over wifi, the application should not let you use the portal functionality. The Client will leave that responsibility to your controller and wifi addon.
The "Push parameters to reef angel portal" checkbox should only be enabled if the Client is setup for USB. In this scenario the controller cannot push your data to the portal and the Client (Specifically the Notification Service) will take over that responsibility.
So that checkbox is only enabled if you've got the Client Suite setup to communicate over USB. It won't be enabled for WiFi.
Additionally, for the Client to work, you need to enable the wifi addon from the Reef Angel Wizard. Even if you don't have it. The Client Suite Listener Service needs wifi code running on your controller to communicate with it properly, even over USB. From the Reef Angel Wizard, when you get to the step where you can choose available addons, enable the wifi checkbox even if you don't have it. Then leave the portal settings blank in the wizard and set them instead in the Client.
Also, I know its not documented or even obvious, but if you're on the settings screen in the Client you want to make sure the Listener/Logger/Notification services are all running/connected. You can tell because they should all be green in the bottom status bar. The Client will take the changes you make in the settings screen and pass them off to the individual services. Those services will then store the settings individually. If they're not running when you try to make a change, you will get an error and the settings won't be applied.
When I need to stop/restart the services here's the proper way to do it. Exit the Client window and start the Service Dashboard application that comes with the install and stop all the services. The proper way to start them is Listener first, then Logger, then Notification service. Though it should work no matter the order you start them, you can avoid potential issues by starting the Listener first then the other 2.
Re: Client send data to portal is dimmed
Hello
i have the wifi module but the portal is not working fine
so Roberto suggested that may be my internet provider is blocking the traffic
so he asked me to configure the client to do it and see if it works or not
here is my reef angel code
==============================================================================
#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 <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
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port6Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port7Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port7Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 350 );
// Ports that are always on
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port1,9,0,22,0 );
ReefAngel.StandardLights( Port2,11,0,21,0 );
ReefAngel.StandardLights( Port3,15,0,19,0 );
ReefAngel.StandardLights( Port4,22,0,10,0 );
ReefAngel.StandardATO( Port5,60 );
ReefAngel.StandardHeater( Port7,250,320 );
ReefAngel.PWM.SetDaylight( MoonPhase() );
ReefAngel.PWM.SetActinic( MoonPhase() );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "waelaase" );
ReefAngel.ShowInterface();
}
void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();
// Water Level
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,75,66, "WL:" );
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,99,66, ReefAngel.WaterLevel.GetLevel() );
pingSerial();
// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 92, TempRelay );
pingSerial();
// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}
void DrawCustomGraph()
{
}
==============================================================================
i have the wifi module but the portal is not working fine
so Roberto suggested that may be my internet provider is blocking the traffic
so he asked me to configure the client to do it and see if it works or not
here is my reef angel code
==============================================================================
#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 <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
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port6Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port7Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port7Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 350 );
// Ports that are always on
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port1,9,0,22,0 );
ReefAngel.StandardLights( Port2,11,0,21,0 );
ReefAngel.StandardLights( Port3,15,0,19,0 );
ReefAngel.StandardLights( Port4,22,0,10,0 );
ReefAngel.StandardATO( Port5,60 );
ReefAngel.StandardHeater( Port7,250,320 );
ReefAngel.PWM.SetDaylight( MoonPhase() );
ReefAngel.PWM.SetActinic( MoonPhase() );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "waelaase" );
ReefAngel.ShowInterface();
}
void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();
// Water Level
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,75,66, "WL:" );
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,99,66, ReefAngel.WaterLevel.GetLevel() );
pingSerial();
// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 92, TempRelay );
pingSerial();
// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}
void DrawCustomGraph()
{
}
==============================================================================
[img]/status/banner_3.aspx?id=waelaase&t=2[/img]
Re: Client send data to portal is dimmed
i tried to day to uninstall and reinstall the new version
while in the installation and when i select the library i got the following error
whoops. #define wifi" wasn't found in yuor ReefAngel_Features.h file. you should add it and reupload your sketch
could this be a problem
while in the installation and when i select the library i got the following error
whoops. #define wifi" wasn't found in yuor ReefAngel_Features.h file. you should add it and reupload your sketch
could this be a problem
[img]/status/banner_3.aspx?id=waelaase&t=2[/img]
Re: Client send data to portal is dimmed
Yes, you need to upload the code again and make sure the wifi is enabled by either using:
ReefAngel.AddWifi();
or
ReefAngel.Portal("username");
If you just compile the code, you should see the wifi feature detected.
ReefAngel.AddWifi();
or
ReefAngel.Portal("username");
If you just compile the code, you should see the wifi feature detected.
Roberto.