Hi Paul,

Thanks for the info

I hit an error running temperature.py what I see is - 

m...@mick-desktop:~/Documents/Controls/owfs_examples
$ ./temperature.py /dev/ttyD1
Exception RuntimeError: 'maximum recursion depth exceeded while calling
a Python object' in <type 'exceptions.AttributeError'> ignored
/10.0D54A9010800      18.5625
m...@mick-desktop:~/Documents/Controls/owfs_examples$ 

So it does seem to be reading the sensor and returning 18.5625 deg C
which sounds right, but I am concerned by the exception which I don't
understand.

Thanks

Mick


On Tue, 2010-03-09 at 20:26 -0500, Paul Alfille wrote:
> There are 3 ways to use python and OWFS.
> 
> 
> 1. run the FUSE virtual filesystem (program owfs) and just do standard
> read and writes.
> 2. run owpython, which is a standalone program and embeds all of
> owlib. see
> 
>  http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/swig/python/examples/
> 3. run owserver and ownet.py to access it. See:
> 
>  http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/swig/python/examples/
> 
> 
> Paul Alfille
> 
> On Tue, Mar 9, 2010 at 7:24 PM, MickSulley <[email protected]> wrote:
>         
>         Hi,
>         
>         I now have owfs up and running.  I want to use Python to read
>         temperatures.
>         Can anyone point me to some sample Python code please.  I am
>         on Ubuntu
>         Karmic 64 bit, using a DS9097U interface and Python 2.6
>         
>         Thanks
>         
>         Mick




------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to