portal not current?

Post Reply
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

portal not current?

Post by miked »

Do I need to refresh it somehow each time I visit?
Image
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

Re: portal not current?

Post by miked »

Also, I set up the security in my code and was wondering how to test if my portal is safe from being modified without my permission
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: portal not current?

Post by rimai »

No, no need to refresh.
If you setup the security, the server just ignores whever you try to send data without the key.
It's done automatically on the server.
An easy way to test is to setup your Portal() function on your INO code without the key.
You will see that the portal won't log anything on the webchart nor relay activity nor webbanners.
Roberto.
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

Re: portal not current?

Post by miked »

rimai wrote:No, no need to refresh.
If you setup the security, the server just ignores whever you try to send data without the key.
It's done automatically on the server.
An easy way to test is to setup your Portal() function on your INO code without the key.
You will see that the portal won't log anything on the webchart nor relay activity nor webbanners.
I did set it when I entered the code, but i do not think the "portal settings" is recognizing it. And when I enter it the password shows up. I think I am missing something. If there is a tutorial or link send me there and if I cant figure it out I will ask again.

thanks
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: portal not current?

Post by rimai »

http://forum.reefangel.com/viewtopic.php?f=20&t=716
This doesn't show how to setup the security key, but all you need on your INO code is:

Code: Select all

ReefAngel.Portal("miked","securekey");
Best to have the security key as a one word just to be same.
I'm not sure if it would work if you added a space in there.
Then you go to Portal Settings and add it there too. Same security key.
Roberto.
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

Re: portal not current?

Post by miked »

rimai wrote:http://forum.reefangel.com/viewtopic.php?f=20&t=716
This doesn't show how to setup the security key, but all you need on your INO code is:

Code: Select all


Best to have the security key as a one word just to be same.
I'm not sure if it would work if you added a space in there.
Then you go to Portal Settings and add it there too. Same security key.
ReefAngel.Portal("miked","xxxx1111");
my code included a mix of numbers and letters and capital letters but no spaces.
then: portal page--portal stttings--Portal Function() requires a key ON--entered my key

my key is readable, not blocked out like ******* is that ok?
also now that I have done that my banner does not show up so it must be working.
If i leave my key in and turn it off, then the banner should work but I would be less secure?
I can still access the portal from outside my network and to edit the settings it will ask me for a key?
The RA app for android from outside my network--i will look into it but there should be a place toenter the key?

Thanks
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: portal not current?

Post by rimai »

I doesn't ask for key to access the portal.
The key is only meant for sending data to the reefangel.com server to populate your banner and create the web chart and relay activity. It also populates the portal if you are not in live mode.
When the RA controller communicates with the server, it needs to send the key or the server will just not accept. If you disable the key, it would still work and no harm would be done to the controller or how it functions.
It just makes it possible for anyone to use ReefAngel.Portal("miked") and you would see weird readings from another controller in your screen.
None of the other apps will ask for the key as this is something that the server only is looking for.
It looks like the server is rejecting your data because I can see that the banner is not being updated.
Roberto.
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

Re: portal not current?

Post by miked »

rimai wrote:I doesn't ask for key to access the portal.
The key is only meant for sending data to the reefangel.com server to populate your banner and create the web chart and relay activity. It also populates the portal if you are not in live mode.
When the RA controller communicates with the server, it needs to send the key or the server will just not accept. If you disable the key, it would still work and no harm would be done to the controller or how it functions.
It just makes it possible for anyone to use ReefAngel.Portal("miked") and you would see weird readings from another controller in your screen.
None of the other apps will ask for the key as this is something that the server only is looking for.
It looks like the server is rejecting your data because I can see that the banner is not being updated.
my biggest concern was someone using my reefangel.portal to change MY settings, so if this is not a concern I am ok. Also not sure how to fix the banner issue. I have the password entered into my RA code and into the portal at this time.

thanks
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: portal not current?

Post by rimai »

I just pulled the log on the server and it looks like your controller is not sending the key.
Are you sure you uploaded the code with the new line you mentioned?
ReefAngel.Portal("miked","xxxx1111");
Roberto.
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

Re: portal not current?

Post by miked »

rimai wrote:I just pulled the log on the server and it looks like your controller is not sending the key.
Are you sure you uploaded the code with the new line you mentioned?
ReefAngel.Portal("miked","xxxx1111");
ok, i think the code has an error it has a space after the comma. if I just disable the key on the portal page will everything work ok? I will need to reload the code to set up the ATO later this weekend anyway and can fix the key then. other question about the key. If i remove it completely from the code can others modify my RA settings and initiate feeding mode from outside the network just by using my RAwifiaddress:2000

ReefAngel.Portal("miked", "xxxx1111")
Image
Post Reply