I am using the Netduino Plus to control a friend's chicken-coop. (Yes, a chicken-coop) I am attempting to use the network connection so that he can monitor things such as water level and temperature, as well as open and close the door.
I am new to C# and HTML and having difficulty figuring out how to update items such as temperature on the web page as they change. I can place the data as into the HTML code, but I am not sure how to dynamically update the text without refreshing the whole page. I have seen some examples using java script to do this on web pages, but I am not sure how to get the data from a C# variable into the java script or if this is even a valid approach.
Sorry if this seems a little basic, but I have to start learning somewhere. Thanks in advance!
Dynamically Updated Web Page
Started by John Green, Feb 22 2012 10:35 PM
1 reply to this topic
#1
Posted 22 February 2012 - 10:35 PM
#2
Posted 23 February 2012 - 02:04 AM
I would suggest you check out some AJAX examples.
You would need to have javascript poll the server (netduino) every few seconds to update the data. This would require a page that outputs only the relevant data in some format such as JSON, XML, CSV, etc....
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users