Git Product home page Git Product logo

homebridge-platform-rcswitch's People

Contributors

gismo141 avatar rainlake avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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?

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

I implemented this Platform as described into homebridge.
Homebridge Runs, but HomeKit stats actualizing and i can Not Switch anything.

Her the Debug

3d8117fe-004b-4e84-827c-f14c45082d6a

I Hope anyone could help

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.