360manu / kettlerUSB2BLE

Bridge from USB to Bluetooth low energy for old Kettler Trainers (Ergorace, ..) for Zwift and other apps
MIT License
38 stars 28 forks source link

rpi-gpio #5

Closed OneAndOnlyBaka closed 4 years ago

OneAndOnlyBaka commented 4 years ago

Hi,

could you add npm install rpi-gpio in your manual? because if you have a fresh installed Raspberry (Raspian), you have to install it because of your gear extension.

Otherwise you get something like this (I just added the error so some can find the issue):

sudo node server.js module.js:549 throw err; ^

Error: Cannot find module 'rpi-gpio' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (/home/pi/kettlerUSB2BLE/lib/rpi_gpio_buttons.js:1:74) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)

360manu commented 4 years ago

hello

thanks. I updated the package.json

A better Idea will be to make these stuffs optional