Page 1 of 1

UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 8:35 am
by sbidny
Whenever I try to update the "Turn Daylights on at:" or "Turn Daylights off at:" internal memory fields in the UApp, I get the error "Alert: Nothing to update."

The fields are showing blank on in the UApp, i.e., there is no time showing in those fields.

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 10:49 am
by lnevo
Try to set them manually to something through the web interface

http://your.ip.address:2000/mb244,8 // Set StdLightsOnHour to 8am
http://your.ip.address:2000/mb245,30 // Set StdLightsOnMinute to 30 minutes
http://your.ip.address:2000/mb246,20 // Set StdLightsOnHour to 8pm
http://your.ip.address:2000/mb247,30 // Set StdLightsOnHour to 30 minutes

Then it should have some values. Might not be dealing well with NULL in the original field.

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 11:43 am
by sbidny
That was a good thought, but unfortunately, I still seem to be seeing blank fields in the UApp. The controller did return "OK" for each of the above calls. I tried rebooting the controller, and it still seems to show blanks.

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 7:23 pm
by lnevo
Are you sure your Uapp is working properly? You have no portal key setup? or it's configured if you have one?

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 7:24 pm
by lnevo
Have you tried in the portal? https://forum.reefangel.com/portal.php ?

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 10:05 pm
by sbidny
I do have a portal key, which I set in my ReefAngel.Portal("sbidny", "<portal key>") call.

I am using the cloud server, and I can successfully set other internal memory fields. My Uapp is working for nearly every other function.

As for the portal, I'm not having much luck. It seems to log me out every few minutes. When I do log in, I am often greeted with a "Connection Status: Error - 500." And when it does say "Connection Status: Ready," I can't seem to update any of the internal memory fields anyway. It just says "Saving Internal Memory..." and never changes.

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 10:09 pm
by sbidny
I see the problem. The memory locations you had me set were incorrect :)

Should be 204, 205, 206, and 207, not 244, 245, 246, and 247. Now I see the values again. Will try to update...

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 10:13 pm
by sbidny
Now when I try to update them all, I get a "Timeout. Please try again." And the values get set to some random numbers.

Tried to update just the "Daylights on," and now it turned null again.

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 10:28 pm
by lnevo
Odd. let's see what Roberto has to say. Sorry about the wrong numbers.

Re: UApp Error - Nothing to update

Posted: Mon Jan 07, 2019 10:54 pm
by rimai
I can't replicate.
Using Chrome, enable developer tools by pressing F12.
Then select the tab console.
You should see the MQTT messages that get exchanged.
Now, go to the internal memory tab of uapp.
You should see a very long string.
Copy and paste here.

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 9:32 am
by sbidny
Will do...

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 9:38 am
by sbidny
BTW, do you want me to do this while I'm seeing the null value? I have updated them again from the URL, so I will need to reproduce the issue. Should be easy, but I want to check before proceeding.

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 9:40 am
by sbidny
Well, it was easy to get the null value back. Here is the string with the null value I'm seeing:

0f1e1500c2000f1e0a000f00525584035802340314140b030d03340333033ce402bf01001400161e00003c3c081e141e0a14323c14323c00800a0f643c0f643c0f643c0f643c0f643c0f643c780078000208c201000203f80220032a0300643c00643c00643c00643c00643c00643c00643c00643c00643c07f401c409000000000b0362645a3c00000032325702eb054e026c074e026c074e026c07ffffffffffffffff00ffffffffffffffffffffff

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 11:26 am
by rimai
That's very odd.
C2 is not a valid hour.
The string represents the internal memory values starting at 200.
What happens when you change to a correct number and click save?
Can you post the log?

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 3:11 pm
by sbidny
FYI, updating the value is now causing my controller to reboot.

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 3:17 pm
by sbidny
It seems to be rebooting every time the Uapp needs to update more than one value at a time, which the time fields do automatically. If I update a single field, it works fine. If I update two independent fields or a single time field, it reboots the controller.

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 3:38 pm
by rimai
Were you able to see what the console log shows when you update the value?

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 3:41 pm
by sbidny
See attachment.

Re: UApp Error - Nothing to update

Posted: Tue Jan 08, 2019 4:32 pm
by rimai
According to the log, the controller did receive the memory location 204 change to 14 and it even responded with OK.
The 205 was not acknowledged though.
That's when you mentioned it rebooted and I can see that in the log too.
But I can't replicate.
This is what I get on my RA+ test controller using the cloud wifi attachment:

Code: Select all

0f1e15000e3b151e0a000f00040484035802ee021414fd02030307030303ff3e031c02071400161e00ffff3c003c00f6090f643c0f643c05380b0f643c0f643c0f643c0f643c0f643c0f643c7800ffff0208c2011e0203f80220032a0300643c00643c00643c00643c00643c00643c00643c00643c00643c07f401c40984031405ee023c41043c0001022e0a4e026c074e026c074e026c074e026c07ffffffffffffffff1effffffffffffffffffffff
uapp.js:661 PopoverControllermemoryrawok
uapp.js:2111 PH:340

uapp.js:2111 PH:342

uapp.js:2111 PH:340

uapp.js:2111 PH:342

uapp.js:931 mb204,13
uapp.js:2111 MBOK:204

uapp.js:2373 mb205,58
uapp.js:2111 MBOK:205

uapp.js:2111 PH:340

uapp.js:2111 PH:342

Re: UApp Error - Nothing to update

Posted: Thu Jan 10, 2019 12:27 pm
by sbidny
Strangely, the same change from my phone causes the same timeout, but it does not cause the reboot.

Re: UApp Error - Nothing to update

Posted: Wed Jan 06, 2021 5:58 am
by cwoodardii
Did this ever get resolved? I have the same issue.