On Fri, Aug 24, 2012 at 8:12 AM, <[email protected]> wrote:

>    Hi !
>
>    I built owfs-2.8p17 on a debian squeeze to use a USB9097 and it seems
> to work
> fine !
>
Great.

>
>    Now I would like to write a program to monitor and log some sensors.
> However
> I can not find any ducumentatio on the owfs structure. For example, let
> say I want
> to scan for thermometers, is there any file listing their Ids ? Do I need
> to search
> all the files in the main directory ? In subdirs like bus.0 ? How could I
> identify
> thermal sensors ? I understand that the first two digits describe the
> sensor type,
> is there any list available out there ?
>

The short answer is that since you put the sensors on your system, you
probably know what type they are (i.e. DS18S20) and from the man page you
can figure out the family code.

The sensor type is in the "type" property (i.e. 10.1234123423/type is
"DS18S20")

Properties are fairly consistently named between sensor families, so
searching (using the filesystem) for */temperature" would give you all the
temperatures sensed.

You don't need to look at bus.x or anywhere else.

Aliases can help somewhat, but you alias sensors, not properties. (i.e.
outdoor_pool = 10.1234123412 and read outdoor_pool/temperature)

Owfs maps sensor->property very well. Mapping Property->sensor requires
some scripting.

Paul Alfille

>
>    What are aliases ? Could they help me to give a name to my sensors
> ("Outdoor Temp"
> instead of 28.5ddefa30000 ?).
>
>    Any help / reference would be really appreciated !
>
> --
>   Manu
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to