In case anyone else wants to use this, the solution was rather simple.
Openremote can parse the web page response and pluck out any data you
want, so long as you can write a regex that grabs it.
The regex I used is: [<>TRDB\s]{8,50}temperature[<>
/TRDB\s]{10,50}(\d*\.?\d*)[</>TRD\s]{10,50}
This ignores a bunch of other stuff on the page and then does a submatch on
the field I want. This way I don't have to bother with openremote's
owserver client implementation.
Is anyone else using openremote? I'm surprised there aren't more iphone
apps out there like it, allowing you to integrate sensor data & commands in
the one platform you always have on hand (iphone or android).
I like the fact that I can pull temps from several different 1-wire
networks & adapters and you never know the difference in the display which
keeps me from having to build one big "perfect" 1-wire network to pull from.
Cheers,
pete
>
> Message: 3
> Date: Tue, 17 Apr 2012 16:51:52 -0400
> From: Paul Alfille <paul.alfi...@gmail.com>
> Subject: Re: [Owfs-developers] owserver only reports in C
> To: "OWFS (One-wire file system) discussion and help"
> <owfs-developers@lists.sourceforge.net>
> Message-ID:
> <cap_sgzer5nrwhnsw_t4rhbfuzfbpugltkhutothzgs1cnep...@mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> This is the first time I've heard of openremote -- looks interesting. Their
> writeup at
>
> http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+1-Wire+Sensorsis
> excellent.
>
> The best solution would be for them to add an "options" field or a checkbox
> for temperature choices. (Or for openremote to do conversion if they have
> an understanding of measurement units).
>
> The second solution would be for a shim layer that adds temperature or
> other options and pass the command on to opwserver.
>
> Another choice would be a "force_F" etc to owserver. (It would tend to
> confuse other clients, however).
>
> Lastly, you could be more "Continental."
>
> Paul
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers