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


Groups > comp.lang.python > #102152

Re: show instant data on webpage

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de>
Newsgroups comp.lang.python
Subject Re: show instant data on webpage
Date 27 Jan 2016 12:02:58 GMT
Lines 20
Message-ID <dgrpviFa5qeU1@mid.individual.net> (permalink)
References <n885p7$1el2$1@gioia.aioe.org> <mailman.19.1453826317.2338.python-list@python.org> <n88a81$1nt2$1@gioia.aioe.org>
X-Trace individual.net 1gYCNuujaJkVGKGViotfHgWKQlSmwflUIQdG8ainPYTmcUgNdl5a1g6sdN
X-Orig-Path not-for-mail
Cancel-Lock sha1:nz8VDOiAQg5ZlX7E40Qr2HJtLq0=
User-Agent tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.16.0-4-amd64 (x86_64))
Xref csiph.com comp.lang.python:102152

Show key headers only | View raw


mustang <mustang@nomail.it> wrote:

>> open("myData.dat", "w").close()
>>
>> while True:
>>      temp = sensor.readTempC()
>>      riga = "%f\n" % temp
>>      with open("myData.dat", "a") as f:
>>          f.write(riga)
>>      time.sleep(1)
>yes great it works!thanks a lot!
>Anyway to refresh temperature I've to recall anytime the php page.
>My idea is to read for example the first line every x seconds...it 
>should work.
>Is it possible to use python and not php to plot data?
You even could use python for the webserver. Read the docs for the module
"SimpleHTTPServer".


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


Thread

show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-26 17:10 +0100
  Re: show instant data on webpage David Palao <dpalao.python@gmail.com> - 2016-01-26 17:38 +0100
    Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-26 18:26 +0100
      Re: show instant data on webpage David Palao <dpalao.python@gmail.com> - 2016-01-27 11:36 +0100
        Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-27 16:36 +0100
          Re: show instant data on webpage Joel Goldstick <joel.goldstick@gmail.com> - 2016-01-27 10:49 -0500
            Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-27 18:20 +0100
      Re: show instant data on webpage "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2016-01-27 12:02 +0000
        Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-27 16:37 +0100
          Re: show instant data on webpage "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2016-01-27 16:47 +0000
            Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-27 18:21 +0100
              Re: show instant data on webpage Grant Edwards <invalid@invalid.invalid> - 2016-01-27 17:51 +0000
                Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-29 12:48 +0100
                Re: show instant data on webpage Joel Goldstick <joel.goldstick@gmail.com> - 2016-01-29 07:34 -0500
                Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-30 21:50 +0100
                Re: show instant data on webpage Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-01-30 21:33 +0000
                Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-01-31 20:19 +0100
                Re: show instant data on webpage Joel Goldstick <joel.goldstick@gmail.com> - 2016-01-31 14:48 -0500
                Re: show instant data on webpage mustang <mustang@NOMAIL.it> - 2016-02-21 18:36 +0100
  Re: show instant data on webpage Grobu <snailcoder@retrosite.invalid> - 2016-01-30 05:01 +0100

csiph-web