Am 05.12.2013 21:08, schrieb Top-Dog:
> Thanks for the explanations. I'm still a bit confused about how I'm meant to
> use the python api though. If I don't mount the file system with 'sudo
> /opt/owfs/bin/owfs --allow_other -u /root/EEPROM......./' then when I go
> straight to python and do the usual set up:
> import ow
> ow.init('u')
>
This is a great misunderstanding. The base API is owlib. owlib accesses
the serial portm, the i2c port or the USB (via libusb) to control the
onewire host adapter

owfs, owserver and some of the language bindings (including python) use
this API. In addition, there's the OWnet API, which can only use socket
connections to a running owserver. E.g. the OWnet perl binding uses
this. None of the language bindings rely on the mounted ow filesystem.


If you plan to use owpython only, you don't need the owfs or owserver
nor anything fuse. Just import ow, ow.init('u') and there you go.


Kind regards

        Jan

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to