Logitech G27 Racing Wheel for Node
JavaScript
Latest commit 5908751 Nov 5, 2016 @ForestMist 1.0.3
Permalink
Failed to load latest commit information.
code ubuntu assistance May 31, 2016
docs Fix mistake in pedal events key name Jul 29, 2016
images g29 inspired improvements Apr 5, 2016
test g29 inspired improvements Apr 5, 2016
.gitignore g29 inspired improvements Apr 5, 2016
LICENSE init Jun 1, 2015
README.md tweaks Nov 5, 2016
package.json 1.0.3 Nov 5, 2016

README.md

Logitech G27 Racing Wheel for Node

Bring your Logitech G27 Racing Wheel into the wonderful world of Node.

  • Subscribe to wheel, pedal, and shifter events.
  • Activate simple force feedback effects.
  • Set wheel auto-centering and range.
  • Customize shift indicator LEDs.

Requirements

Node version 4.0.0 or greater.

Install

This library uses node-hid behind the scenes. Node 4 users should have an effortless install. Node 5 users may want to consult node-hid's compiling from source guide for anything more serious than a warning.

npm install logitech-g27

Ubuntu users will most likely want to remove the sudo requirement of interfacing with the wheel. This can be easily accomplished by creating a file at /etc/udev/rules.d/51-logitech-g27.rules with the following code. After saving the file, reboot and then you can move on to more fun tasks.

SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c29b", MODE="0666"

Example

Let's have some fun and make our LEDs light up when we press the gas pedal.

var g = require('logitech-g27')

g.connect(function(err) {
    g.on('pedals-gas', function(val) {
        g.leds(val)
    })
})

Vroom vroom sounds optional but encouraged. ^_^

API

Contribute

Looking to contribute? Here are some ideas to get you started.

  • Report any issues on GitHub.
  • Contact Daniel with improvement ideas and/or send a pull request.
  • Hook up your G27 wheel to something on the internet and wow the IoT community.
  • Share this library with other Logitech loving folks.

Not sure where you can help? Don't worry. Just by using this library, you are making the world a neater place. ^_^

License

MIT © Daniel Gagan