Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82193 > unrolled thread
| Started by | manduk <nasdul@NOSPAMxxx.it> |
|---|---|
| First post | 2014-12-09 12:39 +0100 |
| Last post | 2014-12-10 09:55 +0300 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | manduk <nasdul@NOSPAMxxx.it> |
|---|---|
| Date | 2014-12-09 12:39 +0100 |
| Subject | serial data and web |
| Message-ID | <m66n29$3gk$1@speranza.aioe.org> |
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?
[toc] | [next] | [standalone]
| From | Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org> |
|---|---|
| Date | 2014-12-09 14:55 +0300 |
| Message-ID | <mailman.16769.1418126307.18130.python-list@python.org> |
| In reply to | #82193 |
[Multipart message — attachments visible in raw view] — view raw
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.
[toc] | [prev] | [next] | [standalone]
| From | manduk <nasdul@NOSPAMxxx.it> |
|---|---|
| Date | 2014-12-09 14:24 +0100 |
| Message-ID | <m66t70$jlh$1@speranza.aioe.org> |
| In reply to | #82194 |
> "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?
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2014-12-09 23:28 -0500 |
| Message-ID | <mailman.16790.1418185710.18130.python-list@python.org> |
| In reply to | #82197 |
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
Python would only be involved in updating the data on the server -- on
it's own it likely can't push updates to the browser.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org> |
|---|---|
| Date | 2014-12-10 09:55 +0300 |
| Message-ID | <mailman.16797.1418194375.18130.python-list@python.org> |
| In reply to | #82197 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web