lucavb / homebridge-hc-sr501

Homebridge plugin for the hc-sr501 motion sensor
GNU General Public License v3.0
10 stars 1 forks source link

Install #1

Closed acoolax closed 7 years ago

acoolax commented 7 years ago

How can I install plugin?

lucavb commented 7 years ago

I added a README file. I hope this helps.

acoolax commented 7 years ago

Thanks for readme! Now i have this problem: return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: EACCES: permission denied, open '/sys/class/gpio/export' SOLVED by adding user to gpio group. Specify that must be added module 'onoff'.

lucavb commented 7 years ago

that appears to be an issue associated with the gpio module. you might want to search for answers over there. https://github.com/fivdi/onoff

However, it seems to me that maybe you did not activate the gpio pins on the raspberry pi? Maybe there is such an option. For me it used to be a long time ago.

fivdi commented 7 years ago

This issue is related to the permissions of the user running the application. For example, if the January 2017 version of Raspbian is installed, user pi will have access to GPIOs.