portal not working, phone app is

Related to the Portal

Posts: 243
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Sun Jun 26, 2016 9:26 am
My portal page keeps showing data from February, when I reload it it shows todays date for a second then goes back to february. Just before it goes back to February, the Connection Status says "Error - 0" for a brief section.

My iphone app is current and both are pointing to the same IP address and port and I confirmed that my port is open. Any ideas why the portal isn't updating even as my iphone app is?
thanks
Image

Posts: 12201
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sun Jun 26, 2016 7:54 pm
Can you post what you get when you browse http://ipaddress:2000/r99 ?
Roberto.

Posts: 243
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Mon Jun 27, 2016 1:04 pm
Here is what came up. Now, when I check the portal from work, it is current. Could it be only happening from my house, like my router changing the IP?

<RA>
<ID>psyrob</ID>
<T1>811</T1>
<T2>784</T2>
<T3>807</T3>
<PH>800</PH>
<R>175</R>
<RON>0</RON>
<ROFF>246</ROFF>
<ATOLOW>0</ATOLOW>
<ATOHIGH>0</ATOHIGH>
<EM>0</EM>
<EM1>2</EM1>
<REM>0</REM>
<BID>1</BID>
<AF>1</AF>
<SF>0</SF>
<PWMA>91</PWMA>
<PWMD>50</PWMD>
<PWMAO>255</PWMAO>
<PWMDO>255</PWMDO>
<DCM>13</DCM>
<DCS>100</DCS>
<DCD>22</DCD>
<DCT>30</DCT>
</RA>
Image

Posts: 243
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Mon Jun 27, 2016 3:19 pm
spoke too soon: now it is back to february data
Image

Posts: 12201
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon Jun 27, 2016 8:00 pm
Ok, there can be two things.
You are using timer 4 or your wifi attachment is not properly configured.
Let's start with the easier. Can you post your code?
Roberto.

Posts: 243
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Sat Jul 09, 2016 5:34 pm
Sorry for the delay, been busy at work: here is my code, note from my banner that the portal is showing data from February... Does this give any answers?
Thanks

[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 <Humidity.h>
#include <DCPump.h>
#include <PAR.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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 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;

// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;


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

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


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

void loop()
{
ReefAngel.ActinicLights( Port2 );
ReefAngel.DayLights( Port3 );
ReefAngel.ActinicLights( Port4 );
ReefAngel.SingleATOLow( Port5 );
ReefAngel.StandardHeater( Port7 );
ReefAngel.StandardFan( Port8 );
ReefAngel.PWM.SetDaylight( MoonPhase() );
ReefAngel.DCPump.UseMemory = true;
ReefAngel.DCPump.DaylightChannel = None;
ReefAngel.DCPump.ActinicChannel = Sync;
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "psyrob" );
ReefAngel.DDNS( "99.90.0.55:2000" ); // Your DDNS is psyrob-99.90.0.55:2000.myreefangel.com
ReefAngel.ShowInterface();
}/code]
Image
User avatar
Posts: 5343
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sat Jul 09, 2016 8:53 pm
Check under Portal Settings in the Portal and make sure you don't have a key setup.

Also your DDNS name. Should just be a name and shouldn't have your IP and Port.

Posts: 243
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Sun Jul 10, 2016 7:22 pm
do you mean the ddns name should be in my code, and not the IP and Port? As in this line in the code:

ReefAngel.DDNS( "99.90.0.55:2000" ); // Your DDNS is psyrob-99.90.0.55:2000.myreefangel.com
should really be
ReefAngel.DDNS("psyrob");//
Image
User avatar
Posts: 5343
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sun Jul 10, 2016 8:33 pm
more like controller1. Then your DDNS name will be psyrob-controller1.myreefangel.com

But the key is more than likely your current problem.

Posts: 243
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Sun Jul 31, 2016 6:45 pm
Well, I'm still not able to connect. I redid my code thru the wizard, and this is what it created:
Code: Select all
 #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 <PAR.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.Use2014Screen();  // Let's use 2014 Screen
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port2Bit | Port3Bit | Port4Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port4Bit | Port7Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;

    // Feeeding and Water Change mode speed
    ReefAngel.DCPump.FeedingSpeed=0;
    ReefAngel.DCPump.WaterChangeSpeed=0;


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

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

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

void loop()
{
    ReefAngel.StandardFan( Port1 );
    ReefAngel.ActinicLights( Port2 );
    ReefAngel.DayLights( Port3 );
    ReefAngel.DayLights( Port4 );
    ReefAngel.SingleATOLow( Port5 );
    ReefAngel.StandardHeater( Port7 );
    ReefAngel.StandardFan( Port8 );
    ReefAngel.PWM.SetDaylight( MoonPhase() );
    ReefAngel.DCPump.UseMemory = true;
    ReefAngel.DCPump.DaylightChannel = None;
    ReefAngel.DCPump.ActinicChannel = Sync;
    ////// Place your custom code below here
   

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

    // This should always be the last line
    ReefAngel.Portal( "psyrob" );
    ReefAngel.DDNS( "99.90.0.55:2000" ); // Your DDNS is psyrob-99.90.0.55:2000.myreefangel.com
    ReefAngel.ShowInterface();
}


And again, my iphone app works but the portal does not. And I don't have a key set up on the portal. I checked that. I will try and change in the code "psyrob" to "psy-rob-controller1.myreefangel.com" and see if that works.
any other ideas?
Image
Next

Return to Portal

Who is online

Users browsing this forum: No registered users and 2 guests

cron