Re: show instant data on webpage

2016-02-21 Thread mustang
You need free and private? The price is low -- if this is a business why not pay? If not a business, why private? it's not business it's like a school project, so no money :D There is another charting library called pygal which is great. It can produce output to .svg file format or .png.

Re: show instant data on webpage

2016-01-31 Thread Joel Goldstick
On Sun, Jan 31, 2016 at 2:19 PM, mustang wrote: > > How about https://plot.ly/python/ ? >> >> Free versione: Create 1 private chart > And if I've 3 sensor with 3 different plots? > -- > https://mail.python.org/mailman/listinfo/python-list > You need free and private? The price is low -- if this

Re: show instant data on webpage

2016-01-31 Thread mustang
How about https://plot.ly/python/ ? Free versione: Create 1 private chart And if I've 3 sensor with 3 different plots? -- https://mail.python.org/mailman/listinfo/python-list

Re: show instant data on webpage

2016-01-30 Thread Mark Lawrence
On 30/01/2016 20:50, mustang wrote: So, the python plotting packages mentioned can create files that hold your graphs. As to whether you want to display them on the web or send them around as attachments to your coworkers, or build some local application to display them is your choice Sorry

Re: show instant data on webpage

2016-01-30 Thread mustang
So, the python plotting packages mentioned can create files that hold your graphs. As to whether you want to display them on the web or send them around as attachments to your coworkers, or build some local application to display them is your choice Sorry for my confusion :D I'm still not sur

Re: show instant data on webpage

2016-01-29 Thread Grobu
On 26/01/16 17:10, mustang wrote: I've built a sensor to measure some values. I would like to show it on a web page with python. This is an extract of the code: file = open("myData.dat", "w") while True: temp = sensor.readTempC() riga = "%f\n" % temp file.write(rig

Re: show instant data on webpage

2016-01-29 Thread Joel Goldstick
On Fri, Jan 29, 2016 at 6:48 AM, mustang wrote: > > Then I'd use gnuplot or matplotlib. >> >> ok, but then I can upload/plot them online? > -- > https://mail.python.org/mailman/listinfo/python-list > Confusing mustang. You said: anyway I'm not interested in building website I've only to plot/s

Re: show instant data on webpage

2016-01-29 Thread mustang
Then I'd use gnuplot or matplotlib. ok, but then I can upload/plot them online? -- https://mail.python.org/mailman/listinfo/python-list

Re: show instant data on webpage

2016-01-27 Thread Grant Edwards
On 2016-01-27, mustang wrote: > >> mod_python exists for apache. If your only goal is just a simple website for >> your temperature sensor you could do it completely with python. If the >> webserver should serve other pages as well I'd prefer apache with mod_python. > > my goal is only to collect

Re: show instant data on webpage

2016-01-27 Thread mustang
mod_python exists for apache. If your only goal is just a simple website for your temperature sensor you could do it completely with python. If the webserver should serve other pages as well I'd prefer apache with mod_python. my goal is only to collect data and show them or plotting in a graph

Re: show instant data on webpage

2016-01-27 Thread mustang
Php, vbscript, perl, and perhaps other languages allow the interspersal of code and html in the same file. You can't do that with python. So, if you begin to wade into making websites with python you may be a little lost until you grasp the concept of separating code from templates (the html p

Re: show instant data on webpage

2016-01-27 Thread Peter Heitzer
mustang wrote: >> You even could use python for the webserver. Read the docs for the module >> "SimpleHTTPServer". >now I'm using apache. Is it possible to do the same with python+apache >or it's better to use SimpleHTTPServer? mod_python exists for apache. If your only goal is just a simple web

Re: show instant data on webpage

2016-01-27 Thread Joel Goldstick
On Wed, Jan 27, 2016 at 10:36 AM, mustang wrote: > > 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). >> > > Because I don't know how to do it in python.

Re: show instant data on webpage

2016-01-27 Thread mustang
You even could use python for the webserver. Read the docs for the module "SimpleHTTPServer". now I'm using apache. Is it possible to do the same with python+apache or it's better to use SimpleHTTPServer? -- https://mail.python.org/mailman/listinfo/python-list

Re: show instant data on webpage

2016-01-27 Thread mustang
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). Because I don't know how to do it in python. So I've used php. But I prefer working in python. Best. -

Re: show instant data on webpage

2016-01-27 Thread Peter Heitzer
mustang 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 re

Re: show instant data on webpage

2016-01-27 Thread David Palao
2016-01-26 18:26 GMT+01:00 mustang : > >> 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 refr

Re: show instant data on webpage

2016-01-26 Thread mustang
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

Re: show instant data on webpage

2016-01-26 Thread David Palao
2016-01-26 17:10 GMT+01:00 mustang : > I've built a sensor to measure some values. > I would like to show it on a web page with python. > > > This is an extract of the code: > > file = open("myData.dat", "w") > > while True: > temp = sensor.readTempC() > riga = "%f\n" % temp >

show instant data on webpage

2016-01-26 Thread mustang
I've built a sensor to measure some values. I would like to show it on a web page with python. This is an extract of the code: file = open("myData.dat", "w") while True: temp = sensor.readTempC() riga = "%f\n" % temp file.write(riga) time.sleep(1.0) file.close