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


Groups > comp.lang.python > #82198

Re: serial data and web

Return-Path <prvs=4130ad1bb=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.281
X-Spam-Level **
X-Spam-Evidence '*H*': 0.45; '*S*': 0.01; 'cc:addr:python-list': 0.11; 'url:pocoo': 0.16; 'web?': 0.16; 'folder': 0.16; 'app': 0.19; 'work,': 0.20; 'machine': 0.22; 'example': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '(see': 0.26; 'header:In-Reply-To:1': 0.27; 'page.': 0.31; 'requests': 0.31; 'file': 0.32; 'another': 0.32; 'text': 0.33; '-----': 0.33; 'accessing': 0.36; 'subject:data': 0.36; 'url:org': 0.36; 'implement': 0.38; 'remote': 0.38; 'thank': 0.38; 'same.': 0.38; 'serving': 0.60; 'simple': 0.61; 'you.': 0.62; "you'll": 0.62; 'information': 0.63; 'real': 0.63; 'received:194': 0.64; 'notice:': 0.67; 'person,': 0.68; 'privileged.': 0.69; 'wish': 0.70; 'serial': 0.72; 'disclose': 0.74; 'transfer': 0.82; 'datas': 0.84; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="5.07,545,1413237600"; d="scan'208";a="3706865"
Date Tue, 9 Dec 2014 14:37:44 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To manduk <nasdul@NOSPAMxxx.it>
In-Reply-To <m66t70$jlh$1@speranza.aioe.org>
Subject Re: serial data and web
MIME-Version 1.0
X-Mailer Zimbra 7.2.7_GA_2942 (ZimbraWebClient - GC37 (Linux)/7.2.7_GA_2942)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Mailman-Approved-At Tue, 09 Dec 2014 14:49:43 +0100
Cc python-list@python.org
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.16770.1418132985.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418132985 news.xs4all.nl 2879 [2001:888:2000:d::a6]:39318
X-Complaints-To abuse@xs4all.nl
X-Received-Body-CRC 2525573667
X-Received-Bytes 4211
Path csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:82198

Show key headers only | View raw


----- Original Message -----
> From: "manduk" <nasdul@NOSPAMxxx.it>

> > "A web page"?
> > Did you mean a Web server?
> 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?

One simple solution :
Use flask http://flask.pocoo.org/

You'll be able to create a web app very quickly. Accessing a serial port from that app and update the html will be easy.
For this solution to work, the machine accessing the serial port and the machine serving the html pages is the same.

If you need your html pages to be served by another machine, you can implement the html POST/GET requests (see the flask doc).

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

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


Thread

Re: serial data and web Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-12-09 14:37 +0100

csiph-web