One Wire File System is a nice package that helps you use 1wire in a simple way.
There is a very good description for how to install OWFS on Raspberry Pi on temperatur.nu. It is in Swedish but should be easy to follow for most of you.
Note that in newer Raspian Wheezy SW there is a conflict between owfs and some sound drivers. To fix this add "blacklist snd_soc_tas5713" to the file /etc/modprobe.d/raspi-blacklist.conf and reboot. Thanks to the people at m.nu forum.
This blog serves as a dumping ground for my own interests. On it you will find anything which I want to keep track of; links, articles, tips and tricks. Mostly it focuses on Android development, Linux home server stuff, Windows tips, iPad tips.
Showing posts with label 1wire. Show all posts
Showing posts with label 1wire. Show all posts
2013-08-04
2012-11-24
Install OWFS on Fedora
I want to log the outdoor temperature in a database. When I heard about 1wire I thought this would be interesting to test.
On temperatur.nu I found the guide OWFS Howto very useful. There is one thing to update for me:
On temperatur.nu I found the guide OWFS Howto very useful. There is one thing to update for me:
- I had to start it with the following line:
/opt/owfs/bin/owfs --allow_other --passive=/dev/ttyS0 /mnt/1wire
#!/bin/bash
#
# OWFS
#
# Author: Niklas Lanzen
# chkconfig: 1000 50 50
# description: 1 wire
#
RETVAL=0;
prog="OWFS (One Wire File System)"
exec="/opt/owfs/bin/owfs --allow_other --passive=/dev/ttyS0 /mnt/1wire"
#lockfile=""
# Source function library.
. /etc/init.d/functions
start() {
echo -n $"Starting $prog: "
$exec
RETVAL=$?
[ $RETVAL -eq 0 ] && success || failure
echo
}
stop() {
[ $UID -eq 0 ] || exit 4
echo -n $"Stopping $prog: "
success
echo
}
restart() {
stop
sleep 1
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart}"
RETVAL=2
[ "$1" = 'usage' ] && RETVAL=0
esac
Subscribe to:
Posts (Atom)