12-18-2015, 01:59 AM
Well I've been working hard on the ethernet portion and thought I would show off what I have so far. Any comments or suggestions would be great.
First on the display in "system settings" there's a section called "Network" which will grow over time. Here you can see your local IP address and the username and password to log in. When you plug the ethernet board into your network and turn it on it will automatically scan your network and retrieve your local IP address. This is the address you need to type into your computer to access it when you are at home or connected directly to your network. When you connect outside your network you will have to port forward the arduino and then use the IP address given by your internet provider. I will be adding the port to the IP soon. I also plan to have the display show the IP you need to access outside your network.
So the point of all this is when you plug into your network with Robo-Tank you won't have to guess how to access it or touch any code.
The username and password is random and random from the get go, meaning when you restart the arduino and hit the generate user + pass button you won't see the same passwords from last time. Usually random isn't random on arduinos.
I pounded my head for 3 days trying to get the user/password feature to work and I'm happy to say it works excellent. When you generate a user and password from the display it ends up on the ethernet Due and gets saved to the SD card on the w5100 shield. The auto generator uses A-Z, 0-9 and lots of special characters so they won't be easy to crack and yes hard to remember. I plan to remove some letters and characters because they are to similar and way overkill. And of course you can simply open the user.txt and pass.txt file on the SD card, input your own 9 digit username and password and the controller will figure it out.
For the webpage itself its protected with basic authorization using the browser login form. It loads very fast and all the data is updated using AJAX so no page refreshing or flickering. The sensors that say N/A means not available because its not receiving any valid data because I don't have them connected. Once connected they would show what they should.
The outlet controls update automatically when I make a change on the controller display, if I turn it off using the controller it will immediately go off on the web page. If I turn an outlet on/off on the webpage I will see the change on the controller display. Left hand always knows what the right hand is doing. And of course the names on the outlets change if I assign them as something different. If I change outlet 1 which is a light to a power head it will automatically change to saying power head is on or off.
When I hit the feed button I see all the outlets change states because it goes in feed mode, the display also shows the fish are being feed. I will be adding the time to show when they were last feed.
Now that I'm getting into it I can see a lot more to come in the future. I will be moving on to other things once I get a few more basics on there so I can get the other equipment working then I'll come back to it to add more goodies.
First on the display in "system settings" there's a section called "Network" which will grow over time. Here you can see your local IP address and the username and password to log in. When you plug the ethernet board into your network and turn it on it will automatically scan your network and retrieve your local IP address. This is the address you need to type into your computer to access it when you are at home or connected directly to your network. When you connect outside your network you will have to port forward the arduino and then use the IP address given by your internet provider. I will be adding the port to the IP soon. I also plan to have the display show the IP you need to access outside your network.
So the point of all this is when you plug into your network with Robo-Tank you won't have to guess how to access it or touch any code.
The username and password is random and random from the get go, meaning when you restart the arduino and hit the generate user + pass button you won't see the same passwords from last time. Usually random isn't random on arduinos.
I pounded my head for 3 days trying to get the user/password feature to work and I'm happy to say it works excellent. When you generate a user and password from the display it ends up on the ethernet Due and gets saved to the SD card on the w5100 shield. The auto generator uses A-Z, 0-9 and lots of special characters so they won't be easy to crack and yes hard to remember. I plan to remove some letters and characters because they are to similar and way overkill. And of course you can simply open the user.txt and pass.txt file on the SD card, input your own 9 digit username and password and the controller will figure it out.
For the webpage itself its protected with basic authorization using the browser login form. It loads very fast and all the data is updated using AJAX so no page refreshing or flickering. The sensors that say N/A means not available because its not receiving any valid data because I don't have them connected. Once connected they would show what they should.
The outlet controls update automatically when I make a change on the controller display, if I turn it off using the controller it will immediately go off on the web page. If I turn an outlet on/off on the webpage I will see the change on the controller display. Left hand always knows what the right hand is doing. And of course the names on the outlets change if I assign them as something different. If I change outlet 1 which is a light to a power head it will automatically change to saying power head is on or off.
When I hit the feed button I see all the outlets change states because it goes in feed mode, the display also shows the fish are being feed. I will be adding the time to show when they were last feed.
Now that I'm getting into it I can see a lot more to come in the future. I will be moving on to other things once I get a few more basics on there so I can get the other equipment working then I'll come back to it to add more goodies.