Page 1 of 1
Re: help with initial programming PLEASE
Posted: Thu Nov 14, 2013 11:47 pm
by iratefrizz
Found this on another thread or something similar. will this work?
Code: Select all
if (hour()==8 && minute()>=0 && minute()<=15) ReefAngel.Relay.Off(Port6);
if (hour()==8 && minute()>=0 && minute()<=15) ReefAngel.Relay.Off(Port5);
if (hour()==18 && minute()>=0 && minute()<=15) ReefAngel.Relay.Off(Port6);
if (hour()==18 && minute()>=0 && minute()<=15) ReefAngel.Relay.Off(Port5);
Re: help with initial programming PLEASE
Posted: Fri Nov 15, 2013 5:44 am
by lnevo
Its one way to skin this cat...
Re: help with initial programming PLEASE
Posted: Fri Nov 15, 2013 5:51 am
by iratefrizz
well I guess I will give it a shot

Re: help with initial programming PLEASE
Posted: Mon Nov 18, 2013 5:49 am
by iratefrizz
few more questions.
I am on portal but it says
Connection status unreachable IP (not sure where I even put the IP let alone which IP to put)
when I try to change settings from portal I get
this error
Only available with valid wifi address. Please make sure your controller is sending data to the Portal web server
next I have wifi set up and I think I got port forwarding set up through my router / vpn but idk what I'm supposed to put for "away host" on the app.
Still Don't understand how to get the RA status in my signature block.
Thank You
Josh
Re: help with initial programming PLEASE
Posted: Mon Nov 18, 2013 9:43 am
by rimai
I don't think your port forwarding is setup correctly.
When you go to
http://www.yougetsignal.com/tools/open-ports/ does it show port 2000 open?
For your sig, you must enter this in your signature:
Go to User Control Panel->Profile->Edit signature
Re: help with initial programming PLEASE
Posted: Tue Nov 19, 2013 6:04 am
by iratefrizz
No, It isn't forwarding. I have dd-wrt and used it to set port forwarding but its not for that type of port forwarding I guess. :/
Put that code into my signature but I don't think it worked... I guess i'll find out in a minute for sure though

Re: help with initial programming PLEASE
Posted: Tue Nov 19, 2013 7:44 am
by iratefrizz
OK I was able to set up port forwarding and it works.
Re: help with initial programming PLEASE
Posted: Tue Nov 19, 2013 7:47 am
by lnevo
iratefrizz wrote:Put that code into my signature but I don't think it worked... I guess i'll find out in a minute for sure though

It needs to be in an IMG tag. Here's what's in mine. This is how it should look in the Edit signature box.
Code: Select all
[img]http://forum.reefangel.com/status/banner_5.aspx?id=lnevo&t=-4[/img]
Re: help with initial programming PLEASE
Posted: Tue Nov 19, 2013 7:48 am
by lnevo
Looks like you got it working

Re: help with initial programming PLEASE
Posted: Thu Nov 21, 2013 6:52 am
by iratefrizz
lnevo wrote:Looks like you got it working

I DID I happened to think about the situation about 20 minutes before it was stated that I had to put it in the img box.
NOW for hopefully my last question for a while... how do I make the app on my phone have labels that match my portal here? is that possible...
Re: help with initial programming PLEASE
Posted: Thu Nov 21, 2013 12:49 pm
by binder
iratefrizz wrote:lnevo wrote:Looks like you got it working

I DID I happened to think about the situation about 20 minutes before it was stated that I had to put it in the img box.
NOW for hopefully my last question for a while... how do I make the app on my phone have labels that match my portal here? is that possible...
if it is the android app, then goto the settings inside the app and make sure your portal name is entered and then choose download labels.
Sent from my iPad mini
Re: help with initial programming PLEASE
Posted: Sat Feb 01, 2014 11:30 pm
by iratefrizz
OOOK so back to initial issues. I was able to get it working and all was well. but now I am unable to connect to my reef angel from my phone or through the portal. the funny thing is. that it shows what is on and off and the fans turning on and off like they are but when i click to turn one of them off it comes up with this error
"Only available with valid wifi address. Please make sure your controller is sending data to the Portal web server"
what might i be missing?
I went into my router and the ip that was in there was not correct as far as i can telll. like it had changed on me. so i changed it back to what i thought it should be. but its still not work
thank you in advance.
Josh
Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 10:36 am
by rimai
Yeah, routers tend to do that

One way to avoid this is to assign a static ip address based on MAC address in your router, so it will always assign the same ip address to your wifi attachment.
That way, the port forwarding will stay correct everytime.
Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 10:39 am
by iratefrizz
I think i remember how to do that. but any idea why after changing it back to the original IP address I still received the same errors... ? like the portal on here was receiving updates but I couldn't change any settings or turn anything on or off. but the ap on my phone still wouldn't connect.

Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 10:44 am
by ReEfnWrX
Are you accessing your RA through the AP using your LAN or WAN IP address? If you are using your WAN IP address that can change to
Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 10:46 am
by iratefrizz
I am currently in the states whereas my tank and RA is in Japan. so I am using the WAN IP which is the IP that changed. my wife can connect to it IN home using LAN but sometimes it still returns errors (no big deal) but not sure why i can't connect at all on my phone (or hers if she is using away setting) but the portal on here is able to read what its sending out but cant change things
Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 10:56 am
by rimai
The controller is capable of sending data out without a problem, that's why it shows current data. It doesn't depend on port forwarding or anything.
The problem is that you can't connect from outside because the port forwarding got messed up with the ip change.
Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 10:57 am
by iratefrizz
ok. i understand... so now i just need to track down the problem with port forwarding? that should all be router settings correct? nothing with the RA programming?
Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 11:01 am
by rimai
Correct. It's all inside the router.
Re: help with initial programming PLEASE
Posted: Sun Feb 02, 2014 11:47 am
by iratefrizz
Thank you I'll update when i get it fixed or ask more questions