It seems very interresting. As soon as I'll have some spare time I'd like to try your code. Would it be possible to have an example about how to manage some of the PIN's status (something like ON/OFF).
Also, I'd want to ask you what do you think about using a database in the middle and just querying the database to show the status of the Arduino PIN's (the values and the status of the PIN's would be pushed into the database using 2 services: one on the arduino and one listener on the webserver that registers all into the DB at a predefined time range).
The use of the database will avoid "overloading" with requests the Arduino board
Flx:
Would it be possible to have an example about how to manage some of the PIN's status (something like ON/OFF).
I have an 8-channel relay board and I have been planning to write an example how it could be used as a timer controlled by a web gui. I'll send you a pm once I get it done and uploaded to github.
this sound really interesting, I've build something similar using the board just as AJAX/JSON server and loading the page locally from the device (smartphone or PC). The original files was attached in this post.
If you are planning to develop a web interface for a remote control of relays or similars, you may think about an integration with the home automation project Souliss, so that from a single point interface you may control many devices over your home. In the project there is now an Android interface.
If you are interested in, have a look at www.souliss.net or search for Souliss into that forum.
Flx:
Would it be possible to have an example about how to manage some of the PIN's status (something like ON/OFF).
I have an 8-channel relay board and I have been planning to write an example how it could be used as a timer controlled by a web gui. I'll send you a pm once I get it done and uploaded to github.
Flx:
Would it be possible to have an example about how to manage some of the PIN's status (something like ON/OFF).
I have an 8-channel relay board and I have been planning to write an example how it could be used as a timer controlled by a web gui. I'll send you a pm once I get it done and uploaded to github.
Thanks a lot !!!
I'm sorry that it has taken so long.
Here is a simple example how to control LOW/HIGH status of a pin.
Settings are saved after eatch change and loaded when the progrmam starts.
I am trying to do a project very similar to your weather station project. However I do not have access to a remote server that can host css or javascript.
My project box will be located in some remote wooded areas that do not have cell phone coverage or internet access. The project box has an Arduino, Ethernet shield and a wifi router used to create a local network. My project would require the javascript files for graphing to be hosted on the Arduino.
Have you tried to do this project with the css and javascript files embedded on the arduino somehow? Do you have any suggestions on how that might be done?
I understand you will have a local network, and that the Arduino is connected to this via WiFi?
On this local network do you have a file server, maybe even a NAS hard drive (networked hdd)?
If so, then you can store your javascript and css files on this.
In your index html fie on your Arduino, just point to those as external resources.
Or if you have a local web server, then you can set it up to serve from there and have the client request data direct from the Arduino or have the Arduino push data to the server database.
I haven't had the Arduino serve up files such as html, css or js from the onboard SD card, but I believe it can be done albeit slowly and some care is needed around how you do this.
There are many ways to do this, so hopefully one of these ways might provide you with an idea.
Keep us informed if you can, I'd like to see how you progress.
Take a look at my site, in my signature. I am actively developing it at present, up until 2:30am this morning working out SQL commands.
Have you tried to do this project with the css and javascript files embedded on the arduino somehow? Do you have any suggestions on how that might be done?
Thanks,
Tom
You could probably use the sd card. In my hydrobot project, http://www.cs.helsinki.fi/u/ljlukkar/hydrobot/, I was able to use quite large csv files. I can't see any reason why it wouldn't work for other files as well.
You should try to set the http Cache-Control header so that the browser caches the responce and doesn't request it again.
Backbone.js, the MV* framework I have used in all the examples, is one of the most light weight out of them all.