homebridge-platform-rcswitch's People
homebridge-platform-rcswitch's Issues
Unreliable transmits when RF receiver is connected to the PI
I noticed unreliable transmits when RF receiver is connected.
When i unplug the RF receiver from the GPIO pin 2 and have only the RF transmitter connected to GPIO, everything is fine.
I am using RPI 2 model B+.
I also noticed higher CPU usage (~40% ) by homebridge when RF receiver is connected but not when it is disconnected. Could that be the issue?
Does this work with the PiMote?
error to install on PI
[email protected] install /usr/local/lib/node_modules/homebridge-platform-rcswitch
node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.2.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge-platform-rcswitch/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/homebridge-platform-rcswitch/build'
CC(target) Release/obj.target/rsswitch/rcswitch.o
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
../rcswitch.c: In function ‘rcswitch_receive_protocol1’:
../rcswitch.c:78:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 1; i< changeCount; i += 2) {
^
../rcswitch.c: In function ‘rcswitch_receive_protocol2’:
../rcswitch.c:106:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 1; i<changeCount ; i += 2) {
^
../rcswitch.c: In function ‘rcswitch_send_scode_word’:
../rcswitch.c:135:13: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
fprintf(stderr,"wiringPiSetup failed %d\n");
^
CXX(target) Release/obj.target/rsswitch/rcmodule.o
../rcmodule.cpp: In function ‘void SnifferAsync(uv_work_t*)’:
../rcmodule.cpp:31:12: warning: unused variable ‘isolate’ [-Wunused-variable]
Isolate * isolate = Isolate::GetCurrent();
^
../rcmodule.cpp: In function ‘void SetupSniffer(const v8::FunctionCallbackInfov8::Value&)’:
../rcmodule.cpp:55:11: warning: unused variable ‘isolate’ [-Wunused-variable]
Isolate* isolate = args.GetIsolate();
^
SOLINK_MODULE(target) Release/obj.target/rsswitch.node
/usr/bin/ld: cannot find -luv
collect2: error: ld returned 1 exit status
rsswitch.target.mk:126: recipe for target 'Release/obj.target/rsswitch.node' failed
make: *** [Release/obj.target/rsswitch.node] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-platform-rcswitch/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.13+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-platform-rcswitch
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 4.4.13+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge-platform-rcswitch"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the homebridge-platform-rcswitch package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls homebridge-platform-rcswitch
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
Can't install the plugin because of linker error
npm install -g homebridge-platform-rcswitch
> [email protected] install /usr/local/lib/node_modules/homebridge-platform-rcswitch
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.12.6"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge-platform-rcswitch/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/homebridge-platform-rcswitch/build'
CC(target) Release/obj.target/rsswitch/rcswitch.o
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C
../rcswitch.c: In function 'rcswitch_receive_protocol1':
../rcswitch.c:78:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 1; i< changeCount; i += 2) {
^
../rcswitch.c: In function 'rcswitch_receive_protocol2':
../rcswitch.c:106:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 1; i<changeCount ; i += 2) {
^
../rcswitch.c: In function 'rcswitch_send_scode_word':
../rcswitch.c:135:13: warning: format '%d' expects a matching 'int' argument [-Wformat=]
fprintf(stderr,"wiringPiSetup failed %d\n");
^
CXX(target) Release/obj.target/rsswitch/rcmodule.o
../rcmodule.cpp: In function 'void SnifferAsync(uv_work_t*)':
../rcmodule.cpp:31:12: warning: unused variable 'isolate' [-Wunused-variable]
Isolate * isolate = Isolate::GetCurrent();
^
../rcmodule.cpp: In function 'void SetupSniffer(const v8::FunctionCallbackInfo<v8::Value>&)':
../rcmodule.cpp:55:11: warning: unused variable 'isolate' [-Wunused-variable]
Isolate* isolate = args.GetIsolate();
^
SOLINK_MODULE(target) Release/obj.target/rsswitch.node
/usr/bin/ld: cannot find -luv
collect2: error: ld returned 1 exit status
rsswitch.target.mk:125: recipe for target 'Release/obj.target/rsswitch.node' failed
make: *** [Release/obj.target/rsswitch.node] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-platform-rcswitch/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 4.1.17-v7+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-platform-rcswitch
gyp ERR! node -v v0.12.6
gyp ERR! node-gyp -v v3.3.0
gyp ERR! not ok
npm ERR! Linux 4.1.17-v7+
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "homebridge-platform-rcswitch"
npm ERR! node v0.12.6
npm ERR! npm v3.7.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the homebridge-platform-rcswitch package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs homebridge-platform-rcswitch
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls homebridge-platform-rcswitch
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/homebridge/npm-debug.log
Errors while starting homebridge
Add two Rc Devices?
Hi Rainlake,
you have done a very very good Job. I have installed your Plugin and it works wonderful! But how can i add another rc device? If you could send me in example I would be really really happy!!!
Thanks and greetings out of Germany
Leo
Homebridge doesn't shut down
It seems the plugin keeps homebridge from shutting down properly. This might have something to do with homebridge not properly transferring the SIGINT command to sub-processes.
See this issue here: homebridge/homebridge#595
The workaround described in the issue works here, removing the lines from cli.js lets the server shut down again.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.