Graph Data Doesn’t Load

Community contributed apps

Posts: 52
Joined: Tue Jul 19, 2011 3:12 pm
PostPosted: Sat Dec 30, 2017 3:57 am
I’ve been noticing that graph data takes longer and longer to load both in the iOS app and using the U-App. It is to the point t where even after minutes I can’t get the data. Is this being phased out?

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Dec 30, 2017 10:32 am
No. Let me look into it.
Roberto.

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon Jan 01, 2018 6:56 pm
I had to delete all history, but it should be good now.
Roberto.

Posts: 52
Joined: Tue Jul 19, 2011 3:12 pm
PostPosted: Wed Jan 03, 2018 3:53 am
Loads in a flash now. Thanks!

Posts: 133
Joined: Tue May 08, 2012 8:16 am
PostPosted: Tue Mar 20, 2018 8:42 am
icecool2 wrote:Loads in a flash now. Thanks!
I am having the same problem with the graphs, can you do the same for me?

Sent from my SAMSUNG-SM-G935A using Tapatalk
Image

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Mar 20, 2018 10:21 am
Unrelated.
That problem was a server side issue that was affecting everyone.
On your case, the controller is not sending data to the portal.
Double check your controller and Wi-Fi attachment.
Roberto.

Posts: 133
Joined: Tue May 08, 2012 8:16 am
PostPosted: Tue Mar 20, 2018 11:52 am
Hmm I'm using a diy ethernet mod. Maybe it can't pass the data into the the portal the same way.

Sent from my SAMSUNG-SM-G935A using Tapatalk
Image

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Mar 20, 2018 11:54 am
Can you post your code?
Maybe the code you have is pointing to the old server.
Roberto.

Posts: 133
Joined: Tue May 08, 2012 8:16 am
PostPosted: Tue Mar 20, 2018 6:29 pm
rimai wrote:Can you post your code?
Maybe the code you have is pointing to the old server.
/*
Web Server

A simple web server that shows the value of the analog input pins.
using an Arduino Wiznet Ethernet shield.

Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
* Analog inputs attached to pins A0 through A5 (optional)

created 18 Dec 2009
by David A. Mellis
modified 9 Apr 2012
by Tom Igoe

*/

#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
IPAddress ip(192,168,1, 177);
IPAddress remoteserver(198,171,134,6); // www.reefangel.com
EthernetClient clientout;
unsigned long lastmillisout=millis();
unsigned long lastmillisin=millis();
boolean sending=false;
char strout[600];

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(2000);

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}


// start the Ethernet connection and the server:
Ethernet.begin(mac);
server.begin();
// Serial.println(Ethernet.localIP());
}


void loop() {
// listen for incoming clients
EthernetClient client = server.available();
if (client) {
// Serial.println("new client");
// an http request ends with a blank line
boolean currentLineIsBlank = true;
while (client.connected()) {
while (client.available()) {
char c = client.read();
if (sending==false) Serial.write(c);
lastmillisin=millis();
}
while (Serial.available()){
memset(strout,0,sizeof(strout));
int b=Serial.readBytesUntil('>',strout,sizeof(strout));
// Serial.flush();
client.print(strout);
client.print(">");
// char c = Serial.read();
// client.print(c);
if (millis()-lastmillisin>2000)
{
// Serial.println("Timeout incoming");
Serial.flush();
lastmillisin=millis();
client.stop();
}
}
if (millis()-lastmillisin>2000)
{
// Serial.println("Timeout incoming");
Serial.flush();
lastmillisin=millis();
client.stop();
}
}
// give the web browser time to receive the data
delay(1);
// close the connection:
client.stop();
// Serial.println("client disonnected");
}
else
{
if (Serial.available())
{
memset(strout,0,sizeof(strout)-1);
int b=Serial.readBytesUntil('\n',strout,sizeof(strout)-1);
Serial.flush();
// Serial.println(b);
// Serial.println("Connecting");
if (b>10)
{
sending=true;
// Serial.println(strout);
// Serial.println(" HTTP/1.0");
// Serial.println();
if (clientout.connect(remoteserver, 80))
{
// Serial.println("Connected");
// while (Serial.available()){
// char c = Serial.read();
// clientout.print(c);
// }
clientout.println(strout);
// clientout.println(" HTTP/1.0");
clientout.println();
lastmillisout=millis();
}
}
}
while (clientout.available()) {
char c = clientout.read();
Serial.print(c);
if (millis()-lastmillisout>8000)
{
// Serial.println("Timeout connected");
lastmillisout=millis();
clientout.stop();
sending=false;
}
}
if (!clientout.connected())
{
clientout.stop();
sending=false;
}
}
if (millis()-lastmillisout>8000)
{
// Serial.println("Timeout global");
lastmillisout=millis();
clientout.stop();
sending=false;
}

}

// GET /index.html HTTP/1.0

//GET /status/submitp.aspx?t1=806&t2=0&t3=0&ph=441&id=test&em=0&rem=0&key=&atohigh=0&atolow=0&r=0&ron=0&roff=255 HTTP/1.0

//GET /status/submitp.asp?t1=806&t2=0&t3=0&ph=441&id=test&em=0&rem=0&key=&atohigh=0&atolow=0&r=0&ron=0&roff=255 HTTP/1.0
//Host: forum.reefangel.com
//
//GET /status/submitp.aspx?t1=806&t2=0&t3=0&ph=441&id=test&em=0&rem=0&key=&atohigh=0&atolow=0&r=0&ron=0&roff=255 HTTP/1.0
//Host: forum.reefangel.com
//Connection: Keep-Alive




Sent from my Lenovo TAB 2 A10-70F using Tapatalk
Image

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Mar 20, 2018 6:31 pm
New server ip address is 104.36.18.155
Change this:
Code: Select all
IPAddress remoteserver(198,171,134,6); // www.reefangel.com


To this:
Code: Select all
IPAddress remoteserver(104,36,18,155); // forum.reefangel.com
Roberto.
Next

Return to Apps

Who is online

Users browsing this forum: No registered users and 3 guests

cron