I did look at the man page, but it doesn't seem like there was much in 
the way of actual functions.     To be fair, I haven't looked at the POD 
page yet, so perhaps there is more.   I did run the example, but it gave 
me a blob of info rather than more digestible chunks.  That's alright, 
but I'm unclear what the OWserver gets me beyond OW.pm (or even what 
OW.pm gets me beyond what OWFS has....) if I'm using everything on 
localhost....

One think I am trying to get (either directly or indirectly) is 
signals/callbacks/alerts when new devices are added.   It seems I can 
either poll the interface or watch the file systems (which is 
effectively the same thing, AFAIK).   Watching the file system seems 
like a pretty easy, standard way to do this, although I wish there was 
some way to set refresh rate lower than 1 second.

Which leads to a question.  Does the owserver 'push' new data to 
clients, or does it expect clients to poll?  It seems like it expects 
clients to poll.....

Chris.

Paul Alfille wrote:
> Should be fairly simple (but I'll test to make sure it still works).
>
> The source code is generated by SWIG under modules/swig/ow.i (C-code).
>
> There is a man page, and a POD page, and documentation on the Web site.
> And example code.
>
> In general:
> use OW ;
> OW::init("-u") ;
> print OW::get("/") ;
> OW::finish() ;
>
> Paul Alfille
>
> Another option is to use OWNet.pm -- it connects to owserver and is 
> fully object-compatible.
> Available on CPAN and sourceforge.
>
> On Feb 18, 2008 8:07 PM, Chris Maresca <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     But it's working fine, now I'm off to figure out how to use OW.pm.
>      From the looks of the docs, reading the source might be the most
>     expedient way to figure out the capabilities....
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to