Page 1 of 2
Re: U-App Repo
Posted: Sun Jun 16, 2019 9:57 am
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
Re: U-App Repo
Posted: Sun Jun 16, 2019 2:11 pm
by rimai
I am able to download labels just fine.
Re: U-App Repo
Posted: Sun Jun 16, 2019 5:40 pm
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
Re: U-App Repo
Posted: Sun Jun 16, 2019 5:46 pm
by rimai
When you login to the portal, is it not what you have?
Re: U-App Repo
Posted: Sun Jun 16, 2019 6:36 pm
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.
Re: U-App Repo
Posted: Mon Jun 17, 2019 10:06 pm
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.
Re: U-App Repo
Posted: Tue Jun 18, 2019 2:51 pm
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.
Re: U-App Repo
Posted: Tue Jun 18, 2019 3:17 pm
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.
Re: U-App Repo
Posted: Tue Jun 18, 2019 7:14 pm
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.
Re: U-App Repo
Posted: Wed Jun 19, 2019 3:58 am
by abavery
Where does it get my username from? I think that must be the part I am missing.
Re: U-App Repo
Posted: Wed Jun 19, 2019 9:55 am
by rimai
From the controller. Once it establishes a connection and grabs the XML data, one of the fields is the username.
Re: U-App Repo
Posted: Wed Jun 19, 2019 3:44 pm
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.
Re: U-App Repo
Posted: Wed Jun 19, 2019 5:11 pm
by rimai
I use visual code