Hi Foster,
Don't apologize about being new to linux. There's a bit of a learning curve
to the command line, and owfs is designed to be easy to use from the
command line.
1. No need to ./configure or recompile to use the configuration file
A. The ./configure when you build the program is entirely different than
using a config file in owfs
B. when you start an OWFS program, like owhttpd for instance
/opt/owfs/bin/owhttpd -F -d /dev/ttyUSB0 -p 4444
you are starting the web server with address "localhost:4444" to
talk to a DS9097U serial adapter on serial port /dev/ttyUSB0 and use the
Fahrenheit temperature scale for display. The program is located (in this
example) in /opt/owfs/bin directory -- where compiling from source will put
it
You could start the program like this:
/opt/owfs/bin/owhttpd -c //home/foster/owconfig.txt
And make a file /home/foster/owconfig.txt that has
-F
HTTP: -p 4444
-d /dev/ttyUSB0
C. Eventually, if you want to run owserver as well as owhttps and owfs
you can expand your config file to:
-F
HTTP: -p 4444
SERVER: -d /dev/ttyUSB0
SERVER -p 4304
!SERVER: -s 4304
FS: -m /mnt/1wire
and use the same config file for all of them
2. Each of the owfs programs does something a little different:
owfs creates the virtual filesystem
owserver allows other programs to connect, including owread and owdir
owhttpd creates the web server
Since only one program should be talking to the physical 1-wire bus
master, you should use owserver and have the others talk to it.
Actually, there really is no downside to always having owserver being the
intermediary - the overhead is negligible.
On Mon, May 13, 2013 at 4:06 AM, foster <[email protected]>wrote:
> Thx.for answer. I'm new to linux, so I'm not sure that I understand your
> answer.
> If I want to have config file for owttpd, I have to compile package again
> via ./configure? Or I can add config file when running owhttpd. I tried to
> run owhttpd via /opt/owfs/bin/owfs but nothing happens.
>
> And also what is problem with my second issue:
> "I've also found that basic commands doesn't work - owread, owwrite, owdir.
> But in /mnt/1wire i see all DS sensors and can read them via cat."
>
> Thx. very much for answer.
>
>
>
> --
> View this message in context:
> http://owfs-developers.1086194.n5.nabble.com/owhttpd-in-2-9p0-tp9556p9563.html
> Sent from the OWFS Developers mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers