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


Groups > comp.lang.python > #82198 > unrolled thread

Re: serial data and web

Started byJean-Michel Pichavant <jeanmichel@sequans.com>
First post2014-12-09 14:37 +0100
Last post2014-12-09 14:37 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#82198 — Re: serial data and web

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2014-12-09 14:37 +0100
SubjectRe: serial data and web
Message-ID<mailman.16770.1418132985.18130.python-list@python.org>
----- 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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web