serial data and web

2014-12-09 Thread manduk

I would like to get data from serial port and send it to a web page.
I think that getting data from serial port shopuld not be difficult in 
python. I've found some interesting links about it.

How can I send after the datas directly to a web page?
--
https://mail.python.org/mailman/listinfo/python-list


Re: serial data and web

2014-12-09 Thread Mihamina Rakotomandimby

On 12/09/2014 02:39 PM, manduk wrote:

I would like to get data from serial port and send it to a web page.
I think that getting data from serial port shopuld not be difficult in 
python. I've found some interesting links about it.

How can I send after the datas directly to a web page?


A web page?
Did you mean a Web server?

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.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: serial data and web

2014-12-09 Thread manduk



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?

--
https://mail.python.org/mailman/listinfo/python-list


Re: serial data and web

2014-12-09 Thread Jean-Michel Pichavant
- Original Message -
 From: manduk nas...@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.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: serial data and web

2014-12-09 Thread Mihamina Rakotomandimby

On 12/10/2014 07:28 AM, Dennis Lee Bieber wrote:

On Tue, 09 Dec 2014 14:24:51 +0100, manduk nas...@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.

--
https://mail.python.org/mailman/listinfo/python-list