Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 8 or greater.

Install

This library uses node-hid behind the scenes. Depending on your OS and Node version, you may have an effortless install. If not, you may want to consult node-hid's compiling from source guide for assistance.

npm install logitech-g27

Windows users who are having trouble connecting to a wheel may need to run the Logitech G Hub software one time to setup drivers.

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.

const g = require('logitech-g27')

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

Vroom vroom sounds optional but encouraged. ^_^

API

Support

Help support this project on Patreon. Help me caretake and craft new software, videos, and interactive art. All for as little as $1 a month.

In addition to Patreon, here are some other ways you can help this project.

  • Report any issues on GitHub.
  • Share your G27 wheel creation on social media to inspire others.

License

MIT © Kai Nightmode

About

Logitech G27 Racing Wheel for Node

Resources

License

Packages

No packages published