Must-haves for EASY DIY controller?

Hydra_Ethernet.png
 
I have my own server if you want to use some space on it. I'm going to write a sketch to send variables to the server and store in mysql. Going to have all the display on the server complete with graphs for 2 weeks through a php script. Probably going to do SMS alerts too. That way I shouldn't have to worry about any dynamic IPs through my ISP.
 
I have my own server if you want to use some space on it. I'm going to write a sketch to send variables to the server and store in mysql. Going to have all the display on the server complete with graphs for 2 weeks through a php script. Probably going to do SMS alerts too. That way I shouldn't have to worry about any dynamic IPs through my ISP.

Im guessing you have written a listener client for the server which takes the data, categorizes it and then puts it into mysql?

At first I was thinking in terms of client/server and was like.. no way is he fitting an odbc driver into a sketch.. LOL then I got my head on straight ;)
 
To be honest, I haven't really put too much thought into it. I was thinking about creating a php script on the remote server and posting the variables to it. Then have the script write them to the db, after security checks of course. From there I'll write other display scripts on the remote server to parse the data and display it along with graphs.

If possible, which is seems to be, the ethernet script will be very basic with a very large portion being handled by my server.
 
To be honest, I haven't really put too much thought into it. I was thinking about creating a php script on the remote server and posting the variables to it. Then have the script write them to the db, after security checks of course. From there I'll write other display scripts on the remote server to parse the data and display it along with graphs.

If possible, which is seems to be, the ethernet script will be very basic with a very large portion being handled by my server.

If you're refering to standard http post, you're obviously going to have to implement some sort of minimal http protocol layer ontop of the existing tcp on the AVR, im not sure how much space this would take as I haven't written one before, nor do I know how much space you have available.

Im guessing that this server you're posting to is not something on your local home network(due to the concerns of dhcp), but if it was, a tcp send to a specific port may be a bit smaller and easier to implement.
 
Might be easiest to make the arduino return an XML or json instead of HTML. Poll it every X minutes to populate a DB with the data (RRD will probably be easiest). Then write the actual web site on a real web server that displays the data. That way the arduino will be doing the bare minimum and we can still have a pretty data logging/web interface.

That's how I'll probably implement mine anyway.


Dustin, thanks for the offer, but I already have hosting so I'm covered.
 
Wouldn't all of this require the remote server to poll the arduino? How would I handle dynamic IP's from my ISP?
 
Also, since the hardware is working, maybe we should shift back to doing another call for any possible changes so we can get the boards ordered.

BTW DWZM, I'll volunteer to fit the bill on this round of boards. You ordered 10 of them from seeedstudio?
 
Wouldn't all of this require the remote server to poll the arduino? How would I handle dynamic IP's from my ISP?

Yes, the server will poll the arduino.

Unless you're on dial-up I highly doubt your IP will change frequently if at all. I've had mine change once in the last 5 years with the cable company.

Even if it does, a service like opendns or dyndns (both have free versions) will solve that issue.

If you don't want to deal with that, you can always have the arduino send the content every X minutes to the server.


I'm all set with the hydra hardware.
 
Also, since the hardware is working, maybe we should shift back to doing another call for any possible changes so we can get the boards ordered.

BTW DWZM, I'll volunteer to fit the bill on this round of boards. You ordered 10 of them from seeedstudio?


I will gladly put in some money for this round too for a board plus help cover some expenses youve made to get this far. just give me a paypal.
 
I'd love to give a board a try as well if someone is having a batch made, just let me know how much and where to paypal.
 
Yes, the server will poll the arduino.

Unless you're on dial-up I highly doubt your IP will change frequently if at all. I've had mine change once in the last 5 years with the cable company.

Even if it does, a service like opendns or dyndns (both have free versions) will solve that issue.

If you don't want to deal with that, you can always have the arduino send the content every X minutes to the server.


I'm all set with the hydra hardware.

well it really depends on your service, and if your router supports dyndns/opendns. Mine was rock solid when I had comcast, switched to ATT's u-verse service and I have to use their router, which doesnt support dyndns :sad2: so I have to manually update it from time to time.
 
Back
Top