https://github.com/cafjs/caf_rpi_zx
CAF library to access a ZX infrared sensor using an RPi.
https://github.com/cafjs/caf_rpi_zx
Last synced: 5 months ago
JSON representation
CAF library to access a ZX infrared sensor using an RPi.
- Host: GitHub
- URL: https://github.com/cafjs/caf_rpi_zx
- Owner: cafjs
- Created: 2016-08-06T05:05:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-01T19:38:30.000Z (about 6 years ago)
- Last Synced: 2025-10-17T01:38:01.544Z (8 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-2.0.txt
Awesome Lists containing this project
README
# 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.