Hi guys,
I am new to the Raspberry Pi and Linux and I have been trying to get Weewx and OWFS to get some data from some DS18B20 sensors. I have one connected GPIO4 to try out the w1 kernel driver and a couple more connected to a DS2482S-100 i2c to 1-wire bridge to play with i2c.
The sensors on GPIO4 is detected and I can read temperature form the sensor with this:
cat /sys/bus/w1/devices/10-*/w1_slave
28 00 4b 46 ff ff 0a 10 39 : crc=39 YES
28 00 4b 46 ff ff 0a 10 39 t=20125
The sensors on the i2c I'm not so sure about but the DS2482 is detected on the i2c bus at the correct address.
When I try to the test it with the command from the OWFS driver readme file, I get this error:
~ $ sudo PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/owfs.py --sensors
Traceback (most recent call last):
File "/home/weewx/bin/user/owfs.py", line 261, in <module>
main()
File "/home/weewx/bin/user/owfs.py", line 229, in main
ow.init(iface)
File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 224, in init
raise exNoController
ow.exNoController
I think it has something to do with info in the owfs.conf file as I get this in the syslog:
Apr 20 23:17:41 gazpi1 weewx[4099]: owfs: driver version is 0.4
Apr 20 23:17:41 gazpi1 weewx[4099]: owfs: interface is i2c
Apr 20 23:17:41 gazpi1 weewx[4099]: owfs: polling interval is 10
Apr 20 23:17:41 gazpi1 weewx[4099]: owfs: sensor map is {'inTemp': '/uncached/10-0008016cb3f8/temperature', 'outTemp': '/uncached/28-000004722924/temperature', 'extraTemp1': '/uncached/28-000004723323/temperature'}
Apr 20 23:17:41 gazpi1 weewx[4099]: owfs: sensor type map is {}
Apr 20 23:17:46 gazpi1 weewx[4099]: wxengine: Unable to open WX station hardware:
In the owfs.conf I have set the "station_type to OWFS but can't workout what I need to put in the "interface =" line for the 1w kernel module and i2c, all the examples around here are for the USB 1-wire interface.
Gary