serial data and web

Mihamina Rakotomandimby mihamina.rakotomandimby at rktmb.org
Wed Dec 10 01:55:12 EST 2014


On 12/10/2014 07:28 AM, Dennis Lee Bieber wrote:
> On Tue, 09 Dec 2014 14:24:51 +0100, manduk <nasdul at NOSPAMxxx.it> declaimed
> the following:
>
>>> "A web page"?
>>> Did you mean a Web server?
>> ok I mean I would like to view the datas on a web page
>>
>>> Basically, you'll have to upload your data to a Web Server, then the
>>> server will serve your data.
>>> Depending on how your server is setup, you'll have to use FTP, RSync,
>>> HTTP GET or POST or PUT,...
>>> There is plenty of ways to upload some content.
>>>
>> not only upload in a folder of a webserver...I wish to see in real time
>> the datas in a public html page.
>> I get the data from serial port and then I put them in a remote page.
>> Which is the best way to transfer datas from a text file for example and
>> send it on web?
> 	Normal HTML is a "pull" technology... The client (browser) has to ask
> the server to send it the page.
>
> 	To have dynamically updating web page requires either: a web page that
> does a timed redirect back to itself (going to be very annoying as the page
> keeps reloading at whatever interval was given to the redirect), OR the use
> of Javascript to modify the HTML during the load, OR Javascript to modify
> pages in real-time -- cf: http://en.wikipedia.org/wiki/Dynamic_HTML and
> http://en.wikipedia.org/wiki/Ajax_%28programming%29

Which is a loop for pulling.
There is another alternative: Websockets.
But it is still a "young" technolgy.




More information about the Python-list mailing list