Pages: [1]   Go Down
Author Topic: Web Server Display Data  (Read 1612 times)
0 Members and 2 Guests are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Am working on project depend on displaying data on internet, and so far I managed to set up Ardinuo Webserver, and got data on broswer nice and nice as table, but the challenge is how to get this data shown as GRAPH.?

Did any one has get data displyed using WEB CLIENT.??

Thanks in advance,

Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 631
Posts: 50165
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you are getting data from the Arduino to the browser, it's up to the browser to display the data in the way that you want.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks, yes i got the data on broswer, but how to render the data as GRAPH.??  this is the point..
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 221
Posts: 13846
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Normally the webserver prepares an image to be embedded in the HTML page. The arduino has the raw data to display, but I think it has far to little resources (30K) to create a usefull image of the data. The only way it might be done is creating some kind of vectormap liek svg as for graphs these are smaller than jpg's.

imho a far easier way to create graphs is to install a webserver on an old PC e.g. http://www.apachefriends.org/en/xampp.html, that fetches the raw data from the Arduino and creates a graph's from the data. If you consider using an old PC it may be simpler to use that PC as a log server and let the arduino send all the raw data to that server. A php script can make a csv file from your raw data. Another php script can make graphs from csv files e.g. http://pchart.sourceforge.net/documentation.php?topic=exemple1

sofar my 2 cents,
Rob
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

London
Offline Offline
Sr. Member
****
Karma: 1
Posts: 330
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have a look at google charts.
http://code.google.com/apis/chart/
Service available for free and you dont need your own webserver.
Google do all the processing for you.
Ive used it myself on a project.

Build a link to an image into your webpage served up by the arduino.
You pass the data points and info on how you want the graph to look.
The api will return an image of your graph built from the url.

For example:
Code:
http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World




Gordon
Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9675
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
thanks, yes i got the data on broswer, but how to render the data as GRAPH.??  this is the point..

You probably need to google something like "html graphs" to see what is available. You probably will need to incorporate javascript or java applets.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

CH
Offline Offline
God Member
*****
Karma: 19
Posts: 704
Book Writer "Arduino Praxiseinstieg"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
how to get this data shown as GRAPH.
What kind of data and how many values do you want to display on the graph?

I think the Google Charts is a good and easy tool to display data on a chart.

If you have a lot of values (20 or more) I suggest that you send the data over a ethernet shield to a web database (i.e. MySQL). With an additional webscript you can read the data from the database an display it on a website on a internet site or in your intranet.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you, robtillaart, GordonEndersby, zoomkat, Webmeister for your great contribution to this thread.!  smiley-wink

Until now the idea of using google chart is most ideal, if I got real time Graphing, which I think it could possibly work with POST but not with GET.

Any more Ideas welcome.
Logged

Netherlands
Offline Offline
Sr. Member
****
Karma: 1
Posts: 290
(:-)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PHP GD library:

http://articles.techrepublic.com.com/5100-10878_11-5092227.html
Logged

Pages: [1]   Go Up
Jump to: