Uapp Graph shows no Data to display always.

Community contributed apps
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Uapp Graph shows no Data to display always.

Post by SouthernReefer »

How do i get Uapp to actually graph for me? Now that the tanks been up and cycling for a few weeks, id like to graph the Temps over time to test that out. Everytime i do, i get no data to display.. Any ideas?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

Your controller is not sending data to the server.
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Your controller is not sending data to the server.
Interesting... OK so how do i get it to send? Cloud works otherwise, It allows me full control, but id like to get that working if we can. Im cycling so nows the time to get it working :)
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

That's odd. Did you try rebooting the controller?
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:That's odd. Did you try rebooting the controller?
Yes actually I rebooted it yesterday as it was locked up. As a side note how can I tell what's locking it up? The screen was unresponsive and a timeout in Uapp. Reboot fixed it tho. Either way is there a way to troubleshoot why I wouldn't be sending data?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

Are you able to connect the controller to a computer and open serial monitor?
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Are you able to connect the controller to a computer and open serial monitor?

I'd have to take it off the side of the tank and essentially take the tank offline, as I don't have a laptop or a pc close to the controller.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

If it helps. Network wise I am conencted to a Mesh wifi adapter that is then connected back to my Netgear router wirelessly though their protocol. cloud works well.

The only issues im seeing right now, is that im not getting data to you, which concerns me from an alerting standpoint going forward, and ive froze up a couple times.

I did the standard web wizard setup, but i didnt see anything for that in there.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

The last log shows 9/28.
Nothing after that. Was anything changed during that time?
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:The last log shows 9/28.
Nothing after that. Was anything changed during that time?

09-28-20 was when we worked through the issues with AVRDUDE to get my code pushed. that was my first code push, and then i got cloud working. I can move my all in one out to the tank if i need to, but will that kill my relay box running the tank while we monitor?
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:The last log shows 9/28.
Nothing after that. Was anything changed during that time?

Im also assuming this is why the ATO alerts ive configured have not sent me emails too, while i was testing.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:The last log shows 9/28.
Nothing after that. Was anything changed during that time?
Also is there a step by step guide to get the logs for you, or is is something that we need to coordinate so I do it while you watch your side? Just want to make sure i catch everything right, as i can setup a temp station for PC tonight.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

I e run a test direct cable vs my netgear adapter to see if it's that causing issuesm let me know of you suddenly see logs.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

I don't think it made a difference. Last log is still 09/28.
The alerts are not firing because the server never got data to fire the alerts.
All you need to do is connect the controller on your computer and open serial monitor on Arduino IDE.
The controller will start logging stuff. Wait about 10 to 15 minutes to make sure we catch a couple tries of the controller trying to send data.
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:I don't think it made a difference. Last log is still 09/28.
The alerts are not firing because the server never got data to fire the alerts.
All you need to do is connect the controller on your computer and open serial monitor on Arduino IDE.
The controller will start logging stuff. Wait about 10 to 15 minutes to make sure we catch a couple tries of the controller trying to send data.
And then just send you the output?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

Yes
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Yes
Ok. I will do this aftwr work. I'll have to move the PC out there but I can make that work I think so I don't have to unplug everything to get this accomplished.infofured network was worth a test, but clearly wired direct to main wifi router makes no difference.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Yes
Ok. I will do this aftwr work. I'll have to move the PC out there but I can make that work I think so I don't have to unplug everything to get this accomplished.infofured network was worth a test, but clearly wired direct to main wifi router makes no difference.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:The last log shows 9/28.
Nothing after that. Was anything changed during that time?
Here is the serial
RA Init
SPI Init
LCD Init
Network Init
Touch Init
SD Found: 1
SD Init
192.168.1.19
MQTT Connecting...
MQTT failed
MQTT Connecting...
Channel 5MQTT succeeded
Channel 5all:0
Channel 5Portal Call
Channel 5Data Sent
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:24:07 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>
ÿDisconnected
Channel 5Connecting...
Channel 5Connected
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:24:08 GMT
Connection: close
Content-Length: 339

Data: 339
Channel 5Header: 0
Channel 5Disconnected
Channel 5Portal Call
Channel 5Data Sent
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:29:08 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>
ÿDisconnected
Channel 5Connecting...
Channel 5Connected
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:29:10 GMT
Connection: close
Content-Length: 339

Data: 339
Channel 5Header: 0
Channel 5Disconnected
Channel 5Portal Call
Channel 5Data Sent
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:34:09 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>
ÿDisconnected
Channel 5Connecting...
Channel 5Connected
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:34:10 GMT
Connection: close
Content-Length: 339

Data: 339
Channel 5Header: 0
Channel 5Disconnected
Channel 5Portal Call
Channel 5Data Sent
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:39:10 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>
ÿDisconnected
Channel 5Connecting...
Channel 5Connected
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:39:11 GMT
Connection: close
Content-Length: 339

Data: 339
Channel 5Header: 0
Channel 5Disconnected
Channel 5Portal Call
Channel 5Data Sent
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:44:12 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>
ÿDisconnected
Channel 5Connecting...
Channel 5Connected
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Oct 2020 20:44:13 GMT
Connection: close
Content-Length: 339

Data: 339
Channel 5Header: 0
Channel 5Disconnected
Channel 5
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

Definitely something going on there.
Can you please post your code?
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Definitely something going on there.
Can you please post your code?
#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
ReefAngel.FeedingModePortsE[0] = Port7Bit;
ReefAngel.FeedingModePortsE[1] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
ReefAngel.WaterChangePortsE[0] = Port1Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit;
ReefAngel.WaterChangePortsE[1] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port1Bit;
ReefAngel.OverheatShutoffPortsE[1] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = 0;
ReefAngel.LightsOnPortsE[1] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 820 );

// Ports that are always on
ReefAngel.Relay.On( Box1_Port1 );
ReefAngel.Relay.On( Box1_Port2 );
ReefAngel.Relay.On( Box1_Port3 );
ReefAngel.Relay.On( Box1_Port5 );

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


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

void loop()
{
ReefAngel.Relay.DelayedOn( Box1_Port4,10 );
ReefAngel.Relay.DelayedOn( Box1_Port6,10 );
ReefAngel.SingleATO( true,Box1_Port7,45,0 );
ReefAngel.StandardLights( Box1_Port8,22,0,10,0 );

boolean buzzer=false;
if ( ReefAngel.isATOTimeOut() ) buzzer=true;
if ( ReefAngel.isOverheat() ) buzzer=true;
if ( ReefAngel.isBusLock() ) buzzer=true;
if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();
if ( ReefAngel.Params.Temp[ T1_PROBE ] >= 820 ) ReefAngel.Relay.Off( Port1 );
if ( ReefAngel.Params.Temp[ T1_PROBE ] <= 775 ) ReefAngel.Relay.On( Port1 );

////// Place your custom code below here


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

ReefAngel.Network.Cloud();
// This should always be the last line
ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX18SRGs3W6Nho4tbkPQm9kNx1zw1++/r4LSB5npUkT/wWfcMeCtcWzAq
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_PORT16=Skimmer
// RA_LABEL LABEL_PORT14=Dosing Pump
// RA_LABEL LABEL_PORT17=ATO
// RA_LABEL LABEL_PORT15=PowerHeads
// RA_LABEL LABEL_PORT13=Return Pump
// RA_LABEL LABEL_PORT18=Cheato Reactor Light
// RA_LABEL LABEL_PORT11=Heater Controller
// RA_LABEL LABEL_PORT12=Cheato Reactor
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Definitely something going on there.
Can you please post your code?

i have 2 code sets that i had started with im 99 percent sure the one i posted is what is on there. Is there a way to tell which one i actually uploaded to make sure im 100 percent good?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

There is no way to find out which code you have.
I also cannot replicate the problem. I tried the exact same code and it connects fine for me.
Can you try creating a new forum username and password?
I am not sure if this will work, but it is worth a try.
The only thing different is the username and password, because I used the exact same code.
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:There is no way to find out which code you have.
I also cannot replicate the problem. I tried the exact same code and it connects fine for me.
Can you try creating a new forum username and password?
I am not sure if this will work, but it is worth a try.
The only thing different is the username and password, because I used the exact same code.

Will that break anything? Will I need to re upload code? Does it maybe not like special characters?
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:There is no way to find out which code you have.
I also cannot replicate the problem. I tried the exact same code and it connects fine for me.
Can you try creating a new forum username and password?
I am not sure if this will work, but it is worth a try.
The only thing different is the username and password, because I used the exact same code.
Could it be something my ISP is blocking as well?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

You would need to generate a new code.usimg the new username and upload it to the controller.
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:You would need to generate a new code.usimg the new username and upload it to the controller.

I tried to create a new account using same email and it won't let me. That's my only email address.
Screenshot_20201030-191644.png
Screenshot_20201030-191644.png (200.3 KiB) Viewed 4904 times
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Uapp Graph shows no Data to display always.

Post by rimai »

Ok, let's try this....
Login with the username and password I PM you.
Load the code below and open serial monitor.
Let's see if it makes any difference.

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    ReefAngel.FeedingModePortsE[0] = Port7Bit;
    ReefAngel.FeedingModePortsE[1] = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    ReefAngel.WaterChangePortsE[0] = Port1Bit | Port3Bit | Port4Bit |
Port5Bit | Port6Bit | Port7Bit;
    ReefAngel.WaterChangePortsE[1] = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    ReefAngel.OverheatShutoffPortsE[0] = Port1Bit;
    ReefAngel.OverheatShutoffPortsE[1] = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    ReefAngel.LightsOnPortsE[0] = 0;
    ReefAngel.LightsOnPortsE[1] = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 820 );

    // Ports that are always on
    ReefAngel.Relay.On( Box1_Port1 );
    ReefAngel.Relay.On( Box1_Port2 );
    ReefAngel.Relay.On( Box1_Port3 );
    ReefAngel.Relay.On( Box1_Port5 );

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


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

void loop()
{
    ReefAngel.Relay.DelayedOn( Box1_Port4,10 );
    ReefAngel.Relay.DelayedOn( Box1_Port6,10 );
    ReefAngel.SingleATO( true,Box1_Port7,45,0 );
    ReefAngel.StandardLights( Box1_Port8,22,0,10,0 );

    boolean buzzer=false;
    if ( ReefAngel.isATOTimeOut() ) buzzer=true;
    if ( ReefAngel.isOverheat() ) buzzer=true;
    if ( ReefAngel.isBusLock() ) buzzer=true;
    if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();
    if ( ReefAngel.Params.Temp[ T1_PROBE ] >= 820 ) ReefAngel.Relay.Off(
Port1 );
    if ( ReefAngel.Params.Temp[ T1_PROBE ] <= 775 ) ReefAngel.Relay.On(
Port1 );

    ////// Place your custom code below here


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

    ReefAngel.Network.Cloud();
    // This should always be the last line
    ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX19jYtoXu4XqRVPLLcwq6OqB5Y/7iQ0mRvU=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_PORT16=Skimmer
// RA_LABEL LABEL_PORT14=Dosing Pump
// RA_LABEL LABEL_PORT17=ATO
// RA_LABEL LABEL_PORT15=PowerHeads
// RA_LABEL LABEL_PORT13=Return Pump
// RA_LABEL LABEL_PORT18=Cheato Reactor Light
// RA_LABEL LABEL_PORT11=Heater Controller
// RA_LABEL LABEL_PORT12=Cheato Reactor
Roberto.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Ok, let's try this....
Login with the username and password I PM you.
Load the code below and open serial monitor.
Let's see if it makes any difference.

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    ReefAngel.FeedingModePortsE[0] = Port7Bit;
    ReefAngel.FeedingModePortsE[1] = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    ReefAngel.WaterChangePortsE[0] = Port1Bit | Port3Bit | Port4Bit |
Port5Bit | Port6Bit | Port7Bit;
    ReefAngel.WaterChangePortsE[1] = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    ReefAngel.OverheatShutoffPortsE[0] = Port1Bit;
    ReefAngel.OverheatShutoffPortsE[1] = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    ReefAngel.LightsOnPortsE[0] = 0;
    ReefAngel.LightsOnPortsE[1] = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 820 );

    // Ports that are always on
    ReefAngel.Relay.On( Box1_Port1 );
    ReefAngel.Relay.On( Box1_Port2 );
    ReefAngel.Relay.On( Box1_Port3 );
    ReefAngel.Relay.On( Box1_Port5 );

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


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

void loop()
{
    ReefAngel.Relay.DelayedOn( Box1_Port4,10 );
    ReefAngel.Relay.DelayedOn( Box1_Port6,10 );
    ReefAngel.SingleATO( true,Box1_Port7,45,0 );
    ReefAngel.StandardLights( Box1_Port8,22,0,10,0 );

    boolean buzzer=false;
    if ( ReefAngel.isATOTimeOut() ) buzzer=true;
    if ( ReefAngel.isOverheat() ) buzzer=true;
    if ( ReefAngel.isBusLock() ) buzzer=true;
    if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();
    if ( ReefAngel.Params.Temp[ T1_PROBE ] >= 820 ) ReefAngel.Relay.Off(
Port1 );
    if ( ReefAngel.Params.Temp[ T1_PROBE ] <= 775 ) ReefAngel.Relay.On(
Port1 );

    ////// Place your custom code below here


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

    ReefAngel.Network.Cloud();
    // This should always be the last line
    ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX19jYtoXu4XqRVPLLcwq6OqB5Y/7iQ0mRvU=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_PORT16=Skimmer
// RA_LABEL LABEL_PORT14=Dosing Pump
// RA_LABEL LABEL_PORT17=ATO
// RA_LABEL LABEL_PORT15=PowerHeads
// RA_LABEL LABEL_PORT13=Return Pump
// RA_LABEL LABEL_PORT18=Cheato Reactor Light
// RA_LABEL LABEL_PORT11=Heater Controller
// RA_LABEL LABEL_PORT12=Cheato Reactor
Doing it now.
SouthernReefer
Posts: 152
Joined: Thu Nov 14, 2019 2:51 pm

Re: Uapp Graph shows no Data to display always.

Post by SouthernReefer »

rimai wrote:Ok, let's try this....
Login with the username and password I PM you.
Load the code below and open serial monitor.
Let's see if it makes any difference.

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    ReefAngel.FeedingModePortsE[0] = Port7Bit;
    ReefAngel.FeedingModePortsE[1] = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    ReefAngel.WaterChangePortsE[0] = Port1Bit | Port3Bit | Port4Bit |
Port5Bit | Port6Bit | Port7Bit;
    ReefAngel.WaterChangePortsE[1] = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    ReefAngel.OverheatShutoffPortsE[0] = Port1Bit;
    ReefAngel.OverheatShutoffPortsE[1] = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    ReefAngel.LightsOnPortsE[0] = 0;
    ReefAngel.LightsOnPortsE[1] = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 820 );

    // Ports that are always on
    ReefAngel.Relay.On( Box1_Port1 );
    ReefAngel.Relay.On( Box1_Port2 );
    ReefAngel.Relay.On( Box1_Port3 );
    ReefAngel.Relay.On( Box1_Port5 );

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


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

void loop()
{
    ReefAngel.Relay.DelayedOn( Box1_Port4,10 );
    ReefAngel.Relay.DelayedOn( Box1_Port6,10 );
    ReefAngel.SingleATO( true,Box1_Port7,45,0 );
    ReefAngel.StandardLights( Box1_Port8,22,0,10,0 );

    boolean buzzer=false;
    if ( ReefAngel.isATOTimeOut() ) buzzer=true;
    if ( ReefAngel.isOverheat() ) buzzer=true;
    if ( ReefAngel.isBusLock() ) buzzer=true;
    if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();
    if ( ReefAngel.Params.Temp[ T1_PROBE ] >= 820 ) ReefAngel.Relay.Off(
Port1 );
    if ( ReefAngel.Params.Temp[ T1_PROBE ] <= 775 ) ReefAngel.Relay.On(
Port1 );

    ////// Place your custom code below here


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

    ReefAngel.Network.Cloud();
    // This should always be the last line
    ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX19jYtoXu4XqRVPLLcwq6OqB5Y/7iQ0mRvU=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_PORT16=Skimmer
// RA_LABEL LABEL_PORT14=Dosing Pump
// RA_LABEL LABEL_PORT17=ATO
// RA_LABEL LABEL_PORT15=PowerHeads
// RA_LABEL LABEL_PORT13=Return Pump
// RA_LABEL LABEL_PORT18=Cheato Reactor Light
// RA_LABEL LABEL_PORT11=Heater Controller
// RA_LABEL LABEL_PORT12=Cheato Reactor

No Dice....

RA Init
SPI Init
LCD Init
Network Init
Touch Init
SD Found: 1
SD Init
192.168.1.19
MQTT Connecting...
MQTT failed
MQTT Connecting...
Channel 5MQTT succeeded
Channel 5Portal Call
Channel 5Data Sent
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Sat, 31 Oct 2020 00:53:28 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>
ÿDisconnected
Channel 5Connecting...
Channel 5Connected
Channel 5HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Sat, 31 Oct 2020 00:53:29 GMT
Connection: close
Content-Length: 339

Data: 339
Channel 5Header: 0
Channel 5D
Post Reply