I am trying for a customer to work out how to get OW-Python to work with a
BAE0910 chip from Brain4Home.
I've never used python before but have some example code that I can use to read
from OWFS, the problem that I'm encountering is that I can't work out the
correct syntax to read data from a subfolder as most of the stuff on the
BAE0910 is in /FC.whatever/910/ rather than just in /FC.whatever/.
For example the following code will look on the network and report the firmware
versions of any BAE chips it finds:
#! /usr/bin/env python
import sys
import ow
ow.init( 'localhost:4304' )
root = ow.Sensor( '/' )
for sensor in root.find( type = 'BAE' ):
print sensor._path, sensor.version
However I can't work out what to put in place of "sensor.version" if instead of
/version I wish to read (for example) /910/count.
Can anyone help?
TIA,
Paul
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers