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


Groups > comp.lang.python > #107181 > unrolled thread

read datas from sensors and plotting

Started byranran <ranran@NOSPAM.it>
First post2016-04-17 18:46 +0200
Last post2016-04-17 17:35 +0000
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  read datas from sensors and plotting ranran <ranran@NOSPAM.it> - 2016-04-17 18:46 +0200
    Re: read datas from sensors and plotting Larry Martell <larry.martell@gmail.com> - 2016-04-17 13:00 -0400
      Re: read datas from sensors and plotting ranran <ranran@NOSPAM.it> - 2016-04-17 22:21 +0200
    Re: read datas from sensors and plotting Joel Goldstick <joel.goldstick@gmail.com> - 2016-04-17 13:04 -0400
    RE: read datas from sensors and plotting Albert-Jan Roskam <sjeik_appie@hotmail.com> - 2016-04-17 17:35 +0000

#107181 — read datas from sensors and plotting

Fromranran <ranran@NOSPAM.it>
Date2016-04-17 18:46 +0200
Subjectread datas from sensors and plotting
Message-ID<nf0el0$181b$1@gioia.aioe.org>
I'm reading in python some values from some sensors and I write them in 
a csv file.
My problem now is to use this datas to plot a realtime graph for a 
example in a web server.
Is it possible to read in the same time the values, writing in the file 
and plot them in a webpage with python?

[toc] | [next] | [standalone]


#107183

FromLarry Martell <larry.martell@gmail.com>
Date2016-04-17 13:00 -0400
Message-ID<mailman.106.1460912409.6324.python-list@python.org>
In reply to#107181
On Sunday, April 17, 2016, ranran <ranran@nospam.it> wrote:

> I'm reading in python some values from some sensors and I write them in a
> csv file.
> My problem now is to use this datas to plot a realtime graph for a example
> in a web server.
> Is it possible to read in the same time the values, writing in the file
> and plot them in a webpage with python?
>

Check out plotly

https://plot.ly/python/

[toc] | [prev] | [next] | [standalone]


#107195

Fromranran <ranran@NOSPAM.it>
Date2016-04-17 22:21 +0200
Message-ID<nf0r8g$1ugf$1@gioia.aioe.org>
In reply to#107183
> Check out plotly
>
> https://plot.ly/python/
>
nice!
but it's no completely free...for example I should plot 4 chart of 
temperatures in the same time. I think I can plot only 1 chart.
Anyway I need to be connected to internet instead sometimes I want to 
show it only in my webserver.

[toc] | [prev] | [next] | [standalone]


#107184

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2016-04-17 13:04 -0400
Message-ID<mailman.107.1460912691.6324.python-list@python.org>
In reply to#107181
On Sun, Apr 17, 2016 at 1:00 PM, Larry Martell <larry.martell@gmail.com> wrote:
> On Sunday, April 17, 2016, ranran <ranran@nospam.it> wrote:
>
>> I'm reading in python some values from some sensors and I write them in a
>> csv file.
>> My problem now is to use this datas to plot a realtime graph for a example
>> in a web server.
>> Is it possible to read in the same time the values, writing in the file
>> and plot them in a webpage with python?
>>
>
> Check out plotly
>
> https://plot.ly/python/
> --
> https://mail.python.org/mailman/listinfo/python-list


Matplotlib and pygals are two others.

-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays

[toc] | [prev] | [next] | [standalone]


#107189

FromAlbert-Jan Roskam <sjeik_appie@hotmail.com>
Date2016-04-17 17:35 +0000
Message-ID<mailman.108.1460914614.6324.python-list@python.org>
In reply to#107181

> From: ranran@NOSPAM.it
> Subject: read datas from sensors and plotting
> Date: Sun, 17 Apr 2016 18:46:25 +0200
> To: python-list@python.org
> 
> I'm reading in python some values from some sensors and I write them in 
> a csv file.
> My problem now is to use this datas to plot a realtime graph for a 
> example in a web server.
> Is it possible to read in the same time the values, writing in the file 
> and plot them in a webpage with python?


tail -F data.log | python myprogram.py
http://stackoverflow.com/questions/1712276/tail-read-a-growing-dynamic-file-and-extract-two-columns-and-then-print-a-graphhttp://code.activestate.com/recipes/577968-log-watcher-tail-f-log/ 		 	   		  

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web