Path: csiph.com!aioe.org!.POSTED!not-for-mail From: mustang Newsgroups: comp.lang.python Subject: Re: show instant data on webpage Date: Tue, 26 Jan 2016 18:26:26 +0100 Organization: Aioe.org NNTP Server Lines: 16 Message-ID: References: NNTP-Posting-Host: TJzGgIeNU2M3DRj2nUJi5g.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.python:102133 > 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?