Logitech G29 Racing Wheel for Node
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2f80efe Jul 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
code
docs relayOS is now available to everyone Feb 20, 2018
images wheel-turn event Apr 5, 2016
test
.gitignore Ignore package-lock.json Nov 6, 2017
LICENSE
README.md update for linux Mar 13, 2018
package.json version 1.0.10 Jul 28, 2018

README.md

Logitech G29 Racing Wheel for Node

Bring your Logitech G29 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.

Make sure your wheel's platform mode switch is set to PS3.

Install

This library uses node-hid behind the scenes. If your OS and Node version are listed under platform support then you'll have the easiest install experience. If not, you may need to consult node-hid's compiling from source guide.

npm install logitech-g29

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/99-hidraw-permissions.rules with the following code. After saving the file, reboot and then you can move on to more fun tasks.

KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev"

Example

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

var g = require('logitech-g29')

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 G29 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