show instant data on webpage

mustang mustang at NOMAIL.it
Tue Jan 26 12:26:26 EST 2016


> 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?





More information about the Python-list mailing list