Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102149
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | David Palao <dpalao.python@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: show instant data on webpage |
| Date | Wed, 27 Jan 2016 11:36:56 +0100 |
| Lines | 26 |
| Message-ID | <mailman.31.1453891019.2338.python-list@python.org> (permalink) |
| References | <n885p7$1el2$1@gioia.aioe.org> <mailman.19.1453826317.2338.python-list@python.org> <n88a81$1nt2$1@gioia.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de k/VFjBw+OZUKL3nnyvRdcQvCKNcE8059dmIVeBS1C1AQ== |
| Return-Path | <dpalao.python@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'lot!': 0.09; 'php,': 0.09; 'refresh': 0.09; 'python': 0.10; 'anyway': 0.11; '"a")': 0.16; 'instance)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:show': 0.16; 'temp': 0.16; 'true:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'example': 0.26; 'message-id:@mail.gmail.com': 0.27; 'page.': 0.28; 'idea': 0.28; "i'm": 0.30; 'url:mailman': 0.30; 'work.': 0.30; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'data': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'yes': 0.62; 'great': 0.63; 'temperature': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YDcq7EBLOpVpmSSEQdLuJZkKfAnnwmUpk6TSgkTTmCk=; b=k9Gr9DrwCib10p4g8H58deN8bnoJ0iA8b5W0C9KHrheWWUdykiuPzcGkVNRHlJS4JG SNihHMErF+K5zJjBMlhwasTnLxWuxeeXaal0JcVUM24ipNTuTp+d06LVRaWhaxBYDTHG ZoZnkuDSX4SW/QxOtzvSnUI3kkkDWdK0j5MYlHCWotfNHNTz7+JugxLd83RHbsaCdhuV j5OuvH5G0ZkX/Hc4v91cuFzWsrQFS+4kjqPOn+svqmcitMDpjAEkzS1ym5m68Exibkvs spWaEaLl4KxolfPZUTFnA8hA6vqK8fkD91mYtaVoxe6mdIO9PezqWdI28pppslcBXGXH Rltg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=YDcq7EBLOpVpmSSEQdLuJZkKfAnnwmUpk6TSgkTTmCk=; b=R2pRC/lK+AyeLBnadbjqZAq2/DQLAN9YojoV996yJXnxliaKKvh4xjAPSxLGuPMk6N BSVbJnEAsrjFFbFXqT2hgkTO+8AbIuuhgy+bworkRlrfdlGHOW8Bm6ck6LBNIlCEbG2s fsYdAfuLuvxXiCGWjgNBdSZHITl7hsbJi50F8uk+uRQ3kb/4zENp5Bv0CDkchiVpgzim +qNN7nj7RCF6GB832nb9elQXdPrJF+IT3DHF8N9M2pkH3NNF5r7X0VW2KOfuhjrIx4Mj PZ2TckTxJniLGp0+VUbXGc1Caj3jPJK3t0Jhi4VDDyfGomE8WVogqPKxYTT3IUa49VSt lJKA== |
| X-Gm-Message-State | AG10YOSTqZ2uT9zCQt7KomzJ8rLuzIkhEYq8pn/Y1RS0oK5wXh9eR704nzZO8FMG8SBLKcok1Kf4vU59FKLXdw== |
| X-Received | by 10.140.233.132 with SMTP id e126mr34706627qhc.91.1453891016319; Wed, 27 Jan 2016 02:36:56 -0800 (PST) |
| In-Reply-To | <n88a81$1nt2$1@gioia.aioe.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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> |
| Xref | csiph.com comp.lang.python:102149 |
Show key headers only | View raw
2016-01-26 18:26 GMT+01:00 mustang <mustang@nomail.it>:
>
>> 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?
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
I'm not sure to understand how you are using php, but indeed you can
use python to plot data (have a look at matplotlib, for instance) and
also to make dynamic web pages (Flask, django).
Best.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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