Graph Data Doesn’t Load

Community contributed apps
Post Reply
icecool2
Posts: 62
Joined: Tue Jul 19, 2011 3:12 pm

Graph Data Doesn’t Load

Post by icecool2 »

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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Graph Data Doesn’t Load

Post by rimai »

No. Let me look into it.
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Graph Data Doesn’t Load

Post by rimai »

I had to delete all history, but it should be good now.
Roberto.
icecool2
Posts: 62
Joined: Tue Jul 19, 2011 3:12 pm

Re: Graph Data Doesn’t Load

Post by icecool2 »

Loads in a flash now. Thanks!
topjimmy
Posts: 139
Joined: Tue May 08, 2012 8:16 am

Re: Graph Data Doesn’t Load

Post by topjimmy »

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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Graph Data Doesn’t Load

Post by rimai »

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.
topjimmy
Posts: 139
Joined: Tue May 08, 2012 8:16 am

Re: Graph Data Doesn’t Load

Post by topjimmy »

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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Graph Data Doesn’t Load

Post by rimai »

Can you post your code?
Maybe the code you have is pointing to the old server.
Roberto.
topjimmy
Posts: 139
Joined: Tue May 08, 2012 8:16 am

Re: Graph Data Doesn’t Load

Post by topjimmy »

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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Graph Data Doesn’t Load

Post by rimai »

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.
topjimmy
Posts: 139
Joined: Tue May 08, 2012 8:16 am

Re: Graph Data Doesn’t Load

Post by topjimmy »

rimai wrote: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
Thanks, I'll try it this weekend.

Sent from my Lenovo TAB 2 A10-70F using Tapatalk
Image
topjimmy
Posts: 139
Joined: Tue May 08, 2012 8:16 am

Re: Graph Data Doesn’t Load

Post by topjimmy »

ok changed it.

Can you tell if its posting any data?
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Graph Data Doesn’t Load

Post by rimai »

Yes, your banner is updating.
Roberto.
topjimmy
Posts: 139
Joined: Tue May 08, 2012 8:16 am

Re: Graph Data Doesn’t Load

Post by topjimmy »

rimai wrote:Yes, your banner is updating.
Great success!

Thanks again.

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