Web chart is blanck

Related to the Portal
Post Reply
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Web chart is blanck

Post by JHP »

When I look on the web chart it is blank why?

Jan
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

Your controller never sent data to the Portal.
Do you have the wifi attachment configured correctly?
Roberto.
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

Hmm I think it is
I can see temp ph etc.

Is ther a guide on the to used when setting up wifi ?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

Can I see your code?
Roberto.
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

I have just loaded standard code
dont know how to read code loaded in the reefangel
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

The standard code doesn't send data to the portal.
You will need to generate one with the wizard.
Roberto.
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

is it on the download page ?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

Go to menu Tools->Reef Angel Wizard
Roberto.
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

thanks i found it :P
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

#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 <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

ReefAngel.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 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( 320 );


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

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


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

void loop()
{
ReefAngel.StandardLights( Port1,9,0,23,0 );
ReefAngel.StandardLights( Port2,11,0,22,30 );
ReefAngel.StandardLights( Port3,11,0,23,0 );
ReefAngel.StandardLights( Port4,11,0,23,0 );
ReefAngel.PWM.SetDaylight( PWMParabola(11,0,23,0,15,100,15) );
ReefAngel.PWM.SetActinic( PWMParabola(11,0,23,0,15,100,15) );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "jhp" );
ReefAngel.ShowInterface();
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

Ok, upload it and it should start sending data to the server
Roberto.
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

How often is the data send to the server it is still blank :shock:
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

the dash board is ok
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

Still not working :oops:
you can see if I send data
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

No, I don't see any data.
Can you send me the dump from the "get e" command?
You will need to use tera term or putty to access the command mode on the module.
Check the manual for instructions.
Roberto.
User avatar
JHP
Posts: 15
Joined: Tue Mar 19, 2013 4:52 am
Location: Denmark

Re: Web chart is blanck

Post by JHP »

ok I will do it the next days ;-)
acabano
Posts: 49
Joined: Thu Jul 21, 2011 6:09 pm

Re: Web chart is blanck

Post by acabano »

Hi Roberto,

I think i have the same issue.
my web banner is also blank, here's my wifi info, thanks.

<4.00> get e
wifly-GSX Ver 4.00, Mar 27 2013 13:52:34 on 131C11
Beacon=102
Reboot=0
IF=UP
DHCP=OFF
IP=172.16.1.39:2000
NM=255.255.0.0
GW=172.16.0.1
HOST=198.171.134.6:80
PROTO=TCP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
OPEN=
CLOSE=
REMOTE=
FlushSize=1524
MatchChar=0
FlushTimer=5
IdleTimer=3
CmdChar=$
DNS=0.0.0.0
Name=name.no-ip.biz
Backup=rn.microchip.com
Lease=86400
FTP=0.0.0.0:21
File=wifly-GSX.img
User=roving
Pass=Pass123
Dir=public
Timeout=200
FTP_mode=0x0
SSID=XXXXXX
Chan=0
ExtAnt=0
Join=1
Auth=WPA2
Mask=0x1fff
Rate=12, 24 Mb
Linkmon-Infra=30
Linkmon-AP=3600
Passphrase=xxxxxxxxxx
EAP_Id=userid
EAP_User=peap-user
SleepTmr=0
WakeTmr=0
Trigger=0x1
Autoconn=0
IoFunc=0x0
IoMask=0x20f0
IoValu=0x0
DebugReg=0x0
PrintLvl=0x0
LaunchStr=web_app
TimeEna=0
TIMEADR=64.90.182.55:123
Zone=7
Baudrate=57600
Flow=0x0
Mode=0x0
Cmd_GPIO=0
JoinTmr=1000
Replace=0x24
DeviceId=ReefAngelWifi
Password=
Format=0x0
Signal=0
Average=5
BCAST=255.255.255.255:55555
Interval=0x7
Backup=0.0.0.0:0
Sensor=0x0
SensePwr=0x0
<4.00>
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

This is supposed to be www.reefangel.com:
Name=name.no-ip.biz
Roberto.
acabano
Posts: 49
Joined: Thu Jul 21, 2011 6:09 pm

Re: Web chart is blanck

Post by acabano »

Hi Roberto,

I have change the dns name to http://www.reefangel.com but that did not help.

looks like i am sending data.

<RA><ID>acabano</ID><T1>800</T1><T2>1211</T2><T3>800</T3><PH>754</PH><R>18</R><RON>64</RON><ROFF>223</ROFF><ATOLOW>0</ATOLOW><ATOHIGH>0</ATOHIGH><EM>0</EM><REM>0</REM><PWMA>70</PWMA><PWMD>70</PWMD></RA>


<4.00> get e
wifly-GSX Ver 4.00, Mar 27 2013 13:52:34 on 131C11
Beacon=102
Reboot=0
IF=UP
DHCP=OFF
IP=172.16.1.39:2000
NM=255.255.0.0
GW=172.16.0.1
HOST=198.171.134.6:80
PROTO=TCP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
OPEN=
CLOSE=
REMOTE=
FlushSize=1524
MatchChar=0
FlushTimer=5
IdleTimer=3
CmdChar=$
DNS=0.0.0.0
Name=www.reefangel.com
Backup=rn.microchip.com
Lease=86400
FTP=0.0.0.0:21
File=wifly-GSX.img
User=roving
Pass=Pass123
Dir=public
Timeout=200
FTP_mode=0x0
SSID=xxxxxxxx
Chan=0
ExtAnt=0
Join=1
Auth=WPA2
Mask=0x1fff
Rate=12, 24 Mb
Linkmon-Infra=30
Linkmon-AP=3600
Passphrase=xxxxxxxxx
EAP_Id=userid
EAP_User=peap-user
SleepTmr=0
WakeTmr=0
Trigger=0x1
Autoconn=0
IoFunc=0x0
IoMask=0x20f0
IoValu=0x0
DebugReg=0x0
PrintLvl=0x0
LaunchStr=web_app
TimeEna=0
TIMEADR=64.90.182.55:123
Zone=7
Baudrate=57600
Flow=0x0
Mode=0x0
Cmd_GPIO=0
JoinTmr=1000
Replace=0x24
DeviceId=ReefAngelWifi
Password=
Format=0x0
Signal=0
Average=5
BCAST=255.255.255.255:55555
Interval=0x7
Backup=0.0.0.0:0
Sensor=0x0
SensePwr=0x0
<4.00>
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

You are setting the ip manually, right?
These are the differences I noticed:
FLAGS=0x6
DNS is not setup. It must be setup. Ask your ISP which DNS server they use.

I think when you set the DNS, you should be able to connect.
Roberto.
acabano
Posts: 49
Joined: Thu Jul 21, 2011 6:09 pm

Re: Web chart is blanck

Post by acabano »

Yes, ip is static. i have found the primary dns on my router "u verse" 3801HGV


<4.00> get e
wifly-GSX Ver 4.00, Mar 27 2013 13:52:34 on 131C11
Beacon=102
Reboot=0
IF=UP
DHCP=OFF
IP=172.16.1.39:2000
NM=255.255.0.0
GW=172.16.0.1
HOST=198.171.134.6:80
PROTO=TCP,
MTU=1524
FLAGS=0x6
TCPMODE=0x0
BACKUP=0.0.0.0
OPEN=
CLOSE=
REMOTE=
FlushSize=1524
MatchChar=0
FlushTimer=5
IdleTimer=3
CmdChar=$
DNS=x8.9x.1x6.x
Name=www.reefangel.com
Backup=rn.microchip.com
Lease=86400
FTP=0.0.0.0:21
File=wifly-GSX.img
User=roving
Pass=Pass123
Dir=public
Timeout=200
FTP_mode=0x0
SSID=xxxxxx
Chan=0
ExtAnt=0
Join=1
Auth=WPA2
Mask=0x1fff
Rate=12, 24 Mb
Linkmon-Infra=30
Linkmon-AP=3600
Passphrase=xxxxxxxxxx
EAP_Id=userid
EAP_User=peap-user
SleepTmr=0
WakeTmr=0
Trigger=0x1
Autoconn=0
IoFunc=0x0
IoMask=0x20f0
IoValu=0x0
DebugReg=0x0
PrintLvl=0x0
LaunchStr=web_app
TimeEna=0
TIMEADR=64.90.182.55:123
Zone=7
Baudrate=57600
Flow=0x0
Mode=0x0
Cmd_GPIO=0
JoinTmr=1000
Replace=0x24
DeviceId=ReefAngelWifi
Password=
Format=0x0
Signal=0
Average=5
BCAST=255.255.255.255:55555
Interval=0x7
Backup=0.0.0.0:0
Sensor=0x0
SensePwr=0x0
<4.00>
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

I kind of feel that you are using the wrong ip address.
Are you able to connect to your controller?
Did you try letting the wifi attachment just get the ip from DHCP?
Roberto.
acabano
Posts: 49
Joined: Thu Jul 21, 2011 6:09 pm

Re: Web chart is blanck

Post by acabano »

I was able to control/see update on my iPhone 5s, but the graph does not work, same with portal web chart.
I can ping my controller, port 2000 is open. I'm not sure the DNS ip i have tried both the dns ip from my router GUI

Thanks for looking.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web chart is blanck

Post by rimai »

Does it work if you simply let it work with DHCP?
Roberto.
acabano
Posts: 49
Joined: Thu Jul 21, 2011 6:09 pm

Re: Web chart is blanck

Post by acabano »

Hey Roberto,

Thanks a bunch, once DHCP is enabled web chart works.
Image
Post Reply