Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamgoose/enocean-handler
An easy way to listen for button presses from Enocean Energy Harvesting Rocker Switches.
https://github.com/adamgoose/enocean-handler
Last synced: about 24 hours ago
JSON representation
An easy way to listen for button presses from Enocean Energy Harvesting Rocker Switches.
- Host: GitHub
- URL: https://github.com/adamgoose/enocean-handler
- Owner: adamgoose
- Created: 2015-07-07T23:55:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-28T07:24:29.000Z (about 8 years ago)
- Last Synced: 2024-10-31T17:45:26.122Z (14 days ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Enocean Rocker Switch Handler
This package is designed for easy dispatching of custom Enocean Rocker Switch press handlers.
## Usage
> See example.js!
First, require the package.
```js
var enoceanHandler = require('enocean-handler');
```Next, instantiate your object and provide it the configuration.
```js
var handler = new enoceanHandler('/dev/ttyUBS0', {
'mySenderId': {
'A0': function() {
console.log('Button A0 was pushed!');
}
}
});
```Yes, it's that easy! :)