Hi there, I will explain this as simply as possible, as I don't believe it to be a particularly complex question.
Whilst I know that language choice can be a matter of preference, I am unsure about how to go about this particular idea, and can't decide which would be best suited.
Moreover, the only coding experience I have is with C++ (and HTML/CSS).
From the examples listed in the Arduino Tutorials it seems to me that Processing or Java would be most suitable, but see what you think.
I have a set of LDRs connected to an Arduino MEGA that tell me when someone is sitting on them. When someone sits on one, the value of two ints changes:
dayusers++;
allusers++;
I need to read these values FROM the arduino via SERIAL and have them inform a webpage of their values so that they may be displayed to the public. The Arduino will not be connected via an ethernet shield or a wireless shield, (the laptop will be online) and will, I presume, print something like the following:
Serial.print ("<div class=\"numbers\" id=\"day\">");
Serial.print (dayusers);
Serial.println ("</div>");
Serial.print ("<div class=\"numbers\" id=\"alltime\">");
Serial.print (allusers);
Serial.println ("</div>");
But there needs to be something this is communicating to, obviously, rather than just the serial monitor, so I assume the easiest, clumsiest way to do it is to write to an html file, or text file, and I guess a neater way is somehow java based, but apart from that, I'm lost.
I saw things written about client.print but I'm not connected as a server and client per se, so I'm not sure what my next step is.
What language do you think would be most suited to interpreting this data and having it update, live on the internet?
Thank you for your help in advance.