UApp Error - Nothing to update

Community contributed apps
Post Reply
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

UApp Error - Nothing to update

Post 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.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: UApp Error - Nothing to update

Post 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.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post 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.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: UApp Error - Nothing to update

Post by lnevo »

Are you sure your Uapp is working properly? You have no portal key setup? or it's configured if you have one?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: UApp Error - Nothing to update

Post by lnevo »

Have you tried in the portal? https://forum.reefangel.com/portal.php ?
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post 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.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post 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...
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post 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.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: UApp Error - Nothing to update

Post by lnevo »

Odd. let's see what Roberto has to say. Sorry about the wrong numbers.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: UApp Error - Nothing to update

Post 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.
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post by sbidny »

Will do...
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post 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.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post by sbidny »

Well, it was easy to get the null value back. Here is the string with the null value I'm seeing:

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

Re: UApp Error - Nothing to update

Post 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?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post by sbidny »

FYI, updating the value is now causing my controller to reboot.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post 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.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: UApp Error - Nothing to update

Post by rimai »

Were you able to see what the console log shows when you update the value?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post by sbidny »

See attachment.
Attachments
forum.reefangel.com-1546987244699.log
Chrome Console Log
(1.51 KiB) Downloaded 511 times
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: UApp Error - Nothing to update

Post 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
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: UApp Error - Nothing to update

Post by sbidny »

Strangely, the same change from my phone causes the same timeout, but it does not cause the reboot.
cwoodardii
Posts: 4
Joined: Sat Sep 07, 2013 6:47 am

Re: UApp Error - Nothing to update

Post by cwoodardii »

Did this ever get resolved? I have the same issue.
Post Reply