Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82265

Re: serial data and web

Date 2014-12-10 09:55 +0300
From Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org>
Subject Re: serial data and web
References <m66n29$3gk$1@speranza.aioe.org> <mailman.16769.1418126307.18130.python-list@python.org> <m66t70$jlh$1@speranza.aioe.org> <8iif8ap3t4euo5hc02qfm8k0jk5b3omjej@4ax.com>
Newsgroups comp.lang.python
Message-ID <mailman.16797.1418194375.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 12/10/2014 07:28 AM, Dennis Lee Bieber wrote:
> On Tue, 09 Dec 2014 14:24:51 +0100, manduk <nasdul@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.

Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

serial data and web manduk <nasdul@NOSPAMxxx.it> - 2014-12-09 12:39 +0100
  Re: serial data and web Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org> - 2014-12-09 14:55 +0300
    Re: serial data and web manduk <nasdul@NOSPAMxxx.it> - 2014-12-09 14:24 +0100
      Re: serial data and web Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-12-09 23:28 -0500
      Re: serial data and web Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org> - 2014-12-10 09:55 +0300

csiph-web