U-App Repo

Community contributed apps
abavery
Posts: 9
Joined: Sat Dec 20, 2014 2:43 pm

Re: U-App Repo

Post by abavery »

I've got 2.0.8 running on the site, and it looks like I'm getting some sort of default labels when I try to download them. Any fix for that in place or should I go fix it on GitHub? Thanks
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: U-App Repo

Post by rimai »

I am able to download labels just fine.
Roberto.
abavery
Posts: 9
Joined: Sat Dec 20, 2014 2:43 pm

Re: U-App Repo

Post by abavery »

Maybe I'm doing it wrong. I don't have the cloud module, so I just punch in my username. It downloads labels, but they're not my labels. I get ATO Solenoid, RODI to SW, SW Mixing Pump, ATO Pump, Saltwater Pump, Waste Pump, Heater 1, and Skimmer Cleaner. I'm guessing those are some kind of defaults. Anything I can do to troubleshoot? Thanks
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: U-App Repo

Post by rimai »

When you login to the portal, is it not what you have?
Roberto.
abavery
Posts: 9
Joined: Sat Dec 20, 2014 2:43 pm

Re: U-App Repo

Post by abavery »

No, in the portal I have entirely different values. I have tried changing them. Removing spaces. Making them shorter. Nothing works. Although it did used to work.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: U-App Repo

Post by rimai »

That is not what I get from the server....

Code: Select all

<R1N>Heater</R1N>
<R2N>LeftPowerhead</R2N>
<R3N>BackPowerhead</R3N>
<R4N>ProteinSkimmer</R4N>
<R5N>Refugium</R5N>
<R6N>FugeLight</R6N>
<R7N>AlkDoser</R7N>
<R8N>CaDoser</R8N>
I would suggest deleting all profiles and adding a new one again.
Roberto.
abavery
Posts: 9
Joined: Sat Dec 20, 2014 2:43 pm

Re: U-App Repo

Post by abavery »

Those are the values I am expecting. I have deleted the profile from the web app and readded it a couple times. No result. I tried in incognito mode so I'd have a fresh cache and I get the same incorrect labels. I may have to dig into the JS to see what kind of reply I'm getting to the request.
abavery
Posts: 9
Joined: Sat Dec 20, 2014 2:43 pm

Re: U-App Repo

Post by abavery »

I dug into the JS a little, and my RA.ID is null when the request is made for some reason. I'm investigating why that might be right now. I have the value set for the cloud username with no cloud password.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: U-App Repo

Post by rimai »

You can't assign cloud username nor cloud password if you don't use the cloud wifi attachment or RA Star.
You must leave those blank.
You do need the ip address and port. After the initial connection, the app will know the correct username to download the labels.
Roberto.
abavery
Posts: 9
Joined: Sat Dec 20, 2014 2:43 pm

Re: U-App Repo

Post by abavery »

Where does it get my username from? I think that must be the part I am missing.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: U-App Repo

Post by rimai »

From the controller. Once it establishes a connection and grabs the XML data, one of the fields is the username.
Roberto.
abavery
Posts: 9
Joined: Sat Dec 20, 2014 2:43 pm

Re: U-App Repo

Post by abavery »

Yep. That was it. When I added some dosers and reuploaded my code I neglected to put my username in the wizard above the DDNS address thinking that I didn't need it since I wasn't going to use DDNS. Thanks for your help! Everything works perfectly now.

As an aside, what IDE are you using when developing the U-App? I am usually a desktop C# developer, so my web work is a little rusty and I had a whale of a time trying to get it to build in Visual Studio. If you've got any upcoming features in the works I'd love to help out.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: U-App Repo

Post by rimai »

I use visual code
Roberto.
Post Reply