bsimpson888
Posts: 8
Joined: Wed Dec 21, 2011 12:50 pm
Contact: Website

Python Onewire OWFS

Mon Sep 10, 2012 7:54 am

Hello All,
I hope someone can help me here :-) I'am the proud owner of a RPi and try to communicate with a DS1820 temperature sensor. I'am using the bitbanging method via the Kernel-module to talk to that sensor and everything is working fine through the file handles in /sys.

Now to my problem. Instead of using these files I would like to use the python-ow library for OWFS. But in order to do this I need to have a correct owfs.conf telling the owfs system what onewire buses we have. And thats exactly where I'am lost. I googled a lot allready, but I can't find a hint how to setup the config file to use the kernel-module on the RPi as a onewire bus. I saw examples with usb-adapters and even DS2408 I2C Bus Masters, but not with the bitbanging kernel module like it is used in the adafruit occidentalis image.

I would be very happy if someone could help me or give me a push into the right direction.

Thanks in advance
Marco

sonite
Posts: 14
Joined: Fri Aug 17, 2012 3:31 pm

Re: Python Onewire OWFS

Mon Sep 10, 2012 10:53 am

Very interesting question, I look forward to any replies. I my self tried and installed owfs and made everything online before realising that I could'nt find a way to do what you want to do.

Johan Vandewalle
Posts: 40
Joined: Wed Apr 16, 2014 2:45 pm

Re: Python Onewire OWFS

Wed Aug 13, 2014 10:04 am

The owfs.conf file is located in /etc/owfs.conf.

This is the code of the file in my RPi. I didn't changed anything in it.

Code: Select all

# Sample configuration file for the OWFS suite for Debian GNU/Linux.
#
#
# This is the main OWFS configuration file. You should read the
# owfs.conf(5) manual page in order to understand the options listed
# here.

######################## SOURCES ########################
#
# With this setup, any client (but owserver) uses owserver on the
# local machine...
! server: server = localhost:4304
#
# ...and owserver uses the real hardware, by default fake devices
# This part must be changed on real installation
#server: FAKE = DS18S20,DS2405
device=/dev/i2c-1
#
# USB device: DS9490
#server: usb = all
#
# Serial port: DS9097
#server: device = /dev/ttyS1
#
# owserver tcp address
#server: server = 192.168.10.1:3131
#
# random simulated device
#server: FAKE = DS18S20,DS2405
#
######################### OWFS ##########################
#
#mountpoint = /mnt/1wire
#allow_other
#
####################### OWHTTPD #########################

http: port = 2121

####################### OWFTPD ##########################

ftp: port = 2120

####################### OWSERVER ########################

server: port = localhost:4304

Johan Vandewalle
(Belgium)

Return to “Python”