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


Groups > comp.lang.python > #82265

Re: serial data and web

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mihamina.rakotomandimby@rktmb.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.083
X-Spam-Evidence '*H*': 0.83; '*S*': 0.00; 'dynamically': 0.07; 'modify': 0.07; 'plenty': 0.07; 'http': 0.09; 'ftp,': 0.16; 'web?': 0.16; 'folder': 0.16; 'wrote:': 0.18; 'server,': 0.19; '>>>': 0.22; 'example': 0.22; 'header:User-Agent:1': 0.23; 'setup,': 0.24; 'updating': 0.26; 'post': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'page.': 0.31; 'serve': 0.31; 'url:wiki': 0.31; '+0100,': 0.31; 'url:wikipedia': 0.31; 'file': 0.32; 'another': 0.32; 'text': 0.33; 'but': 0.35; 'there': 0.35; 'real-time': 0.36; 'subject:data': 0.36; 'url:org': 0.36; 'remote': 0.38; 'server': 0.38; 'whatever': 0.38; 'to:addr:python- list': 0.38; 'does': 0.39; 'itself': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'back': 0.62; "you'll": 0.62; 'received:217': 0.63; 'real': 0.63; 'charset:windows-1252': 0.65; 'wish': 0.70; 'url:%1': 0.72; 'serial': 0.72; 'transfer': 0.82; '(going': 0.84; 'datas': 0.84; 'either:': 0.91
X-Virus-Scanned Debian amavisd-new at mfilter30-d.gandi.net
X-Originating-IP 41.188.46.121
Date Wed, 10 Dec 2014 09:55:12 +0300
From Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
MIME-Version 1.0
To python-list@python.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>
In-Reply-To <8iif8ap3t4euo5hc02qfm8k0jk5b3omjej@4ax.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16797.1418194375.18130.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418194375 news.xs4all.nl 2934 [2001:888:2000:d::a6]:47699
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82265

Show key headers only | 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