Am Montag, den 13.12.2010, 09:43 -0900 schrieb Joshua J. Kugler:
> There is also OW Python where you can access your sensors directly with
> Python, instead of reading off the file system.
>
> import ow
> ow.init(<val>) # where val is 'u' for USB, or the server address
> sensor = ow.Sensor('/path/to/sensor')
> temp = sensor.temperature
be aware that when it comes to reading binary data (e.g. memory areas)
owpython cuts your strings off at the first \x00 character ... pyowfs is
there for you for this case ;) - it is a slim wrapper around libowcapi
done using ctypes instead of swig as ctypes gives you far more
flexibility ... and i dont like swig after all ;)
have fun,
m.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers