Re: [Owfs-developers] owpython

2015-05-20 Thread Colin Reese
I do pass an instance around. I don't remember what exactly the application was. I can revisit it, since it's on the emails. C On Wed, May 20, 2015 at 4:03 PM, Stefano Miccoli wrote: > Thanks Johan for your appreciation: but most of the merit does not go to > the client (pyownet) but to the ser

Re: [Owfs-developers] owpython

2015-05-20 Thread Stefano Miccoli
My suggestion is always start with owserver and owshell alone (no owhttp, owfs, and the friends). Once you can read your sensors via “owdir” and “owread” install the other daemon processes. By doing so you can single out (and solve) owserver configuration problems more easily. Stefano. > On 2

Re: [Owfs-developers] owpython

2015-05-20 Thread Stefano Miccoli
Thanks Johan for your appreciation: but most of the merit does not go to the client (pyownet) but to the server (owserver). I’m really amazed how rock-solid owserver can be. Colin: the key point for using pyownet efficiently is to strictly have a single proxy instance for the whole program. Cre

Re: [Owfs-developers] owpython

2015-05-20 Thread DavidJ61
Thanks for these helper functions. I'll look into these and have a play around and let you know what happens. -- View this message in context: http://owfs-developers.1086194.n5.nabble.com/owpython-tp5410p11363.html Sent from the OWFS Developers mailing list archive at Nabble.com. ---

Re: [Owfs-developers] owpython

2015-05-20 Thread DavidJ61
I was just using ls or ls -la. I also tried this with sudo and also as root. There was nothing there, and then hours later, they just "magically" appeared, found by the same method as before - ls. -- View this message in context: http://owfs-developers.1086194.n5.nabble.com/owpython-tp5410p1136

Re: [Owfs-developers] owpython

2015-05-20 Thread Colin Law
On 20 May 2015 at 18:43, DavidJ61 wrote: > I really don't believe it. The device directories has suddenly appeared in > /mnt/1wire hours after I finished trying to get it working. As for the > owpython, I've given up on that and opted for just reading the values > directly from the directory struc

Re: [Owfs-developers] owpython

2015-05-20 Thread Colin Reese
If you want some helper functions for that, there are many here: https://github.com/iinnovations/iicontrollibs/blob/master/cupid/owfslib.py Try the owfsgetbusdevices for a start. It will return an array of objects with all properties. C On Wed, May 20, 2015 at 10:43 AM, DavidJ61 wrote: > I r

Re: [Owfs-developers] owpython

2015-05-20 Thread DavidJ61
I really don't believe it. The device directories has suddenly appeared in /mnt/1wire hours after I finished trying to get it working. As for the owpython, I've given up on that and opted for just reading the values directly from the directory structure as this will work just fine for my purposes a

Re: [Owfs-developers] owpython

2015-05-20 Thread DavidJ61
Ah, and this brings me to my other problem. Although I can access the the onewire net via owhttpd, the devices directory structure does not show. The directory being empty. I have changed the permissions on the directory, changed locations of the directory but nothing works. I have tried this on tw

Re: [Owfs-developers] owpython

2015-05-20 Thread Colin Reese
Interesting data point, and makes me want to take another look. I have both implementations written up and ended up using os.walk on owfs dir as I found it fastest, despite having to write more code around it (obviously). Colin On 5/20/2015 12:26 AM, Johan Ström wrote: Hi, just want to giv

Re: [Owfs-developers] owpython

2015-05-20 Thread Johan Ström
Hi, just want to give +1 for pyownet. I'm using it for my network and it works 100% flawless, scanning the alarm dir ~10 times per second and the full bus every 30 second, reading ~25 temperature sensors every 30 seconds. This have been running for about a year now, using my own master software w

Re: [Owfs-developers] owpython

2015-05-20 Thread Stefano Miccoli
Let me answer to the python part of your question. To access 1-wire sensors from a python script you have two options: A) install the owserver daemon and access 1-wire data via the owserver protocol (aka ownet), see http://owfs.org/index.php?page=owserver-protocol

Re: [Owfs-developers] owpython

2015-05-19 Thread DavidJ61
Further to my above message, I am having a bit of a problem accessing the pressure attribute for the EDS environment sensor EDS0066. I have trawled google and am not able to find any documentation on how I can do this. In fact, as a whole, I have found this to be the case with owpython and it seem

[Owfs-developers] owpython Fahrenheit

2014-02-18 Thread Colin Reese
Hello all, I'm using the -F option with owserver, owfs, and owhttpd and getting temperatures in Fahrenheit on everything except in owpython. All of my newer, standard builds work fine, but when I upgraded an older unit with the new libraries, it reverted to Celsius. In the upgrade, I switched from

Re: [Owfs-developers] OWPython

2012-10-18 Thread Marcus Priesch
Hello Attila, you could also try http://priesch.co.at/pyowfs with it it should be possible to get any entry in the owfs tree ... interesting though that the 8bit value gets calculated differently ... i also fiddled around with the ds2450 some day and found out that anything below 8bit is jus

Re: [Owfs-developers] OWPython

2012-10-17 Thread Attila
Thank you Paul, yes, I thought this, but seems the 8bit value seems calculated otherwise (inside the chip) then the 16bit, and its more stable and precise then converting the 16bit to 8bit... Readout speed is not important, its very fast to read out. (about 0.05 sec each) On Wed, Oct 17, 2012 a

Re: [Owfs-developers] OWPython

2012-10-17 Thread Paul Alfille
I don't know about the python code, but you could just truncate the data. 5V / 256 = ~.02 so drop everything after the first two decimal points. That being said, the 8nit resolution should be faster, which may be important to you. Paul Alfille On Wed, Oct 17, 2012 at 5:02 AM, Attila wrote: > H

[Owfs-developers] OWPython

2012-10-17 Thread Attila
Hi All, I'm new with OWFS and Python as well, and working on a project to read some temperature sensors. I found OWPython module very handy, and easy to use - although now I hit a problem, and Google did not provide an answer for me... I use a DS2450 AD converter to read an RTD sensor using the a

Re: [Owfs-developers] owpython

2011-10-18 Thread Paul Alfille
Mick is correct. owpython links in the main library, so is included with the full distribution. On Mon, Oct 17, 2011 at 3:00 PM, Mick Sulley wrote: > ** > I believe that if you install owfs you get owpython (and all the other > stuff) as part of it, you choose what you want at build time. > > --

Re: [Owfs-developers] owpython

2011-10-17 Thread Mick Sulley
Hi Silvano Can't help you with a link, sorry. A while back I installed a 1-wire system to monitor temperatures and control a solar heating system, all written in Python, still going strong. I believe that if you install owfs you get owpython (and all the other stuff) as part of it, you choo

[Owfs-developers] owpython

2011-10-17 Thread Silvano Gai
owpython is mentioned in several places on the website, but I was not able to find a link. http://owfs.org/index.php?page=software http://owfs.org/index.php?page=man-pages-programs Can someone post a link? Thank You -- Silvano

Re: [Owfs-developers] owpython failing with >= 2.7p30

2010-03-30 Thread Jacob Joseph
On Tue, 30 Mar 2010 11:26:19 -0400 Paul Alfille wrote: > > The odd behavior with directory listings hasn't changed. > > Which type of bus master do you use? USB? It's a DS9097U. ~Jacob signature.asc Description: PGP signature ---

Re: [Owfs-developers] owpython failing with >= 2.7p30

2010-03-30 Thread Paul Alfille
On Tue, Mar 30, 2010 at 11:14 AM, Jacob Joseph wrote: > 2.7p33 does fix my access from Python.  Thanks for the speedy fix. Great! > The odd behavior with directory listings hasn't changed. Which type of bus master do you use? USB? ---

Re: [Owfs-developers] owpython failing with >= 2.7p30

2010-03-30 Thread Jacob Joseph
2.7p33 does fix my access from Python. Thanks for the speedy fix. The odd behavior with directory listings hasn't changed. Thanks again. ~Jacob On Thu, 25 Mar 2010 06:32:17 -0400 Paul Alfille wrote: > Ok, I'll figure this out. The problem may be in some refactoring of > ow.i (the swig templ

Re: [Owfs-developers] owpython failing with >= 2.7p30

2010-03-25 Thread Paul Alfille
Ok, I'll figure this out. The problem may be in some refactoring of ow.i (the swig template) that occurred in that time frame. Thanks for the report and your work pinpointing the problem. Paul Alfille On Wed, Mar 24, 2010 at 4:38 PM, Jacob Joseph wrote: > Hi. > > I'm unsure of whether this was d

[Owfs-developers] owpython failing with >= 2.7p30

2010-03-24 Thread Jacob Joseph
Hi. I'm unsure of whether this was discussed in the recent mentions of pyowfs, which I'm not currently using. If it has been, I don't see where. I've recently tried to upgrade from owfs 2.7_p21 to something more recent, especially to test my BAE device. I have a few python programs that use the

Re: [Owfs-developers] owpython: ow.exUnknownSensor:'/system/adapter/name.0'

2007-03-05 Thread Stephen Houser
Chris cjsoftuk.dyndns.org> writes: > > > I'm trying to use owpython, but when I run the tree.py sample, I get: > > ow.exUnknownSensor: '/system/adapter/name.0' > > and an exception traceback. > > What is happening? > > Traceback (most recent call last): > File "tree.py", line 47, in ? >

[Owfs-developers] owpython: ow.exUnknownSensor: '/system/adapter/name.0'

2007-03-05 Thread Stephen Houser
>I'm trying to use owpython, but when I run the tree.py sample, I get: >ow.exUnknownSensor: '/system/adapter/name.0' Chris, I found the same problem when trying to connect to an owserver by specifying hostname:port. I have done two things to fix the problem. 1. Don't use the "ow" package, but

[Owfs-developers] owpython: ow.exUnknownSensor: '/system/adapter/name.0'

2007-02-19 Thread Chris
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to use owpython, but when I run the tree.py sample, I get: ow.exUnknownSensor: '/system/adapter/name.0' and an exception traceback. What is happening? Traceback (most recent call last): File "tree.py", line 47, in ? tree( ow.Sensor

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Brad Clements
On 5 Dec 2006 at 14:30, Paul Alfille wrote: > A volunteer! To help with specification and testing. heh > > I propose we start with owrest and then decide if it's function should be > folded into owserver. but I am confused. REST is just a symantic for how to use HTTP verbs. So, why have a dis

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Paul Alfille
A volunteer! To help with specification and testing. I propose we start with owrest and then decide if it's function should be folded into owserver. So: 1. What is the format of the returned object? 2. What is a collection list (the actual formatting would help). 3. Do you want XML or JSON? If X

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Brad Clements
On 5 Dec 2006 at 13:19, Paul Alfille wrote: > This is very close to what owhttpd does now. Are you talking about changing owhttpd, or owserver? I'd be pleased with a true REST owhttpd that returned XML or JSON data, and properly treated GET on adapters as returning a collection list, etc. --

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Paul Alfille
This is very close to what owhttpd does now. After reading the background, I need some help with implementation: 1. I presume the "nouns" are the URL including the OWFS path 2. "GET" would be the default action -- either a directory list or an object value (like temperature) (Again this is what

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Darryl
> > On a related topic, I was thinking about using URL's to access sensors > and fields. Something that would follow a REST > (http://en.wikipedia.org/wiki/Representational_State_Transfer) style > interface. Like http://host:port/10.B7B64D000800/temperature to read a > temperature. Using this style

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Peter Kropf
On 12/5/06, Paul Alfille <[EMAIL PROTECTED]> wrote: > I like it. > > Should it completely replace owpython? The disadvantage is that it requires > owserver to be running. We could support both (with a different name). I don't think it should replace owpython. I like the idea of providing both so t

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Paul Alfille
I like it. Should it completely replace owpython? The disadvantage is that it requires owserver to be running. We could support both (with a different name). One advantage of this approach is that you can have different owpython objects, pointing to different owservers. Object initialization sh

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Peter Kropf
On 12/5/06, chris <[EMAIL PROTECTED]> wrote: > On Tuesday 05 December 2006 06:19, Peter Kropf wrote: > > I was poking around the owserver protocol from Python > > is that with socket or are you using higher level modules? > can you show a demo script? And here's a version that actually works: You

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Peter Kropf
On 12/5/06, chris <[EMAIL PROTECTED]> wrote: > On Tuesday 05 December 2006 06:19, Peter Kropf wrote: > > I was poking around the owserver protocol from Python > > is that with socket or are you using higher level modules? > can you show a demo script? Here's the code I'm playing with. Note that i

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread Paul Alfille
Directory listing is a little different. It sends multiple messages back. One for each directory entry plus one for a null stop. (and a potential nop one in case the directory is taking too long). The good part is that this lowers latency -- you can start processing directory entries while more a

Re: [Owfs-developers] owpython ... on Windows??

2006-12-05 Thread chris
On Tuesday 05 December 2006 06:19, Peter Kropf wrote: > I was poking around the owserver protocol from Python is that with socket or are you using higher level modules? can you show a demo script? - Take Surveys. Earn Cash

Re: [Owfs-developers] owpython ... on Windows??

2006-12-04 Thread Peter Kropf
I was poking around the owserver protocol from Python to see if a simple standalone python module can be created that doesn't have any dependencies on the core ow libraries. I ran into a bit of a problem with the protocol that's being used. Here's a hex dump of the data that's returned when I reque

Re: [Owfs-developers] owpython ... on Windows??

2006-12-04 Thread Paul Alfille
Ok, communication is via tcp. 1. open port 2. send a message 3. wait for response (single response except for directories). 4. close port Message has format: 6 words (24 bytes) fixed header variable length "payload" Words must be sent in network order (bigendian I believe) Header is: Version (u

Re: [Owfs-developers] owpython ... on Windows??

2006-12-04 Thread chris
On Monday 04 December 2006 12:02, Paul Alfille wrote: > On 12/4/06, chris <[EMAIL PROTECTED]> wrote: > > I understand that owfs is unlikely to run on windows but is it possible > > to tun > > Au-contraire! (Though the windows port is not yet of the same quality. > There have been reports of memory

Re: [Owfs-developers] owpython ... on Windows??

2006-12-04 Thread Paul Alfille
On 12/4/06, chris <[EMAIL PROTECTED]> wrote: I understand that owfs is unlikely to run on windows but is it possible to tun Au-contraire! (Though the windows port is not yet of the same quality. There have been reports of memory leaks that need to be investigated). owpython on a windows box

[Owfs-developers] owpython ... on Windows??

2006-12-03 Thread chris
I understand that owfs is unlikely to run on windows but is it possible to tun owpython on a windows box connected to owserver without resorting to excellent but rather cumbersome methods like cygwin? I am keen to be able to monitor the one wire network in several places all of which are wind

Re: [Owfs-developers] owpython error

2006-01-19 Thread George Bobeck
Peter~ I was installing owfs on my gentoo laptop and I noticed the following message during the make install process: Libraries have been installed in: /opt/owfs/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and s

Re: [Owfs-developers] owpython error

2006-01-16 Thread Peter Kropf
Been digging a bit myself. It seems that the compile / link line that's executed on gentoo is a bit different that that of my ubuntu system. On ubuntu, it looks as:gcc -pthread -shared build/temp.linux-i686-2.4/ow_wrap.o -L../../owlib/src/c/.libs -Wl,-R/opt/owfs/lib -low -lusb -o build/lib.linux- i

Re: [Owfs-developers] owpython error

2006-01-16 Thread George Bobeck
Sorry for the second post... I did a little googling on the '-R' flag for GCC Of interest is http://www.usc.edu/isd/doc/programming/c.html Which states: "Unix has a lot of shared libraries (pre-compiled code that programs can link into as if it were source code in the project). The standard pla

Re: [Owfs-developers] owpython error

2006-01-16 Thread George Bobeck
One possible temporary solution for this would be to add the following to /etc/bash/bashrc export LD_LIBRARY_PATH=/opt/owfs/lib I found that adding that made owpython work for my gentoo system. George Bobeck On 1/16/06, Peter Kropf <[EMAIL PROTECTED]> wrote: > Hi George! > > I finally got a ge

Re: [Owfs-developers] owpython error

2006-01-16 Thread Peter Kropf
Hi George!I finally got a gentoo system built and ran into the same problem as you. I think it's because of an error that happened during the build step for the Python module. building '_OW' extensioncreating build/temp.linux- i686-2.3i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fP

Re: [Owfs-developers] owpython error

2006-01-15 Thread Peter Kropf
Hi George -I've encountered this problem when the core owfs library wasn't built / installed. Can you look at /opt/owfs/lib and let me know what's there?I've also done a fresh checkout of OWFS, built it and loaded the ow python module without any problems. Here' are the steps that I followed:     c

[Owfs-developers] owpython error

2006-01-11 Thread George Bobeck
I installed the cvs version of owfs and any time I try to either run the python examples (i.e. temperature.py) or import ow I recieve the following error: Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/site-packages/ow/__init__.py", line 31, in ? import _