Page 1 of 1

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 8:50 am
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

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 9:01 am
by lnevo
Add this in your loop:

Serial.println("test");

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 9:11 am
by sesame
lnevo wrote:Add this in your loop:

Serial.println("test");
"test" popup crazy in monitor. is that means it works?

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 9:26 am
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.

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 9:27 am
by rimai
Yes... You can remove that line now.
There doesn't seem to be any reason why your controller doesn't send data.

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 11:30 am
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.

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 11:46 am
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.

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 7:44 pm
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.

Re: Web portal and banner update issue

Posted: Wed Dec 31, 2014 9:17 pm
by sesame
portal and banner get back to work.
thank you for your support Roberto, Lee. appreciate and best support i've ever have.

Re: Web portal and banner update issue

Posted: Thu Jan 01, 2015 7:56 am
by lnevo
Glad it's working now! Happy New Year!