Am 28.04.2016 um 03:19 schrieb Juliean Galak:
> Thanks for the quick reply!  I installed the recommended package and
> everything seemed to install correctly and the owserver started ok.
> 
> I'd like to be able to access the owfs in two ways - through the file
> system,
>
Ah, don't do this. Really. The owfs daemon has concurrency issues,
making it impossible to read out any multi-char values (read: almost
everything) reliably. It may just change file contents while you are
reading it, result is garbage.


> and through a web page.
>
You need the owhttpd to do this. Or you implement it your own.


> In the past versions of OWFS, that was
> enabled by default (it just didn't work - the web page existed, the mount
> point existed, it just didn't recognize the attached sensors).
> 
> My owfs.conf currently has the following lines:
> 
> ! server: server = localhost:4304
> server: w1
> 
Fine.


> mountpoint = /mnt/1wire
> allow_other
> 
That's required for the owfs daemon. Don't use it for anything but
demonstration purposes. Not even for testing.


> http: port = 2121
> ftp: port = 2120
>
That's unnecessary as these are the default ports.


> server: port = localhost:4304
> 
That means you want to bind owserver to localhost, instead of
INADDR_ANY. Accessing it from other ip addresses is not possible then.
(no problem if owserver and owhttpd are on the same host.)


> 
> After edting owfs.conf I've restarted the server (using sudo service
> owserver restart) and even rebooted, but I don't get anything in /mnt/1wire
>
Fuse problems most likely. Check with

$ owdir /uncached

That asks owserver about the onewire chips connected and owserver asks
kernel's w1 subsystem.


> and when I try to access http://192.168.1.121:2121  (the IP of the Pi) I
> get a "could not connect" message from the browser.
> 
Because owhttpd not being started, most likely.


Kind regards

        Jan

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to