Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/node-red-contrib-powermate
https://github.com/hardillb/node-red-contrib-powermate
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hardillb/node-red-contrib-powermate
- Owner: hardillb
- Created: 2014-06-26T08:37:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-01T17:35:18.000Z (almost 8 years ago)
- Last Synced: 2024-11-15T21:08:26.384Z (about 2 months ago)
- Language: HTML
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PowerMate
=========
A Node-Red node to read from the [Griffin PowerMate](http://www.amazon.co.uk/gp/product/B003VWU2WA/ref=as_li_ss_tl?ie=UTF8&camp=1634&creative=19450&creativeASIN=B003VWU2WA&linkCode=as2&tag=bespl-21)Install
-------Run the following command in the root directory of your Node-RED install
npm install node-red-contrib-powermate
Usage
-----This node outputs messages for 3 different events
+ Button down
+ Button up
+ Wheel rotationFor the first 2 the message payload of 'up' or 'down' respectively is published to the topic + '/button'. For the wheel rotation the message payload is +ve for clockwise and -ve for anti-clockwise on the topic + '/wheel'
Permissions
-----------
Depending on OS, you may get an error that looks something likecannot open device with path 0001:0004:00
If this happens, it is likely because your user doesn't have permissions for the PowerMate device. In Linux (specifically Raspbian), creating the file /etc/udev/rules/95-powermate.rules and entering the following text:SUBSYSTEM=="usb", ATTRS{idVendor}=="077d", ATTRS{idProduct}=="0410", SYMLINK+="powermate", MODE="660", GROUP="input"
will assign the PowerMate device to the "input" group, which the pi user belongs to. For other OSs, change the GROUP entry to a group that your user belongs to.