help with initial programming PLEASE

New members questions
Post Reply
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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); 
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: help with initial programming PLEASE

Post by lnevo »

Its one way to skin this cat...
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post by iratefrizz »

well I guess I will give it a shot :)
Image
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: help with initial programming PLEASE

Post 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
Roberto.
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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 :)
Image
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post by iratefrizz »

OK I was able to set up port forwarding and it works.
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: help with initial programming PLEASE

Post 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]
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: help with initial programming PLEASE

Post by lnevo »

Looks like you got it working :)
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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...
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: help with initial programming PLEASE

Post 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
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: help with initial programming PLEASE

Post 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.
Roberto.
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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. :(
Image
ReEfnWrX
Posts: 234
Joined: Tue Nov 05, 2013 8:40 am
Location: Houston TX

Re: help with initial programming PLEASE

Post 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
Image
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: help with initial programming PLEASE

Post 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.
Roberto.
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post 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?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: help with initial programming PLEASE

Post by rimai »

Correct. It's all inside the router.
Roberto.
iratefrizz
Posts: 21
Joined: Tue Nov 12, 2013 8:42 pm
Location: Okinawa

Re: help with initial programming PLEASE

Post by iratefrizz »

Thank you I'll update when i get it fixed or ask more questions
Image
Post Reply