Skip to content
ggodart edited this page Jan 5, 2021 · 3 revisions

OneWire_xAP

See original

SYNOPSIS

Documentation on installing/configuring oxc is found in the oxc distribution. oxc now uses digitemp (www.digitemp.com) or one-wire file system (owfs; see - www.owfs.org).

The xAP message convention assumes that the one-wire xAP connector, oxc, is addressed via the target: liming.oxc.house

Each "device" is subaddressed using the convention: :. where can be temp, humid, etc and is a user-definable name specified in the oxc config.

Items.mht

Defined in items.mht as

OWX,  liming.oxc.house,   house_owx

Where 'liming.oxc.house' is the xAP source address and 'house_owx' is the object

Declare the oxc "conduit" object

$oxc = new OneWire_xAP;

Create one or more AnalogSensor_Items that will be attached to the OneWire_xAP See additional comments in AnalogSensor_Items for .mht based declaration

$indoor_temp = new AnalogSensor_Item('indoor-t', 'temp');
# 'indoor-t' is the device name, 'temp' is the sensor type
$indoor_humid = new AnalogSensor_Item('indoor-h', 'humid');

$ocx->add($indoor_temp, $indoor_humid);

Information on using AnalogSensor_Items is contained within its corresponding package documentation

DESCRIPTION

This package provides an interface to one-wire devices via the xAP (www.xapautomation.org) "connector": oxc (www.limings.net/xap/oxc)

INHERITS

Base_Item

INI PARAMETERS

METHODS

AUTHOR

Gregg Liming [email protected]

SEE ALSO

Clone this wiki locally