Hello Paul, 
thank you for the answert. But my system is already working with owserver as 
“master” connected to the 
USB adapter and owfs, owhttpd is connected to the owserver.
I have made the replay to Loren Amelang, who was asking for the 
function/configuration.

Best regards,
Roland 

From: Paul Alfille 
Sent: Thursday, October 30, 2014 1:13 AM
To: OWFS (One-wire file system) discussion and help 
Subject: Re: [Owfs-developers] Config owfs to use server?

Hi Roland, 

Maybe I can help you understand the process.

Say you want to run owfs, owserver and owhttpd with a USB device and Fahrenheit 
temperature scale.

Purely from the command line you would run:

owserver -F -u -p 4304 # reads from USB, serves port 4304
owfs -F -m /var/temp/1wire -s 4304 # reads from owserver, mounts /var/temp/1wire
owhttpd -F -s 4304 -p 4444 # reads from owserver, web serves localhost:4444
# notice that only owserver talks directly to the hardware bus master, 
everything else talks to owserver

You could write a configuration file (/etc/owfs.conf) like this:
-F
!server: -s 4304
server: -u
server: -p 4304
owfs: -m /var/temp/1wire
owfs: --allow-other
owhttpd: -p 4444

The advantage is that all the programs can simply be run with
owserver -c /etc/owfs.conf
owfs -c /etc/owfs.conf
owhttpd -c /etc/owfs.conf

Note that many options apply to all ( like -F)
Some apply to owserver and some to the all others
Some are program-specific
Also the name /etc/owfs.conf is conventional, but completely arbitrary. None of 
the programs look for any file unless explicitly specified. No "magic" files.

Often the distribution packages set up a skeleton configuration file, and run 
all the programs. They usually are pretty well documented.

Paul

On Wed, Oct 29, 2014 at 3:54 PM, Roland Franke <fl...@franke-prem.de> wrote:

  Hallo again,
  can you show here your complete config (/etc/owfs.conf)?
  May it be, that you have not set by the server the specific port and IP
  address?

  Like by me is here:
  server: usb                                                 -> Where is the
  hardware connected (By you w1)
  server: port = 127.0.0.1:4304                    -> What IP address and port
  should the server use for connecting from other modules
  server: pid_file = /var/run/owsever.pid    -> you can specific also the
  place where the .pid file will be stored and must not been seperately

  been set in the owfs.conf

  Best regards,
  Roland

  -----Ursprüngliche Nachricht-----
  From: Loren Amelang
  Sent: Wednesday, October 29, 2014 7:59 PM
  To: owfs-developers@lists.sourceforge.net
  Subject: [Owfs-developers] Config owfs to use server?


  I'm still trying to understand whether I have a possible conflict with both
  owfs and server trying to read my hardware. Something was updating the
  filesystem while server and httpd were not running...  My config is part of
  the default Ubuntu distribution for 14.04, with just the "w1" added to point
  to my hardware.

  I notice in Roland's config he has set
  server: usb
  like I have set
  server: w1
  but he also sets
  owfs: server = 127.0.0.1:4304
  and I have no equivalent line.

  I don't even see an "owfs" process running:
  ---
  root      1151  0.0  0.1  20036   836 ?        Ssl  Oct19   1:56
  /usr/bin/owftpd -c /etc/owfs.conf --pid-file /var/run/owfs/owftpd.pid
  root     13064  0.0  0.1  11828  1000 ?        Ss   Oct26   0:00
  /usr/bin/owhttpd -c /etc/owfs.conf --pid-file /var/run/owfs/owhttpd.pid
  root     13605  0.0  0.2  53804  1168 ?        Ssl  Oct26   0:00
  /usr/bin/owserver -c /etc/owfs.conf --pid-file /var/run/owfs/owserver.pid
  ---
  It seems "owfs" can be used without the ftp/http/server modules, so it must
  exist on its own somehow. But where?

  Should I add that "owfs: server = 127.0.0.1:4304" line to my config? Or does
  ! server: server = localhost:4304
  do the same thing, since it supposedly applies to everything except server?

  What about "owfs: pid_file = /var/run/owfs.pid"? I don't have an owfs.pid
  file on my system...  Just the ftpd/httpd/server pid files.

  I see many configs with lines like "owfs: mountpoint = /mnt/1wire". I don't
  understand why one would mount at /mnt/1wire when everything is already
  visible at /sys/devices/.

  Maybe the default Ubuntu install has done some of this for me, in some file
  I haven't found yet? I tend to assume that whoever made the official Ubuntu
  distribution knows much more than I do. But I do get occasional bad reads
  and bogus temperature values, and as I said, the filesystem was getting
  updated even while server was stopped.

  Loren

  | Loren Amelang | lo...@pacific.net |


  On Wednesday, October 29, 2014 at 9:27 AM,
  owfs-developers-requ...@lists.sourceforge.net wrote:


  > From: "Roland Franke" <fl...@franke-prem.de>
  > Subject: Re: [Owfs-developers] Missing data
  > To: "Roland Franke" <fl...@franke-prem.de>,     "OWFS \(One-wire file
  > system\) discussion and help"   <owfs-developers@lists.sourceforge.net>
  > Message-ID: <32224CCF5ADA40D38212CB7E0D3E7E8E@rolandAMD64>
  > Content-Type: text/plain; charset="utf-8"
  >
  > Here is my configuration (As i now will be at home )
  > owfs.conf is:
  > error_print = 3
  > error_level = 0
  > format = f.i
  > cache_size = 0
  > Celsius
  > foreground
  > allow_root
  > owfs: server = 127.0.0.1:4304
  > owfs: pid_file = /var/run/owfs.pid
  > owfs: mountpoint = /mnt/1wire
  > server: usb
  > server: port = 127.0.0.1:4304
  > server: pid_file = /var/run/owsever.pid
  > http: server = 127.0.0.1:4304
  > http: port = 8080
  > http: pid_file = /var/run/owhttpd.pid
  >




  ------------------------------------------------------------------------------
  _______________________________________________
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers


  ------------------------------------------------------------------------------
  _______________________________________________
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers




--------------------------------------------------------------------------------
------------------------------------------------------------------------------



--------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to