https://github.com/joeferner/unisonht-pigpio-ir
UnisonHT plugin using pigpio-ir
https://github.com/joeferner/unisonht-pigpio-ir
Last synced: 12 months ago
JSON representation
UnisonHT plugin using pigpio-ir
- Host: GitHub
- URL: https://github.com/joeferner/unisonht-pigpio-ir
- Owner: joeferner
- Created: 2020-09-09T17:15:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-21T19:03:54.000Z (over 5 years ago)
- Last Synced: 2025-02-13T12:31:15.754Z (over 1 year ago)
- Language: TypeScript
- Size: 174 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
UnisonHT plugin for [pigpio-ir](https://github.com/joeferner/pigpio-ir)
# Usage
Record IR buttons using pigpio-ir's `irrecord`. In this example you would record for two remotes `ir-receiver`
and `my-device-name`. In this case any button received by `ir-receiver` will be posted to the root
`/button/` route. You can then send signals out using
`unisonht.executePost('/device/my-device-name/button/')`
```javascript
unisonht.use(
new PigpioIrReceiver('ir-receiver', {
pigpioIr
}),
);
unisonht.use(
new PigpioIrDevice('my-device-name', {
pigpioIr
}),
);
```