Connect Star to Cloud via Web Wizard

Do you have a question on how to do something.
Ask in here.
Post Reply
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Connect Star to Cloud via Web Wizard

Post by sbidny »

I have been unsuccessful at getting my Reef Angel Star to connect to the cloud via the web wizard.

I had an existing INO file that I had been uploading via Visual Studio Code. Copied that to the web wizard.

Ran the wizard separately to generate the hash code and then copied and pasted the comments to the bottom of my existing INO file.

Everything compiles fine and even uploads remotely as expected. However, I can't access the cloud data via UApp.

Am I unable to copy and paste the hash code comment into my existing INO for some reason? Is that the problem?

Thanks,
-Steve
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Connect Star to Cloud via Web Wizard

Post by rimai »

Correct.
You have to manually edit the file RA_CustomSettings.h
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Connect Star to Cloud via Web Wizard

Post by sbidny »

But I can't do that on the web wizard, which means no remote upload. Do I need to generate a nearly blank INO via the wizard and copy and paste my custom code between the comments?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Connect Star to Cloud via Web Wizard

Post by rimai »

I misunderstood your statement.
I thought you were still trying to upload through VS.
You should be able to just copy/paste the hash.
Does the unit show you are connected to cloud on the status screen?
Roberto.
sbidny0
Posts: 12
Joined: Tue Jul 14, 2020 9:00 pm

Re: Connect Star to Cloud via Web Wizard

Post by sbidny0 »

Shows as disconnected from the screen.

I just tried generating a minimal INO from the wizard, and it still won't connect.

Any chance there's a password length limit? My password is 20 characters long.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Connect Star to Cloud via Web Wizard

Post by rimai »

But is it getting an ip address?
But not connecting to the cloud?
Roberto.
sbidny0
Posts: 12
Joined: Tue Jul 14, 2020 9:00 pm

Re: Connect Star to Cloud via Web Wizard

Post by sbidny0 »

Not sure what you mean by "getting an IP address." But yes, the unit is connected correctly to the network. I have opened up its port on my router and can receive updates via built-in web server from outside my network, including via the UApp. It's just the could that's not working.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Connect Star to Cloud via Web Wizard

Post by rimai »

Have you ever gotten it connected before?
If you are trying on this username, you may need to update your password because the cloud server was introduced way after your profile was created and I can't de-hash your password.
By setting a new password, it updates both the forum and the cloud server hashes.
Roberto.
sbidny0
Posts: 12
Joined: Tue Jul 14, 2020 9:00 pm

Re: Connect Star to Cloud via Web Wizard

Post by sbidny0 »

I have never been able to connect the Star to the cloud, no. Just using the pull method via the built-in web server.

I am using a different account for the Star (sbidny0_ since I already use this account (sbidny) for my current Reef Angel Plus. Just created that new account (sbidny0).

BTW, every time I create a hash, it's different. Is that expected?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Connect Star to Cloud via Web Wizard

Post by rimai »

Looking at the code, I can see the problem now.....
I have this:

Code: Select all

		char username[16];
		char password[16];
		strcpy_P(username, CLOUD_USERNAME); 
		strcpy_P(password, CLOUD_PASSWORD);
https://github.com/reefangel/Libraries/ ... 0.cpp#L314
Which means, there is a limitation on the length of the password. :(
Roberto.
sbidny0
Posts: 12
Joined: Tue Jul 14, 2020 9:00 pm

Re: Connect Star to Cloud via Web Wizard

Post by sbidny0 »

Yeah, that seems like it. Will try a shorter password and let you know. What's the max password length you allow on the site? Seems like we should update this to match. Happy to submit a pull request for this if you can't get to it.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Connect Star to Cloud via Web Wizard

Post by rimai »

I don't think the site has any restrictions because the is no memory constraints on MySQL tables, but on a limited MCU, we can't be using too much.
Roberto.
sbidny0
Posts: 12
Joined: Tue Jul 14, 2020 9:00 pm

Re: Connect Star to Cloud via Web Wizard

Post by sbidny0 »

Looks like that was it. I updated my password to 15 characters (assuming a null terminator), and it has now connected as expected. Thanks, Roberto!
sbidny0
Posts: 12
Joined: Tue Jul 14, 2020 9:00 pm

Re: Connect Star to Cloud via Web Wizard

Post by sbidny0 »

BTW, is the Web Wizard code available on GitHub? Had an idea or two that I would like to look into implementing.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Connect Star to Cloud via Web Wizard

Post by rimai »

Roberto.
Post Reply