Go Down

Topic: webserver - doubts (Read 981 times) previous topic - next topic

PaulS

Quote
So:
1) I'd like to reload part of the page to keep the valued updated (almost every second)
2) display the trend of data by clear and easy graph

Not exactly what a browser was designed for. But, there have been all kinds of enhancements made to support all kinds of uses. Of course, they come at a price.

One way around the "problem" is to link to the javascript from some other server. The Arduino should be serving data, not images and scripts and videos. While it can, it will be ssslllooowww doing so.

Your served page may need a java script to function properly. That java script does not have to be served by the Arduino.

simmete

1.
Quote
Not exactly what a browser was designed for. But, there have been all kinds of enhancements made to support all kinds of uses. Of course, they come at a price.

What kind of hardware do you think is proper to do this? I would like have only one device and not a linuxbox connected to an arduino board...

2.
Quote
One way around the "problem" is to link to the javascript from some other server.

Yes, but I cannot count on other device on the network.

So about the reload data I think the only way is a <META> on the html and about the graph... this can be menaged by other server, just getting data from arduino.
Or maybe is there any proper device? (see point 1.)
thanks again.


Krodal

The <canvas> of HTML5 can do graphs updates without updating the page. The data for the graph can be retrieved in a small javascript. It should be possible to keep the size very small, so the Arduino Webserver can upload it from the SD card without a long delay.

simmete


Go Up