-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Homebridge) TypeError: Init Error #110
Comments
If anyone wants it, my code for the Accessory Controller for HomeBridge - pendant on a solution: const LED_COUNT = 300; module.exports = api => { function rgb2Int(r, g, b) { class LightstripAccessory{
}` |
Hello everyone, I was trying to setup this package on my RP4 with HomeBridge to see if I could control my LED strip from my iPhone. No luck so far, as I'm getting this error:
[9/21/2020, 00:12:13] [Lightstrip] Initializing Lightstrip accessory... Can't open /dev/mem: Operation not permitted error initializing -5 mmap() failed [9/21/2020, 00:12:13] TypeError: Init Error at EventEmitter.ws281x.init (/home/pi/Documents/strip-controller/homebridge-lightstrip/node_modules/rpi-ws281x-native/lib/ws281x-native.js:138:14) at new LightstripAccessory (/home/pi/Documents/strip-controller/homebridge-lightstrip/index.js:31:25) at /usr/local/lib/node_modules/homebridge/src/server.ts:355:50 at Array.forEach (<anonymous>) at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:328:29) at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:154:12) at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) [9/21/2020, 00:12:13] Got SIGTERM, shutting down Homebridge... [9/21/2020, 00:12:18] [HB Supervisor] Homebridge Process Ended. Code: 1
I've setup HomeBridge with a superuser, and I've tested the package/code with the rainbow file, and it works, so I don't exactly know what's going on here. Any ideas? I would be eternally grateful.
The text was updated successfully, but these errors were encountered: