Re: [Owfs-developers] Diagnosing disappearing devices adapters

2013-12-05 Thread Jan Kandziora
Am 05.12.2013 01:30, schrieb Top-Dog: Hi Jan, I have these entries in the directory /etc/modprobe.d/: blacklist ds2490 blacklist ds2490r Good. What do you mean by 'one' owlib instance? Do you mean that every time I call ow.init('u') in python I create a new instance even if I exit

[Owfs-developers] owfs and python3

2013-12-05 Thread John Bass
Hello, Is there any instructions, how to, or other pointers, on how to compile owfs (python extensions) with python3? regards John -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a

Re: [Owfs-developers] Diagnosing disappearing devices adapters

2013-12-05 Thread 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') The file

Re: [Owfs-developers] Diagnosing disappearing devices adapters

2013-12-05 Thread Mick Sulley
Hi I use owfs with Python as well. I am not an expert on either, but in my code I start owfserver first then start owfs like this - owserver -p 4304 --nozero --i2c=/dev/i2c-0:ALL owfs -s localhost:4304 -a alias_file -m /var/1-wire/mnt --allow_other so owserver talks to the 1-wire network and

Re: [Owfs-developers] Diagnosing disappearing devices adapters

2013-12-05 Thread Colin Reese
I use python to parse the files as well, but would prefer the object-oriented approach I've seen in the owpython implementation. From what I can tell, using the python would require nothing but the source, and possibly an install using python-setuptools if one wanted to invoke it from anywhere. I

Re: [Owfs-developers] Diagnosing disappearing devices adapters

2013-12-05 Thread Top-Dog
Mick Sulley wrote owserver -p 4304 --nozero --i2c=/dev/i2c-0:ALL owfs -s localhost:4304 -a alias_file -m /var/1-wire/mnt --allow_other Hi Mick, what does the '-a alias_file' bit do? I get: DEFAULT: ow_alias.c:(34) [No such file or directory] Cannot process alias file alias_file when I try and

Re: [Owfs-developers] Diagnosing disappearing devices adapters

2013-12-05 Thread Mick Sulley
It defines aliases for your sensors. You create a file with entries like 10.A209A9010800=LoungeTemp 10.1C5BA9010800=KitchenTemp Then when you look at the directory structure it uses LoungeTemp instead of 10.A209A9010800, so it is easier to read and a bit more user friendly.

Re: [Owfs-developers] Diagnosing disappearing devices adapters

2013-12-05 Thread Top-Dog
Ok. Thanks that should help me out a bit. These are the results I get in python at the moment: b Sensor(/2D.C1E79A01) b.type 'DS2431' b.entryList() ['address', 'alias', 'crc8', 'family', 'id', 'locator', 'memory', 'pages', 'r_address', 'r_id', 'r_locator', 'type'] b.pages Traceback (most