Web portal and banner update issue

Related to the Portal
Post Reply
sesame
Posts: 71
Joined: Sun Aug 04, 2013 2:29 am

Re: Web portal and banner update issue

Post by sesame »

lnevo wrote:ok so I/O is working.. very odd. Did you add a Serial.println as a test?
how to, no idea. thank you
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web portal and banner update issue

Post by lnevo »

Add this in your loop:

Serial.println("test");
sesame
Posts: 71
Joined: Sun Aug 04, 2013 2:29 am

Re: Web portal and banner update issue

Post by sesame »

lnevo wrote:Add this in your loop:

Serial.println("test");
"test" popup crazy in monitor. is that means it works?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web portal and banner update issue

Post by lnevo »

Yeah. I would remove your libraries folder and re-install the ReefAngel installer at this point. Serial I/O is working and you can obviously communicate with the wifi module. Something is not right that the portal timer is not working. If a libraries re-install does not help, I would suggest regenerating a new basic code and testing.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web portal and banner update issue

Post by rimai »

Yes... You can remove that line now.
There doesn't seem to be any reason why your controller doesn't send data.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web portal and banner update issue

Post by rimai »

Jesus!!!!
I spent all morning today trying to figure out why this wasn't working...
Here is the offending line:

Code: Select all

ReefAngel.DosingPump(ZEO_SP,4,22,32,40);
The timer 4 is in charge of sending data to the Portal.
It never struck at me that you were using that function. I though that was a repeat dosing schedule for some reason.
We need to change that function to not use timers at all.
This is the same equivalent:

Code: Select all

if (hour()==22 && minute()==32 && second()<40)
{
ReefAngel.Relay.On(ZEO_SP);
}
else
{
ReefAngel.Relay.Off(ZEO_SP);
}
Try this out and let me know if that works for you.
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web portal and banner update issue

Post by lnevo »

Awesome find! I was looking for it and it was completely hidden there :) I thought the DosingPump functions already had that out.. I guess only the Repeat ones have been.
sesame
Posts: 71
Joined: Sun Aug 04, 2013 2:29 am

Re: Web portal and banner update issue

Post by sesame »

Wahoo!!
great new year gifts. :) :) :)
change code as Roberto attached. got some thing from serial port.

GET /status/submitp.aspx?t1=187&t2=223&t3=226&ph=793&id=sesame&em=1&em1=2&rem=1&bid=1&key=&ddns=&af=0&sf=0&atohigh=0&atolow=0&r=205&ron=0&roff=255&r1=4&ron1=0&roff1=255&pwma=90&pwmd=80&pwmao=255&pwmdo=255&pwme0=0&pwme0O=255&pwme1=100&pwme1O=255&pwme2=0&pwme2O=255&pwme3=0&pwme3O=255&pwme4=0&pwme4O=255&pwme5=0&pwme5O=255&dcm=1&dcs=85&dcd=20&dct=30

waiting half an hour to see if any changes from portal.

sorry havent remember to change code this area. should be careful next time.
but im thinking if possible to add more "DosingPumpRepert" function in lib and iOS App as well.
easy to change and adjust by mobile device.
sesame
Posts: 71
Joined: Sun Aug 04, 2013 2:29 am

Re: Web portal and banner update issue

Post by sesame »

portal and banner get back to work.
thank you for your support Roberto, Lee. appreciate and best support i've ever have.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web portal and banner update issue

Post by lnevo »

Glad it's working now! Happy New Year!
Post Reply