0.4.0 • Published 4 years ago

caf_rpi_zx v0.4.0

Weekly downloads
25
License
Apache-2.0
Repository
github
Last release
4 years ago

Caf.js

Co-design permanent, active, stateful, reliable cloud proxies with your web app or gadget.

See https://www.cafjs.com

Raspberry Pi Library for ZX Sensor

A library to access a ZX infrared sensor using an RPi.

It runs in the device not in the cloud.

API

lib/proxy_iot_zx.js

Configuration Example

iot.json

{
        "module": "caf_rpi_zx#plug_iot",
        "name": "zx",
        "description": "Access ZX infrared sensor for this device.",
        "env" : {
            "maxRetries" : "$._.env.maxRetries",
            "retryDelay" : "$._.env.retryDelay",
            "deviceZX" : "process.env.DEVICE_ZX||/dev/i2c-1",
            "deviceAddress" : "process.env.DEVICE_ADDRESS||0x10",
            "allowMock" : "process.env.ALLOW_MOCK||true",
            "deviceSamplingInterval": "process.env.DEVICE_SAMPLING_INTERVAL||20"
        },
        "components" : [
            {
                "module": "caf_rpi_zx#proxy_iot",
                "name": "proxy",
                "description": "Proxy to shutdown/delayed restart service",
                "env" : {
                }
            }
        ]
}

where deviceZX and deviceAddress are associated with the ZX sensor i2c interface.

0.4.0

4 years ago

0.3.0

6 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago