Web portal and banner update issue

Related to the Portal

Posts: 69
Joined: Sun Aug 04, 2013 2:29 am
PostPosted: Wed Dec 31, 2014 8:50 am
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
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Wed Dec 31, 2014 9:01 am
Add this in your loop:

Serial.println("test");

Posts: 69
Joined: Sun Aug 04, 2013 2:29 am
PostPosted: Wed Dec 31, 2014 9:11 am
lnevo wrote:Add this in your loop:

Serial.println("test");

"test" popup crazy in monitor. is that means it works?
User avatar
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Wed Dec 31, 2014 9:26 am
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.

Posts: 12306
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Dec 31, 2014 9:27 am
Yes... You can remove that line now.
There doesn't seem to be any reason why your controller doesn't send data.
Roberto.

Posts: 12306
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Dec 31, 2014 11:30 am
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
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Wed Dec 31, 2014 11:46 am
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.

Posts: 69
Joined: Sun Aug 04, 2013 2:29 am
PostPosted: Wed Dec 31, 2014 7:44 pm
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.

Posts: 69
Joined: Sun Aug 04, 2013 2:29 am
PostPosted: Wed Dec 31, 2014 9:17 pm
portal and banner get back to work.
thank you for your support Roberto, Lee. appreciate and best support i've ever have.
User avatar
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Jan 01, 2015 7:56 am
Glad it's working now! Happy New Year!
Previous

Return to Portal

Who is online

Users browsing this forum: No registered users and 2 guests

cron